question on lights

Do you have a question on how to do something.
Ask in here.
Post Reply
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

question on lights

Post 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!
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: question on lights

Post 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
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: question on lights

Post 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
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: question on lights

Post by rossbryant1956 »

I believe it has, thanks. I'll check it again tonite on the 10:00 PM run. Thanks again.
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: question on lights

Post by cosmith71 »

Awesome!
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: question on lights

Post by rossbryant1956 »

works beautifully! Thanks again.
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
Post Reply