I assume this will work to have it come on 4 times during the day and run for 1 minute each time, but it's a little inflexible.
Code: Select all
if (((hour() == 10) || (hour() == 14) || (hour() == 18) || (hour() == 22)) && (minute() < 1)) { // run autofeeder for 1 minute at 10,2,6,10
ReefAngel.Relay.On(Box1_Port5);
} else {
ReefAngel.Relay.Off(Box1_Port5);
}