ATO vacation schedule not functioning
Posted: Sat Aug 03, 2013 2:55 pm
Just got my RA up and running a little over a week ago and set up a simple vacation program. The one section of code that seemed to fail was my ATO. I came home and the water was well above the float. My intention was to have the ATO only turn on at noon or 2pm if the water level was low enough to trigger the float. If triggered it should run a maximum of 2 min. For the record I'm using SingleATO. Help with my code!?
if ((hour()==12 && minute()==0 && second()==0) || (hour()==14 && minute()==0 && second()==0))
{
ReefAngel.SingleATO( true,Port2,120,0 );
}
I'm still trying to learn Arduino so an explanation as to why this won't work would be helpful as well. Thanks ~
if ((hour()==12 && minute()==0 && second()==0) || (hour()==14 && minute()==0 && second()==0))
{
ReefAngel.SingleATO( true,Port2,120,0 );
}
I'm still trying to learn Arduino so an explanation as to why this won't work would be helpful as well. Thanks ~