Page 1 of 1
Coding Jebao mode - otherwise use portal
Posted: Sat Oct 19, 2013 5:20 am
by cjrudy
I know its on the forum somewhere but I couldn't find it.
How do code my WP25 and WP40 to use certain modes at certain times and any other time use whatever the portal is set to.
Re: Coding Jebao mode - otherwise use portal
Posted: Sat Oct 19, 2013 8:25 am
by rimai
Something like this:
Code: Select all
if (hour()>=7 and hour()<10)
{
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode(ShortPulse,30,70 );
}
else if (hour()>=10 || hour()<15)
{
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode(ReefCrest,30,10 );
}
else
{
ReefAngel.DCPump.UseMemory = true;
}
Re: Coding Jebao mode - otherwise use portal
Posted: Sat Oct 19, 2013 1:13 pm
by cjrudy
Thanks, Robero
Is the speed the first or second variable.
Re: Coding Jebao mode - otherwise use portal
Posted: Sat Oct 19, 2013 3:10 pm
by Sacohen
Speed is the first.
There is code in my INO and in PaulTurner911 INO that lnevo did that will randomly choose a different mode every day.