OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) PHP based Interval Program Re: Re: PHP based Interval Program

#23773

ndboost
Participant

I still haven’t come across an ideal solution to task scheduling.. which is what will be needed to handle “run for 15 mins”, or “run at 12pm tomorrow”.

I am trying to not rely on external services such as resque, IronMQ, IronWorker etc..

I found this: http://rufus.rubyforge.org/rufus-scheduler/ rufus-scheduler.. works similar to cron tab.

the concept will be the program will have a restful json based API to interact with the stations.. things like

http://rubysprinkler/stations///runtime/
or for scheduled runs
http://rubysprinkler/stations//schedule/

one example i have currently “working” is: http://rubysprinkler/stations/1/start/runtime/10 & http://rubysrpinkler/stations/1/stop