Hi boffins,
How would I set an on/off timer for a UV light .. ie 6 hours on 6 hours off
Justin
Timer for UV
Re: Timer for UV
I would leave it on, unless you have problem with the heat it generates... Turning on/off of any electrical product tend to reduce their life span.
200 liter reef cube + 1000 liter FOWLR
Re: Timer for UV
For the record and to help people understand. The above command sets the port to On/Off based on the conditional.
The now()%43200 part divides the current time in seconds by 12 hours. If the remainder is less than 6 hours than the port will be on. If it's greater than 6 hours it will be off.
The now()%43200 part divides the current time in seconds by 12 hours. If the remainder is less than 6 hours than the port will be on. If it's greater than 6 hours it will be off.
Re: Timer for UV
Thanks Lee .. Pny, I've been told that if you run pellets then it is better to not run UV constantly.
Re: Timer for UV
Hers's mine
Code: Select all
// Only turn on UV Sterilizer between 11pm and 4am
if ( (hour() >= 4) && (hour() < 23) ) // from 4a - 11p
ReefAngel.Relay.Off(UVlight);
else ReefAngel.Relay.On(UVlight);