Page 1 of 1

Uneven intervals

Posted: Fri May 16, 2014 5:04 am
by Poiromaniax
Hi guys,

How would I code uneven intervals for my Tunze (not controllable)

Lets say I want it off for 20min and then on for 10?

thanks

Re: Uneven intervals

Posted: Fri May 16, 2014 8:00 am
by rimai
if (now()%1800<1200) // calculated in seconds. 1800s is total cycle and 1200 is the first part of the cycle.
{
// Do something for 20 min
}
else
{
// Do something for 10 min
}

Re: Uneven intervals

Posted: Sat May 17, 2014 9:26 am
by Poiromaniax
Thanks Roberto :)