Closed HelloTroy closed 8 years ago
Did you try changing your "sleep_schedule" settings? I'm surprised that it would trigger that far from 17:45, but if you boot the bot when sleep is scheduled it will do as told. Try setting that to 12:00 temporarily and see if the bot runs.
"sleep_schedule": [
{
"time": "12:00",
"duration": "5:30",
"time_random_offset": "00:30",
"duration_random_offset": "00:30",
"wake_up_at_location": ""
},
{
"time": "17:45",
"duration": "3:00",
"time_random_offset": "01:00",
"duration_random_offset": "00:30",
"wake_up_at_location": ""
}
],
I mean that is what it is defaulted to. But she's falling asleep for a couple hours no? Or am I just reading this wrong.
[2016-09-14 19:32:04] [MainThread] [SleepSchedule] [INFO] Sleeping for 02:19:29, wake at 2016-09-14 21:51:34.066140
When you start the bot, while it's scheduled to sleep, it will do just that. Read up on how it works in the documentation.
And, about the duration:
{
"time": "17:45",
"duration": "3:00",
"time_random_offset": "01:00",
"duration_random_offset": "00:30",
"wake_up_at_location": ""
}
Standard duration is 3 hours here. But with the random duration offset of 30 minutes, it can be anything between 2 and a half hours and 3 and a half hours.
The time random offset will let the bot pick a start time to sleep this long between 16:45 and 18:45.
The schedule will calculate between which times the bot should be asleep. When the bot start and should be asleep, it will print a message it is sleeping and waits till it wakes up.
So it is possible with this configuration the bot starts around 19:30, the sleep schedule start calculating the sleep and finds that the bot should start sleeping at 18:45 for 3 and a half hours (not precise! Just giving a example) so at 19:30 is would still be sleeping.
This is to prevent a situation where the bot would normally be sleeping and is restarted in the middle of the sleep (because the config changed or something like that) and starts running again (which can lead to being banned for botting!)
I think this works as intented.
This is working as intended. If you don't want the bot to sleep, disable or modify the sleep schedule task.
Expected Behavior
The bot should start. Just re downloaded everything as I hadn't used the bot for over 2-3 weeks so i'm just using the basics.
Actual Behavior
2016-09-14 19:32:03,483 [ cli] [INFO] PokemonGO Bot v1.0 2016-09-14 19:32:03,493 [ cli] [INFO] commit: 11123a82 2016-09-14 19:32:03,495 [ cli] [INFO] No auth argument specified, checking for /Users/troyarnold/PokemonGo-Bot/pokemongo_bot/../configs/auth.json 2016-09-14 19:32:03,495 [ cli] [INFO] No config argument specified, checking for /Users/troyarnold/PokemonGo-Bot/pokemongo_bot/../configs/config.json 2016-09-14 19:32:03,499 [ cli] [INFO] Configuration initialized 2016-09-14 19:32:03,499 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information: 2016-09-14 19:32:03,499 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics 2016-09-14 19:32:03,944 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com (2581) wsgi starting up on http://127.0.0.1:4000 2016-09-14 19:32:04,054 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): 127.0.0.1 [2016-09-14 19:32:04] [MainThread] [SleepSchedule] [INFO] Sleeping for 02:19:29, wake at 2016-09-14 21:51:34.066140
Your FULL config.json (remove your username, password, gmapkey and any other private info)
{ "websocket_server": false, "heartbeat_threshold": 10, "enable_social": true, "live_config_update": { "enabled": false, "tasks_only": false }, "tasks": [ { "//NOTE: This task MUST be placed on the top of task list": {}, "type": "RandomAlivePause", "config": { "enabled": false, "min_duration": "00:00:10", "max_duration": "00:10:00", "min_interval": "00:05:00", "max_interval": "01:30:00" } }, { "type": "HandleSoftBan" }, { "type": "CompleteTutorial", "config": { "enabled": false, "// set a name": "", "nickname": "", "// 0 = No Team, 1 = Blue, 2 = Red, 3 = Yellow": "", "team": 0 } }, { "type": "CollectLevelUpReward", "config": { "collect_reward": true, "level_limit": -1 } }, { "type": "IncubateEggs", "config": { "enabled": true, "infinite_longer_eggs_first": false, "breakable_longer_eggs_first": true, "min_interval": 120 } }, { "type": "UpdateLiveStats", "config": { "enabled": false, "min_interval": 10, "stats": ["uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"], "terminal_log": true, "terminal_title": true } }, { "type": "UpdateLiveInventory", "config": { "enabled": false, "min_interval": 120, "show_all_multiple_lines": false, "items": ["pokemon_bag", "space_info", "pokeballs", "greatballs", "ultraballs", "razzberries", "luckyegg"] } }, { "type": "ShowBestPokemon", "config": { "enabled": true, "min_interval": 60, "amount": 5, "order_by": "cp", "info_to_show": ["cp", "ivcp", "dps", "hp"] } }, { "type": "TransferPokemon", "config": { "enabled": true, "min_free_slot": 5, "transfer_wait_min": 3, "transfer_wait_max": 5 } }, { "type": "NicknamePokemon", "config": { "enabled": false, "nickname_above_iv": 0.9, "nickname_template": "{ivpct}{iv_ads}", "nickname_wait_min": 3, "nickname_wait_max": 5 } }, { "type": "EvolvePokemon", "config": { "enabled": false,
}
Output when issue occurred
Steps to Reproduce
$python pokecli.py
Other Information
OS: Mac
Branch: Git Commit: Python Version: 2.7.11 Any other relevant files/configs (eg: path files)