Page 1 of 1

Schedule Feed Mode?

Posted: Fri Oct 12, 2012 1:36 pm
by agentgreen
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!

Re: Schedule Feed Mode?

Posted: Fri Oct 12, 2012 1:39 pm
by rimai

Code: Select all

if (hour()=18 && minute()=30 && second()=0) ReefAngel.FeedingModeStart();
And to initiate through http:
http://ipaddress:2000/mf

Re: Schedule Feed Mode?

Posted: Fri Oct 12, 2012 1:42 pm
by agentgreen
rimai wrote:

Code: Select all

if (hour()=18 && minute()=30 && second()=0) ReefAngel.FeedingModeStart();
And to initiate through http:
http://ipaddress:2000/mf
Sweet! Love it!

I'll probably do it via http so I can control it with crontab.

Thanks!

Re: Schedule Feed Mode?

Posted: Sat Oct 13, 2012 6:22 am
by binder
The controller will respond with a

Code: Select all

<M>OK</M>
for success or

Code: Select all

<M>ERR</M>
on failure. Just if you want to do any error checking.