I’d like to first start off that I struggle understanding how HTML, JSCRIPT and REST work so in no way I try to sell myself as a pro. For the most part I have been able to take the templates provided by http://webiopi.trouch.com and get them to work for what I need...until now.
I added a relay bank to my Webiopi system. My relay’s work great, they control what I need with the Rpi libraries. The problem is when I send a command to the Pi from a script outside of the webiopi script.py, the whole webiopi seems to loose the ‘link’ which updates the pin’s state.
From what I understand webiopi has a way to create functions in the script.py . My goal is to create an instruction which runs my ‘rf1OFF.py’ script for 2 seconds after 8pm.