Schedule Feed Mode?

Do you have a question on how to do something.
Ask in here.
Post Reply
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Schedule Feed Mode?

Post 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!
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Schedule Feed Mode?

Post by rimai »

Code: Select all

if (hour()=18 && minute()=30 && second()=0) ReefAngel.FeedingModeStart();
And to initiate through http:
http://ipaddress:2000/mf
Roberto.
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Re: Schedule Feed Mode?

Post 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!
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Schedule Feed Mode?

Post 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.
Post Reply