Code: Select all
//Dose Alk
if ( ReefAngel.DisplayedMenu == DEFAULT_MENU ) //Alk Doser - Only works if Main screen is showing
{
/* && = and || = or
Hours between 12:05am and 6:05am
minute must be 0 (top of the hour)
seconds less than 3 (up to 3 seconds)
*/
if ( ((hour() >= 0) && (hour() <= 6)) && (minute() == 5) && //dose time
(second() < 3) ) //dose duration
{
ReefAngel.Relay.On(AlkDoser);
}
else
{
ReefAngel.Relay.Off(AlkDoser);
}
}
Code: Select all
if ( ((hour() >= 22) && (hour() <= 6)) && (minute() == 5)
Thanks!