Pump Schedule for WP-25
Re: Pump Schedule for WP-25
So what happened was because your time check for the Constant mode was invalid, you would never enter that mode, so by exiting Custom mode and going back into it, you put the DCPump back to some setting and then disabled it again leaving it at whatever speed it got. In this case 39.
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA
Re: Pump Schedule for WP-25
I see, that makes sense.lnevo wrote:So what happened was because your time check for the Constant mode was invalid, you would never enter that mode, so by exiting Custom mode and going back into it, you put the DCPump back to some setting and then disabled it again leaving it at whatever speed it got. In this case 39.
I just uploaded the updated code. Everything seems fine. I will wait until 9:30pm for the first schedule to start.
Thanks Lee!
Jack
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA
Re: Pump Schedule for WP-25
Still playing around w/ my wp-25 schedule. I've updated this part of the code to include an additional time frame. Did I do this right by adding the "else if" statement for the middle (the new one) schedule?
Thanks in advance!
Code: Select all
if (ReefAngel.DCPump.Mode==Custom)
{
if ( (now()%SECS_PER_DAY >= 77400) || (now()%SECS_PER_DAY<= 34200) )
{
ReefAngel.PWM.SetActinic(30); // Constant at 30% on sync mode
}
else if ( (now()%SECS_PER_DAY >= 34200) || (now()%SECS_PER_DAY<= 48600) )
{
ReefAngel.PWM.SetActinic(33); // Constant at 33% on sync mode
}
else if ( (now()%SECS_PER_DAY >= 48600) && (now()%SECS_PER_DAY<= 77400) )
{
ReefAngel.PWM.SetActinic( ElseMode(37,7,true)); // Else on sync mode, 37 +/- 7%
}
}
Jack
Re: Pump Schedule for WP-25
Yep worked great. Keep in mind the ifs if will choose the first match.
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA
Re: Pump Schedule for WP-25
Ok, something must be messed up w/ the code I uploaded. The pump did not go into else mode at 1:30pm. Does this have to do w/ your comment above? If so, how do I solve that? Thanks.
Jack
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA
Re: Pump Schedule for WP-25
I think I've narrowed it down to whether the last 2 "ifs" need "&&" or "||"....My first guess is that the middle "if" should have "&&" as opposed to what is there now, "||".
Am I close?
Am I close?
Jack
Re: Pump Schedule for WP-25
Yes, the second one should be &&.
And yes, what I said about the first match applies. Since the second if is an OR statement and the time is greater than 34200 then the second condition is matching. It should an an AND since you want it between those bounds.
And yes, what I said about the first match applies. Since the second if is an OR statement and the time is greater than 34200 then the second condition is matching. It should an an AND since you want it between those bounds.
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA
Re: Pump Schedule for WP-25
Ok, thanks! I finally understand. I will adjust and re-upload tonight.
Jack
Re: Pump Schedule for WP-25
Isn't it great that you have the option of picking reefcrest or another mode and setting your speed manually through the portal until you get home to reupload
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA
Re: Pump Schedule for WP-25
Haha. You're right! It's so great that I totally forgot I had that option. I was going to just let it run until I got home. I just switched to reef crest, which I guess is the closest to else mode.
Love it!
Love it!
Jack
Re: Pump Schedule for WP-25
Yeah ReefCrest is pretty close. I'm not really sure the difference to tell the truth, but ElseMode is definitely more successful in the turbulence department
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA
Re: Pump Schedule for WP-25
Well..speaking of reef crest mode. I set it w/ a avg speed of 36 and a duration of 6. Even w/ that, the portal (and reeftronics) is telling me that the pump is going (or has gone) over 50%....Something's not right there. My impression is that is should run in the range between 30 and 42%....back to constant mode to be safe...
Jack
Re: Pump Schedule for WP-25
Jack,
The Duration value is not used in ReefCrestMode. The +/- on ReefCrestMode is hard coded to 20% +/-
Lagoon Mode seems to be a bit gentler and will be the DCPump.Speed +/- 10% instead of the 20%.
Just so things make sense...
The Duration value is not used in ReefCrestMode. The +/- on ReefCrestMode is hard coded to 20% +/-
Lagoon Mode seems to be a bit gentler and will be the DCPump.Speed +/- 10% instead of the 20%.
Just so things make sense...
-
- Posts: 245
- Joined: Tue Jan 28, 2014 11:10 am
- Location: Northern VA