Jump to content

Using Sunset + Random minutes


rmazzaro

Recommended Posts

Posted

I'm wondering if there's a way to create a daily (somewhat) random time to shut off lights using the "sunset time" + random number of minutes from 1-30 minutes.  For example, if the sunset time is 7:00 PM, have the controller turn off the lights somewhere between 7:01 and 7:30.  Then the following day perform the same thing...using a random number between 1 and 30.

 

Any thoughts or ideas?

Posted

I'm wondering if there's a way to create a daily (somewhat) random time to shut off lights using the "sunset time" + random number of minutes from 1-30 minutes. For example, if the sunset time is 7:00 PM, have the controller turn off the lights somewhere between 7:01 and 7:30. Then the following day perform the same thing...using a random number between 1 and 30.

 

Any thoughts or ideas?

This is in the program schedule IF time already. Add your max random minutes before or after sunset and click the random button. Done.

Posted

Thanks Scott and thanks Bleepblorp!

 

I guess I was thinking this would be more complicated.  But in [Action], when [Wait] is selected, there's a "[ ] Random" radio box...  Perfect!

Posted

Specifically, you want a program that has Schedule set to "At Sunset", and has no other conditions, then  the action in the program would be Wait ... Random (which may wait as briefly as zero seconds).
 
If you have any other conditions set in the If clause, keep in mind that program Conditions are re-tested after a Wait or while Repeating, which could cause statements after the Wait not to be executed.

Guest
This topic is now closed to further replies.

×
×
  • Create New...