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

[BUG] Bot want to keep sleeping after sleeping #5242

Closed
davidspeijer opened this issue Sep 6, 2016 · 3 comments
Closed

[BUG] Bot want to keep sleeping after sleeping #5242

davidspeijer opened this issue Sep 6, 2016 · 3 comments

Comments

@davidspeijer
Copy link

Expected Behavior

After sleep the bot continue to work

Actual Behavior

After the bot has been sleeping, it wakes up and decide to go back to sleep.
?? #5180
?? #5176

Your FULL config.json (remove your username, password, gmapkey and any other private info)

http://pastebin.com/7e8zmb7A

Output when issue occurred

[2016-09-06 14:54:22] [SleepSchedule] Sleeping for 00:06:17, wake at 2016-09-06 15:00:40.698931
[2016-09-06 15:00:41] [PokemonGoBot] Login procedure started.
[2016-09-06 15:00:42] [PokemonGoBot] Login successful.
[2016-09-06 15:00:42] [IncubateEggs] Eggs incubating: [3.01/5.0 km, 5.11/10.0 km](Eggs left: 7, Incubating: 2)
[2016-09-06 15:00:44] [SleepSchedule] Sleeping for 00:08:59, wake at 2016-09-06 15:09:44.136603
[2016-09-06 15:09:44] [PokemonGoBot] Login procedure started.
[2016-09-06 15:09:46] [PokemonGoBot] Login successful.
[2016-09-06 15:09:46] [IncubateEggs] Eggs incubating: [3.01/5.0 km, 5.11/10.0 km](Eggs left: 7, Incubating: 2)
[2016-09-06 15:09:47] [MoveToFort] Moving towards pokestop Thomas More - 0.11km
[2016-09-06 15:09:49] [SleepSchedule] Sleeping for 00:03:34, wake at 2016-09-06 15:13:24.431300

Steps to Reproduce

Start the bot

Other Information

OS: CentOS

Branch: dev

Git Commit: f543e3d

Python Version: Python 2.7.5

Any other relevant files/configs (eg: path files)

@sohje
Copy link
Contributor

sohje commented Sep 7, 2016

[2016-09-06 14:54:22] start
[2016-09-06 15:00:44] start
[2016-09-06 15:09:49] start
      {
         "time": "15:00",
         "duration": "00:15",
         "time_random_offset": "00:10",
         "duration_random_offset": "00:10",
         "wake_up_at_location": ""
      }

@cmezh
Copy link
Contributor

cmezh commented Sep 7, 2016

It happens because #5176 rewrited some of changes of #5180 where it was fixed.
My new PR is almost ready and will fix it again.

@cmezh
Copy link
Contributor

cmezh commented Sep 8, 2016

Fixed with #5278

@th3w4y th3w4y closed this as completed Sep 11, 2016
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

4 participants