Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manual activate of deactivate valves
#1
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
Pedro
Reply
#2
(2022 Oct 15, 02:12 PM)pedrosantos009 Wrote: 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

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/D...mmands.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:


.txt   gv_reference.txt (Size: 6.49 KB / Downloads: 3)
<p><br></p>
Reply
#3
(2022 Oct 15, 05:07 PM)dan Wrote:
(2022 Oct 15, 02:12 PM)pedrosantos009 Wrote: 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

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/D...mmands.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:
Thanks Dam!! Very usefulĀ informationĀ  Smile
Pedro Santos
Pedro
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)