Code for Doser based on Schedule
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA
Re: Code for Doser based on Schedule
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.
Jack
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA
Re: Code for Doser based on Schedule
This was my thread many years ago. I'm looking to do the exact same thing. When I plugged in the code:
I get an error saying expected ";" before if.
So I added it:
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!
Code: Select all
//DoserAlk Schedule
if ((hour() > 10) && (hour() < 22)) { // Between 10am and 10pm we will disable Port 6
ReefAngel.Relay.Off(Port6);
}
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);
}
Thanks!
Jack
Re: Code for Doser based on Schedule
It is probably missing from before the code you posted
Roberto.
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA
Re: Code for Doser based on Schedule
Weird because i don't recall getting any errors and the controller functioned as ordered. But it's been a few years. Thanks!rimai wrote:It is probably missing from before the code you posted
Jack