2023 Jan 29, 05:06 PM
(This post was last modified: 2023 Jan 29, 05:38 PM by RandyBryant.)
I hope I am not being a pest for you, if so, let me know.
I found another oddity. If you turn the system off, then turn on manual mode, the system is automatically turned on.
Also, in manual mode, if you turn the system off, when you turn manual mode off, the system is turned back on.
IS that the desired behavior?
The following code is the cause:
def change_values(self):
qdict = web.input()
print("cv qdict: ", qdict) # - test
if "rsn" in qdict and qdict["rsn"] == "1":
stop_stations()
raise web.seeother("/")
if "en" in qdict and qdict["en"] == "":
qdict["en"] = "1" # default
elif "en" in qdict and qdict["en"] == "0":
gv.srvals = [0] * (gv.sd["nst"]) # turn off all stations
set_output()
This "if" in is curious and causes the behaviou:
if "en" in qdict and qdict["en"] == "":
qdict["en"] = "1" # default
By the way, I have the control buttons updating when changed by the keypad plugin. The api/status GET was reporting the change, so it was pretty easy to update the gui.
I found another oddity. If you turn the system off, then turn on manual mode, the system is automatically turned on.
Also, in manual mode, if you turn the system off, when you turn manual mode off, the system is turned back on.
IS that the desired behavior?
The following code is the cause:
def change_values(self):
qdict = web.input()
print("cv qdict: ", qdict) # - test
if "rsn" in qdict and qdict["rsn"] == "1":
stop_stations()
raise web.seeother("/")
if "en" in qdict and qdict["en"] == "":
qdict["en"] = "1" # default
elif "en" in qdict and qdict["en"] == "0":
gv.srvals = [0] * (gv.sd["nst"]) # turn off all stations
set_output()
This "if" in is curious and causes the behaviou:
if "en" in qdict and qdict["en"] == "":
qdict["en"] = "1" # default
By the way, I have the control buttons updating when changed by the keypad plugin. The api/status GET was reporting the change, so it was pretty easy to update the gui.