Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notion of time randomizer #40

Open
dhylands opened this issue Mar 16, 2016 · 1 comment
Open

Add notion of time randomizer #40

dhylands opened this issue Mar 16, 2016 · 1 comment

Comments

@dhylands
Copy link

Not sure if this is the right place to put this but when scheduling things like lights, it would be nice to say things like:

Turn my outside lights on at sunset plus or minus a 30 minute random time interval.

@Yoric
Copy link
Collaborator

Yoric commented Mar 16, 2016

I was thinking about adding a delay to the condition, but we can also add one to the execution. So instead of When [x] do [y], we can also say When [x], wait [min, max] seconds then do [y], or if we use both delays, When [x] has remained true for [t] seconds, wait [min, max] seconds then do [y].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants