Is there a way in the code to schedule a feeding mode every day at say 6:30pm?
Or how do I send a feeding mode command via http?
Thanks!
Schedule Feed Mode?
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Schedule Feed Mode?
Code: Select all
if (hour()=18 && minute()=30 && second()=0) ReefAngel.FeedingModeStart();
http://ipaddress:2000/mf
Roberto.
-
agentgreen
- Posts: 97
- Joined: Wed Jul 06, 2011 6:45 am
Re: Schedule Feed Mode?
Sweet! Love it!rimai wrote:And to initiate through http:Code: Select all
if (hour()=18 && minute()=30 && second()=0) ReefAngel.FeedingModeStart();
http://ipaddress:2000/mf
I'll probably do it via http so I can control it with crontab.
Thanks!
-
binder
- Posts: 2865
- Joined: Fri Mar 18, 2011 6:20 pm
- Location: Illinois
- Contact:
Re: Schedule Feed Mode?
The controller will respond with a for success or on failure. Just if you want to do any error checking.
Code: Select all
<M>OK</M>Code: Select all
<M>ERR</M>