Page 1 of 1
Re: Code for Doser based on Schedule
Posted: Fri May 30, 2014 6:01 am
by howaboutme
i checked the measuring cup this morning before I left for work and after 7 doses, it was at around 10mL. This is based on 72 seconds per dose. It still have 5 doses left so that will definitely be above 15 mL. Based on that, I'm thinking everything is working correctly and evaporation probably was the culprit. I agree with you that starting with 68 seconds is best and then monitor. Will start tonight! Thanks.
Re: Code for Doser based on Schedule
Posted: Sun Sep 26, 2021 1:26 pm
by howaboutme
This was my thread many years ago. I'm looking to do the exact same thing. When I plugged in the code:
Code: Select all
//DoserAlk Schedule
if ((hour() > 10) && (hour() < 22)) { // Between 10am and 10pm we will disable Port 6
ReefAngel.Relay.Off(Port6);
}
I get an error saying expected ";" before if.
So I added it:
Code: Select all
//DoserAlk Schedule
;if ((hour() > 10) && (hour() < 22)) { // Between 10am and 10pm we will disable Port 6
ReefAngel.Relay.Off(Port6);
}
It complied fine. I'm curious why the error? Did something change in the background for this line to need the ";"? Will this do what I want?
Thanks!
Re: Code for Doser based on Schedule
Posted: Sun Sep 26, 2021 7:52 pm
by rimai
It is probably missing from before the code you posted
Re: Code for Doser based on Schedule
Posted: Mon Sep 27, 2021 4:32 am
by howaboutme
rimai wrote:It is probably missing from before the code you posted
Weird because i don't recall getting any errors and the controller functioned as ordered. But it's been a few years. Thanks!