{"action":"created","issue":{"url":"https://api.github.com/repos/owntracks/android/issues/407","repository_url":"https://api.github.com/repos/owntracks/android","labels_url":"https://api.github.com/repos/owntracks/android/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/owntracks/android/issues/407/comments","events_url":"https://api.github.com/repos/owntracks/android/issues/407/events","html_url":"https://github.com/owntracks/android/issues/407","id":178433507,"number":407,"title":"Rapid reporting draining battery","user":{"login":"sgauche","id":8250717,"avatar_url":"https://avatars.githubusercontent.com/u/8250717?v=3","gravatar_id":"","url":"https://api.github.com/users/sgauche","html_url":"https://github.com/sgauche","followers_url":"https://api.github.com/users/sgauche/followers","following_url":"https://api.github.com/users/sgauche/following{/other_user}","gists_url":"https://api.github.com/users/sgauche/gists{/gist_id}","starred_url":"https://api.github.com/users/sgauche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgauche/subscriptions","organizations_url":"https://api.github.com/users/sgauche/orgs","repos_url":"https://api.github.com/users/sgauche/repos","events_url":"https://api.github.com/users/sgauche/events{/privacy}","received_events_url":"https://api.github.com/users/sgauche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T18:57:59Z","updated_at":"2016-09-21T19:11:52Z","closed_at":null,"body":"I'm using owntracks with Home Assistant over a private MQTT broker (mosquitto).  I recently saw this in my Home Assistant log.  It seems like OwnTracks did a bunch of rapid reports with very low accuracy and managed to drain the battery on the phone by 3% in 2 seconds.  Is there anything that would cause OwnTracks to act like this?  I have Home Assistant publish a location request update every 15 minutes.\r\n```\r\n    topic: \"owntracks/sgauche/nexus5x/cmd\"\r\n    payload_template: '{\"_type\":\"cmd\",\"action\":\"reportLocation\"}'\r\n```\r\n\r\nI edited the GPS coordinates for privacy, but the first 4 and the last report were all the same coordinates and then the 2nd and 3rd from last reports were the same and only about 1500 ft from the other 5 reports.\r\n```\r\n16-09-21 13:47:31 homeassistant.components.device_tracker.owntracks: Ignoring location update because expected GPS accuracy 100.0 is not met: {\"_type\":\"location\",\"acc\":2000,\"batt\":91,\"lat\":41,\"lon\":-84,\"tid\":\"kl\",\"tst\":1474469172}\r\n16-09-21 13:47:31 homeassistant.components.device_tracker.owntracks: Ignoring location update because expected GPS accuracy 100.0 is not met: {\"_type\":\"location\",\"acc\":2000,\"batt\":91,\"lat\":41,\"lon\":-84,\"tid\":\"kl\",\"tst\":1474470985}\r\n16-09-21 13:47:31 homeassistant.components.device_tracker.owntracks: Ignoring location update because expected GPS accuracy 100.0 is not met: {\"_type\":\"location\",\"acc\":2000,\"batt\":90,\"lat\":41,\"lon\":-84,\"tid\":\"kl\",\"tst\":1474472798}\r\n16-09-21 13:47:31 homeassistant.components.device_tracker.owntracks: Ignoring location update because expected GPS accuracy 100.0 is not met: {\"_type\":\"location\",\"acc\":2000,\"batt\":90,\"lat\":41,\"lon\":-84,\"tid\":\"kl\",\"tst\":1474474611}\r\n16-09-21 13:47:32 homeassistant.components.device_tracker.owntracks: Ignoring location update because expected GPS accuracy 100.0 is not met: {\"_type\":\"location\",\"acc\":1900,\"batt\":90,\"lat\":42,\"lon\":-85,\"tid\":\"kl\",\"tst\":1474476424}\r\n16-09-21 13:47:32 homeassistant.components.device_tracker.owntracks: Ignoring location update because expected GPS accuracy 100.0 is not met: {\"_type\":\"location\",\"acc\":1900,\"batt\":89,\"lat\":42,\"lon\":-85,\"tid\":\"kl\",\"tst\":1474478237}\r\n16-09-21 13:47:32 homeassistant.components.device_tracker.owntracks: Ignoring location update because expected GPS accuracy 100.0 is not met: {\"_type\":\"location\",\"acc\":2000,\"batt\":88,\"lat\":41,\"lon\":-84,\"tid\":\"kl\",\"tst\":1474480050}\r\n```"},"comment":{"url":"https://api.github.com/repos/owntracks/android/issues/comments/248712675","html_url":"https://github.com/owntracks/android/issues/407#issuecomment-248712675","issue_url":"https://api.github.com/repos/owntracks/android/issues/407","id":248712675,"user":{"login":"sgauche","id":8250717,"avatar_url":"https://avatars.githubusercontent.com/u/8250717?v=3","gravatar_id":"","url":"https://api.github.com/users/sgauche","html_url":"https://github.com/sgauche","followers_url":"https://api.github.com/users/sgauche/followers","following_url":"https://api.github.com/users/sgauche/following{/other_user}","gists_url":"https://api.github.com/users/sgauche/gists{/gist_id}","starred_url":"https://api.github.com/users/sgauche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgauche/subscriptions","organizations_url":"https://api.github.com/users/sgauche/orgs","repos_url":"https://api.github.com/users/sgauche/repos","events_url":"https://api.github.com/users/sgauche/events{/privacy}","received_events_url":"https://api.github.com/users/sgauche/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T19:11:52Z","updated_at":"2016-09-21T19:11:52Z","body":"I will watch for it to happen again.  I'm not sure what triggered it so it's hard to reproduce."}}
{"actor":{"display_login":"sgauche"}}