OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) OpenSprinkler – run concurrent and sequential Re: Re: OpenSprinkler – run concurrent and sequential

#24617

doczaius
Member

Although my yard isn’t terribly large, I have two water sources. I’m also under annoying water restrictions that only allow watering in a small window once a week, so running as many zones as possible at the same time is crucial.

Not sure if I missed it or if 1.8.3 came out after I began my OSPi journey but I needed concurrent runs and it wasn’t available in the interval program. My solution was to just install a crontab script that would kick off the valves using the GET commands provided by the interval program. You can access the crontab editor with “crontab -e”… You will see simple instructions on how to write entries… or you can use the Corntab online GUI: http://www.corntab.com/pages/crontab-gui

Below is a version of my crontab that I was experimenting with. I’ve already gone a few weeks using this method without major issue (I mixed up a couple of zones the first run 🙄 ). It shouldn’t be necessary with the duration variable, but as a safety measure I run a turn off command when each zone is supposed to turn off. Note that if you have an issue with water hammer, you could also use this method to overlap runs slightly (1 minute resolution).

IP is obscured..

0 19 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn1=1&t=90
25 20 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn1=0

45 19 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn2=1&t=90
10 21 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn2=0

15 21 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn7=1&t=75
25 22 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn7=0

30 22 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn5=1&t=75
40 23 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn5=0

45 23 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn6=1&t=75
55 0 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn6=0

0 19 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn4=1&t=75
10 20 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn4=0

15 21 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn3=1&t=75
25 22 * * 4 /usr/bin/wget http://xx.xx.xx.xx/sn3=0