Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Submitting a new plugin
#13
(2023 Jan 29, 05:06 PM)RandyBryant Wrote: 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.

You are not being a pest. I appreciate your input.
Regarding the system turning on when switching manual mode I would say it is a bug. Ill work on fixing it.
<p><br></p>
Reply


Messages In This Thread
Submitting a new plugin - by RandyBryant - 2023 Jan 09, 11:24 PM
RE: Submitting a new plugin - by dan - 2023 Jan 10, 12:18 AM
RE: Submitting a new plugin - by RandyBryant - 2023 Jan 21, 12:35 AM
RE: Submitting a new plugin - by dan - 2023 Jan 21, 04:32 PM
RE: Submitting a new plugin - by RandyBryant - 2023 Jan 25, 08:32 PM
RE: Submitting a new plugin - by dan - 2023 Jan 26, 03:18 PM
RE: Submitting a new plugin - by RandyBryant - 2023 Jan 26, 03:56 PM
RE: Submitting a new plugin - by dan - 2023 Jan 27, 03:55 PM
RE: Submitting a new plugin - by RandyBryant - 2023 Jan 28, 12:31 AM
RE: Submitting a new plugin - by dan - 2023 Jan 28, 04:18 PM
RE: Submitting a new plugin - by RandyBryant - 2023 Jan 28, 05:46 PM
RE: Submitting a new plugin - by RandyBryant - 2023 Jan 29, 05:06 PM
RE: Submitting a new plugin - by dan - 2023 Jan 30, 05:32 PM
RE: Submitting a new plugin - by RandyBryant - 2023 Jan 30, 05:55 PM
RE: Submitting a new plugin - by dan - 2023 Feb 01, 08:12 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)