Manual activate of deactivate valves - Printable Version +- SIP (https://nosack.com/sipforum) +-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1) +--- Forum: Writing plugins (https://nosack.com/sipforum/forumdisplay.php?fid=8) +--- Thread: Manual activate of deactivate valves (/showthread.php?tid=296) |
Manual activate of deactivate valves - pedrosantos009 - 2022 Oct 15 Hi Dan and all community, It is possible to manual turn on/off a valve from a plug-in? If yes when I turn on/off any valve a signal is realize to another plug-ins? Thanks, Pedro Santos RE: Manual activate of deactivate valves - dan - 2022 Oct 15 (2022 Oct 15, 02:12 PM)pedrosantos009 Wrote: Hi Dan and all community, Hi Pedro. Yes, it possible to manually turn on or off a station from a plugin. You can use the http GET request. See #3 in the SIP http reference for details: https://raw.githubusercontent.com/wiki/Dan-in-CA/SIP/SIP_GET_commands.pdf The code that actually handles the request is in the webpages.py module line 402. (class get_set_station()) SIP uses the Python Blinker module to send signals that plugins can use. They are "stations_scheduled" and "zone_change ". Documentation for the Blinker module are at: https://blinker.readthedocs.io/en/stable/ There is an updated version of gv_refreence.txt that has more information: gv_reference.txt (Size: 6.49 KB / Downloads: 3) RE: Manual activate of deactivate valves - pedrosantos009 - 2022 Oct 17 (2022 Oct 15, 05:07 PM)dan Wrote:Thanks Dam!! Very usefulĀ informationĀ(2022 Oct 15, 02:12 PM)pedrosantos009 Wrote: Hi Dan and all community, Pedro Santos |