Page 1 of 1

Change Length of time when Feedmode

Posted: Wed Nov 05, 2014 12:06 pm
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


}

Re: Change Length of time when Feedmode

Posted: Wed Nov 05, 2014 12:36 pm
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.

Re: Change Length of time when Feedmode

Posted: Wed Nov 05, 2014 12:44 pm
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?

Re: Change Length of time when Feedmode

Posted: Wed Nov 05, 2014 12:46 pm
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.

Re: Change Length of time when Feedmode

Posted: Thu Nov 06, 2014 7:19 pm
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

Re: Change Length of time when Feedmode

Posted: Thu Nov 06, 2014 7:30 pm
by cosmith71
OK, found it.

Code: Select all

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