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

[Future Request] Sleep schedule using timer instead time #3992

Closed
fari-99 opened this issue Aug 15, 2016 · 5 comments
Closed

[Future Request] Sleep schedule using timer instead time #3992

fari-99 opened this issue Aug 15, 2016 · 5 comments

Comments

@fari-99
Copy link

fari-99 commented Aug 15, 2016

because there is different timezone, I think it will be safe to use a timer instead time for sleep schedule.

before

{
        "type": "SleepSchedule",
        "config": {
          "enabled": false,
          "time": "22:54",
          "duration":"7:46",
          "time_random_offset": "00:24",
          "duration_random_offset": "00:43"
        }
 }

after

{
        "type": "SleepSchedule",
        "config": {
          "time": "01:59:00", //in hour, minute and second (example is 1 hour and 59 minutes)
          "duration":"00:10:00", //duration sleep in hour, minute and second (example us 10 minutes)
          "time_random_offset": "00:00:24", // add timer random 24 second
          "duration_random_offset": "00:00:43" // add duration random 43 second
        }
 }
@svebal
Copy link

svebal commented Aug 15, 2016

Start time depends on you system, where bot is running. So timezone doesn't matter. And where is the difference, can't see it?

@danielsdian
Copy link
Contributor

If you mean having a configuration where I can setup my bot to work for 3 hours and sleep for one and start again, I really would like that!

@smfbrooks
Copy link

@danielsdian you can already do this with multiple SleepSchedule tasks. In your case it would be 6 tasks.

@MasterCATZ
Copy link

I guess I could do multiple timers

but how do you stop it from setting its time 24 hrs later ,
the current code will only really work for someone that never turns the bot off

in all my tests if the bot can not perform a full duration cycle before the scheduled sleep time it will make the next scheduled sleep the following day

@k4n30
Copy link
Contributor

k4n30 commented Aug 17, 2016

@fari-99 does #4066 meet this request?

@fari-99 fari-99 closed this as completed Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants