This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Irrigation scheduled script
#1
i have some irrigation to controll with feedback from som moisture sensor, 

i want to run a scheduled script in the am at say 5:00 to check if moisture is below a setpoint then switch on irrigation for 2 hour if required each day

at 5am when script runs 
if is dry then switch on 0/5/1 (bool)

how is the best way to manage the switch off later?, make another scheduled script for 7:00am with switch off?
i also need a way to include some offset so i don't over water etc 
or maybe there is a better way like make the off command an event script form the moisture sensor?
Reply
#2
You can have both scheduled and event script for this. Scheduled script guarantees that the irrigation is turned off after 2 hours. Event script can turn it off earlier if the moisture level becomes high enough.
Reply


Forum Jump: