Code: Select all
{
if (minute()==0 && second()<5)
{
if (now()%3600) set_average(0, hour());Code: Select all
//Autofeeder Mode
if ( InternalMemory.read(VacationEnable) == 1 ) // check for vacation mode
{
// Check if the current time is equal to the start time.
if (NumMins(hour(), minute()) == (NumMins(InternalMemory.read(VacationStartHr), InternalMemory.read(VacationStartMin))))
{
if (second() == 0)
{
Feed = 1; // Turn on feeder and feedmode
ReefAngel.FeedingModeStart();
}
}
else if ( InternalMemory.read(VacationEnable) == 2 ) // check for 2x feeder vacation mode
{
if (NumMins(hour(), minute()) == (NumMins(InternalMemory.read(VacationStart2ndHr), InternalMemory.read(VacationStart2ndMin))))
{
if (second() == 0)
{
Feed = 1; // Turn on feeder and feedmode
ReefAngel.FeedingModeStart();
}
}
else
{
Feed = 0;
}
}Thanks,
JOn