Kris

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Kris

  1. Ok, i created this as a result of your suggestion and it works great! while (1) if ((systime() > DayTime) && (systime() <= SunDown) && counter<1) Beginseq (DimmerUp) counter++ else if ((systime() > SunDown) && counter>0) Beginseq (DimmerDown) counter-- endif endif delay(1) endwhile DayTime and Sundown are global variables and the counter variable takes care of the dimmer not going into a loop. Dimmerup and Dimmerdown are sequences that do what their name says. It is used to controll dimmable TL lights in a terrarium. The tropical frogs will be greatfull! Kris
  2. Ok, thanks for the swift reply. I will experiment with the proposed ways in the following days. Kris
  3. Hello, I'm trying to write a sequence where the IF condition depends on time. Something like: if systime > 8:00 then condition1 and if systime > 22:00 then condition2. So between 8.00 and 22:00 there should be condition1 and between 22:00 and 8:00 (the next day) there should be condition2. I' can't seem to find the right expression for this. Thanks in advance. Kris