I only want the dosing pump to turn on one time a day for one second--to dose vodka while I am out of town.
I am still new to coding, so want to make sure this code will accomplish that?
if (hour()==09 && minute()==0 && second()==1) //Alk Doser - Only works if Main screen is showing
ReefAngel.Relay.On(Port5); //Turn Doser on
else
ReefAngel.Relay.Off(Port5); //Turn Doser off
Will this code work for Dosing Pump
Re: Will this code work for Dosing Pump
You got it
At exactly 9:00:01 AM, you will get the dosing pump turning on for just that second.
At exactly 9:00:01 AM, you will get the dosing pump turning on for just that second.
Roberto.
Re: Will this code work for Dosing Pump
That would work. My only comment would be to change the "09" to just be "9". The compiler may not like the 09. So you may want it to look like this:
curt
Code: Select all
if (hour()==9 && minute()==0 && second()==1)
Re: Will this code work for Dosing Pump
Thank you both