mirror of https://github.com/noisymime/OSPi.git
Merge branch 'working'
This commit is contained in:
commit
df22b12fbf
2
ospi.py
2
ospi.py
|
@ -556,7 +556,7 @@ class change_values:
|
|||
gv.srvals = [0]*(gv.sd['nst']) # turn off all stations
|
||||
set_output()
|
||||
if qdict.has_key('mm') and qdict['mm'] == '0': clear_mm()
|
||||
if qdict.has_key('rd') and qdict['rd'] != '0':
|
||||
if qdict.has_key('rd') and qdict['rd'] != '0' and qdict['rd'] != '':
|
||||
gv.sd['rdst'] = (gv.now+(int(qdict['rd'])*3600))
|
||||
stop_onrain()
|
||||
elif qdict.has_key('rd') and qdict['rd'] == '0': gv.sd['rdst'] = 0
|
||||
|
|
|
@ -51,7 +51,7 @@ else w("<br><b>Log</b>: <font color=gray>n/a</font>");
|
|||
w("<hr>");
|
||||
// print html form
|
||||
w("<form name=hf action=cv method=get><p>Password:<input type=password "+(sd['ipas']?"disabled":"")+" size=10 id=pwd name=pw></p>");
|
||||
w("<input type=hidden name=en><input type=hidden name=rd value=0><input type=hidden name=rbt value=0><input type=hidden name=mm value=0></form>");
|
||||
w("<input type=hidden name=en><input type=hidden name=rd value=''><input type=hidden name=rbt value=0><input type=hidden name=mm value=''></form>");
|
||||
w("<button style=\"height:36\" onclick=\"hf.elements[1].value="+(1-sd['en'])+";hf.submit();\">"+imgstr(sd['en']?"stop":"start")+(sd['en']?"Stop Operation":"Start Operation")+"</button>");
|
||||
w("<button style=\"height:36\" onclick=\"hf.elements[4].value="+(1-sd['mm'])+";hf.submit();\">"+imgstr(sd['mm']?"auto":"manual")+(sd['mm']?"Manual Off":"Manual On")+"</button>");
|
||||
w("<button style=\"height:36\" onclick=\"setrd(hf,2)\">"+imgstr("rain")+"Rain Delay</button>");
|
||||
|
|
Loading…
Reference in New Issue