Port time on
Port time on
I got this code here to turn on port 4 at specific times- I would like to run the port for more than the 1 min, how can I adjust it??
if ( ( (hour()==12) && (minute()==30) ) || ( (hour()==23) && (minute() ==30) ) || ( (hour()==6) && (minute() ==30) ) )
ReefAngel.Relay.On(Port4);
else
ReefAngel.Relay.Off(Port4);
if ( ( (hour()==12) && (minute()==30) ) || ( (hour()==23) && (minute() ==30) ) || ( (hour()==6) && (minute() ==30) ) )
ReefAngel.Relay.On(Port4);
else
ReefAngel.Relay.Off(Port4);
Re: Port time on
I am looking to turn on the port every 6 hours for about 10 mins ---
Re: Port time on
I would also like to turn on the port 4 in water change mode or ( be opposite of port 1, which is always on)
Re: Port time on
i did the wizard but it didn't take - tried 4 times
Re: Port time on
Rimai- could this work??
ReefAngel.Relay.Set(Port4, now()%21600<600);
if (ReefAngel.DisplayedMenu==WATERCHANGE_MODE) ReefAngel.Relay.On(Port4);
ReefAngel.Relay.Set(Port4, now()%21600<600);
if (ReefAngel.DisplayedMenu==WATERCHANGE_MODE) ReefAngel.Relay.On(Port4);
Re: Port time on
I misunderstood the question. Sorry.
I thought you wanted to turn it off and not turn it on.
Yeah, that should work.
I thought you wanted to turn it off and not turn it on.
Yeah, that should work.
Roberto.
Re: Port time on
awesome both execution works!!!
Finished setting up till I get the RF to control me Vortech
Finished setting up till I get the RF to control me Vortech