Change Length of time when Feedmode

Do you have a question on how to do something.
Ask in here.
Post Reply
g6gang
Posts: 26
Joined: Thu Oct 16, 2014 1:35 pm

Change Length of time when Feedmode

Post by g6gang »

1) Change you change the behavior to something else besides 15 minutes?

2) How to detect if when in and out of feed mode in
void loop()
{

// How to detect when enter feed mode

// How to detect when exit feed mode


}
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Change Length of time when Feedmode

Post by Sacohen »

Do you have the Android app?
You can change the length of the feed mode by going into the Memory Pages and in the drop down box find "Feeding Mode Time" and then enter in the value in seconds and write the value.

Image

You can do it through a web browser too, but I forgot the command.
g6gang
Posts: 26
Joined: Thu Oct 16, 2014 1:35 pm

Re: Change Length of time when Feedmode

Post by g6gang »

Thanks - I was looking for a way to do it with code. But will try this. Will this new timer be used even after a power loss?
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Change Length of time when Feedmode

Post by Sacohen »

Yes.
I don't think it can be done with code since it's an internal memory setting.
I may be wrong about that though.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Change Length of time when Feedmode

Post by cosmith71 »

Put this in setup():

Code: Select all

  ReefAngel.Timer[FEEDING_TIMER].SetInterval(600);      // Set feeding mode to 10 minutes
The number is in seconds.

There is a way to tell if you're in feeding mode, but I can't remember it. I'll see if I can dig it up.

--Colin
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Change Length of time when Feedmode

Post by cosmith71 »

OK, found it.

Code: Select all

  if (ReefAngel.DisplayedMenu==FEEDING_MODE)
{
  // do some stuff
}
--Colin
Post Reply