SIP
How to use external relay controller? - Printable Version

+- SIP (https://nosack.com/sipforum)
+-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1)
+--- Forum: Installation and set up questions (https://nosack.com/sipforum/forumdisplay.php?fid=2)
+--- Thread: How to use external relay controller? (/showthread.php?tid=57)



How to use external relay controller? - astrandb - 2016 Oct 05

I would like to use a separate relay box that can be controlled by HTTP commands e.g. http://relaybox?relay1=on or http://relaybox?relay1=off
What would be the best way to implement this instead of using the "GPIO boards".


RE: How to use external relay controller? - dan - 2016 Oct 05

I am not sure how you plan to control the relays from the Pi without using the GPIO pins but there is a PDF file which lists the HTTP GET commands for SIP on the SIP wiki:
https://github.com/Dan-in-CA/SIP/wiki

Click this link: "SIP HTTP GET Command Reference (download PDF)"
[url=https://github.com/Dan-in-CA/SIP/wiki/SIP_GET_commands.pdf][/url]
Dan


RE: How to use external relay controller? - astrandb - 2016 Oct 09

My plan is to use a virtual Ubuntu server to host SIP and send simple HTTP GET commands to a stand-alone relay controller box. I have modified your rf_control plugin to send HTTP GETConfused and it works pretty good at the moment.

Thank you for the link with the SIP GET commands. It will be useful to let my home automation system fiddle with the irrigation also.


RE: How to use external relay controller? - dan - 2016 Oct 09

Great!
I was going to mention the rf_control plugin but I see you found it. It still needs a lot of work but it is usable and will work with anything that can use the command line for control not just RF devices.

Dan