dyvardana / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

Automatic pump switch with dependancies #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am building an automatic timer with a raspberry pi B+ but I only want the 
pumps to come on if it sastify certain criterior .

For example if i have a pump connected via a relay which in triggered by a GPIO 
. 
But I only want  the pump to turn on if the reservoir has water.  So i am using 
a float switch in the reservoir to give me  and open and close switch and using 
 another input GPIO 

so it should work like this 
When the timer is triggered the app check to see is the input GPIO is on or 
off. 
If the reservoir GPIO is "on"( seeing an input current) then the pump relay is 
switch "on" 
If the reservoir GPIO is "ooo"( Not seeing an input current) then the pump 
relay is switch "FF" even though the timer is on 

Can WEBIOPI do this sorth of thing . 
I am very new to programming  and coding but I would really like to get my feet 
wet.
Thanks for any help 

Original issue reported on code.google.com by Christia...@gmail.com on 13 Jan 2015 at 4:32

GoogleCodeExporter commented 9 years ago
Yes Webiopi can easily do what you require, you can write a python script for 
your criteria, however this is not the place to ask questions like that, you 
need to post your question and or ask for assistance here   
https://groups.google.com/forum/?fromgroups#!forum/webiopi  this area of the 
wiki is for issues/errors found relating to the Webiopi application. 

Original comment by toshibas...@gmail.com on 15 Jan 2015 at 5:52