{"action":"created","issue":{"url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/106","repository_url":"https://api.github.com/repos/kvangent/PokeAlarm","labels_url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/106/comments","events_url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/106/events","html_url":"https://github.com/kvangent/PokeAlarm/issues/106","id":170936175,"number":106,"title":"[BUG] Exception in thread Thread-1","user":{"login":"Samras","id":3917964,"avatar_url":"https://avatars.githubusercontent.com/u/3917964?v=3","gravatar_id":"","url":"https://api.github.com/users/Samras","html_url":"https://github.com/Samras","followers_url":"https://api.github.com/users/Samras/followers","following_url":"https://api.github.com/users/Samras/following{/other_user}","gists_url":"https://api.github.com/users/Samras/gists{/gist_id}","starred_url":"https://api.github.com/users/Samras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samras/subscriptions","organizations_url":"https://api.github.com/users/Samras/orgs","repos_url":"https://api.github.com/users/Samras/repos","events_url":"https://api.github.com/users/Samras/events{/privacy}","received_events_url":"https://api.github.com/users/Samras/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-12T18:55:26Z","updated_at":"2016-08-12T19:11:52Z","closed_at":null,"body":"<!--- ALL ISSUES CREATED NOT USING ONE OF THE BELOW ISSUE TEMPLATES WILL BE CLOSED WITHOUT RESPONSE --->\r\n<!--- ALL ISSUES CREATED NOT USING ONE OF THE BELOW ISSUE TEMPLATES WILL BE CLOSED WITHOUT RESPONSE --->\r\n<!--- ALL ISSUES CREATED NOT USING ONE OF THE BELOW ISSUE TEMPLATES WILL BE CLOSED WITHOUT RESPONSE --->\r\n<!--- ALL ISSUES CREATED NOT USING ONE OF THE BELOW ISSUE TEMPLATES WILL BE CLOSED WITHOUT RESPONSE --->\r\n\r\n<!--- Please add one of the following flairs to title if appropriate: [BUG] or [ENHANCEMENT] -->\r\n<!--- Pick one of of the below templates and remove the other - either [BUG/USER SPEICFIC] or [ENHANCEMENT] --->\r\n\r\n\r\n<!--- [BUG/USER SPECIFIC] Use this template if PokeAlarm is behaving in an incorrect or unexpected way.   --->\r\n## Problem Description\r\n<!--- Please describe the problem you are experiencing.  -->\r\n\r\n## Your Environment\r\n<!--- Please post as many details  -->\r\nOperating System:  Debian 8.4 Jessie\r\nPython Version: Python 2.7.12\r\nPokemonGo-Map startup command: `python runserver.py -ns -l '51.5189246068, 7.46500957478' -st 3 -a ptc -u XXXXX -p 'XXXXX' -k CENSORED -wh http://127.0.0.1:4000`  \r\nPokeAlarm startup command: `python runwebhook.py`\r\n\r\nDid the issue persist after restarting the script?: yes\r\n\r\n## Console Output\r\n<!--- Please post any relevant output provided from the PokeAlarm when you ran it -->\r\n```\r\n\tException in thread Thread-1:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/threading.py\", line 801, in __bootstrap_inner\r\n    self.run()\r\n  File \"/home/poke/PokeAlarm/alarms/alarm_manager.py\", line 72, in run\r\n    self.trigger_pkmn(data['message'])\r\n  File \"/home/poke/PokeAlarm/alarms/alarm_manager.py\", line 109, in trigger_pkmn\r\n    if config['GEOFENCE'] is not None and not config['GEOFENCE'].contains(lat,lng):\r\nKeyError: 'GEOFENCE'\r\n\r\n```\r\n\r\n## Your Alarms Config\r\n<!--- Please post the config for your alarms in the space below -->\r\n<!--- Remove all person data such as API_KEYs or CHAT_IDs -->\r\n```json\r\n    [\r\n                {\r\n                        \"active\":\"False\",\r\n                        \"type\":\"pushbullet\",\r\n                        \"api_key\":\"YOUR_API_KEY\"\r\n                },\r\n                {\r\n                        \"active\": \"False\",\r\n                        \"type\":\"slack\",\r\n                        \"api_key\":\"YOUR_API_KEY\",\r\n                        \"channel\":\"#general\"\r\n                },\r\n                {\r\n                        \"active\": \"False\",\r\n                        \"type\":\"twilio\",\r\n                        \"account_sid\":\"YOUR_API_KEY\",\r\n                        \"auth_token\":\"YOUR_AUTH_TOKEN\",\r\n                        \"from_number\":\"YOUR_FROM_NUM\",\r\n                        \"to_number\":\"YOUR_TO_NUM\"\r\n                },\r\n                {\r\n                        \"active\": \"True\",\r\n                        \"type\":\"telegram\",\r\n                        \"bot_token\":\"XXXXXXXX\",\r\n                        \"chat_id\":\"-XXXXXXX\"\r\n                },\r\n                {\r\n                        \"active\": \"False\",\r\n                        \"type\": \"pushover\",\r\n                        \"app_token\": \"YOUR_APP_TOKEN\",\r\n                        \"user_key\": \"YOUR_USER_KEY\"\r\n                }\r\n        ],\r\n\r\n```\r\n\r\n## Troubleshooting Checklist\r\n[X ] Most recent version of PokemonGo-Map\r\n[X ] Most recent version of PokeAlarm\r\n[X ] Checked the Wiki page for service in question\r\n\r\n<!--- END OF [BUG/USER SPECIFIC] TEMPLATE ---REMOVE ABOVE OR BELOW THIS LINE             ----->\r\n-->"},"comment":{"url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/comments/239534997","html_url":"https://github.com/kvangent/PokeAlarm/issues/106#issuecomment-239534997","issue_url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/106","id":239534997,"user":{"login":"Samras","id":3917964,"avatar_url":"https://avatars.githubusercontent.com/u/3917964?v=3","gravatar_id":"","url":"https://api.github.com/users/Samras","html_url":"https://github.com/Samras","followers_url":"https://api.github.com/users/Samras/followers","following_url":"https://api.github.com/users/Samras/following{/other_user}","gists_url":"https://api.github.com/users/Samras/gists{/gist_id}","starred_url":"https://api.github.com/users/Samras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samras/subscriptions","organizations_url":"https://api.github.com/users/Samras/orgs","repos_url":"https://api.github.com/users/Samras/repos","events_url":"https://api.github.com/users/Samras/events{/privacy}","received_events_url":"https://api.github.com/users/Samras/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T19:11:52Z","updated_at":"2016-08-12T19:11:52Z","body":"@kvangent \r\nnow getting another error:\r\nException in thread Thread-1:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/threading.py\", line 801, in __bootstrap_inner\r\n    self.run()\r\n  File \"/home/poke/PokeAlarm/alarms/alarm_manager.py\", line 72, in run\r\n    self.trigger_pkmn(data['message'])\r\n  File \"/home/poke/PokeAlarm/alarms/alarm_manager.py\", line 88, in trigger_pkmn\r\n    log.info(name + \" ignore: time_left has passed.\")\r\nUnboundLocalError: local variable 'name' referenced before assignment\r\n"}}
{"actor":{"display_login":"Samras"}}