Page 1 of 1

question on lights

Posted: Tue Oct 11, 2016 5:49 am
by rossbryant1956
working with this snippet

if ((hour()>=6 && hour()<9) || (hour()>=22 || hour()<23)) // Operates Moonlights twice a day
{
ReefAngel.Relay.On(Port2);
}
else
{
ReefAngel.Relay.Off(Port2);
}

How would I change that first time element to 630 AM instead of 6 AM. THX!

Re: question on lights

Posted: Tue Oct 11, 2016 6:48 pm
by rossbryant1956
Testing again tonite and this line isn't doing what I think it is. These port 2 lights are staying on. Thx in advance

Re: question on lights

Posted: Wed Oct 12, 2016 3:24 am
by cosmith71
I think this will fix it. :ugeek:

Code: Select all

  if (((hour()==6 && minute()>=30) || (hour()>6) && (hour()<9)) || (hour()>=22 && hour()<23)) // Operates Moonlights twice a day

Re: question on lights

Posted: Wed Oct 12, 2016 8:19 am
by rossbryant1956
I believe it has, thanks. I'll check it again tonite on the 10:00 PM run. Thanks again.

Re: question on lights

Posted: Thu Oct 13, 2016 3:03 am
by cosmith71
Awesome!

Re: question on lights

Posted: Thu Oct 13, 2016 5:16 am
by rossbryant1956
works beautifully! Thanks again.