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
Uneven intervals
-
- Posts: 180
- Joined: Thu Apr 05, 2012 6:20 am
- Location: JHB, South Africa
Re: Uneven intervals
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
}
{
// Do something for 20 min
}
else
{
// Do something for 10 min
}
Roberto.
-
- Posts: 180
- Joined: Thu Apr 05, 2012 6:20 am
- Location: JHB, South Africa
Re: Uneven intervals
Thanks Roberto