{"action":"created","issue":{"url":"https://api.github.com/repos/owntracks/android/issues/627","repository_url":"https://api.github.com/repos/owntracks/android","labels_url":"https://api.github.com/repos/owntracks/android/issues/627/labels{/name}","comments_url":"https://api.github.com/repos/owntracks/android/issues/627/comments","events_url":"https://api.github.com/repos/owntracks/android/issues/627/events","html_url":"https://github.com/owntracks/android/issues/627","id":388994204,"node_id":"MDU6SXNzdWUzODg5OTQyMDQ=","number":627,"title":"reportLocation does not report location anymore","user":{"login":"metabubble","id":17064005,"node_id":"MDQ6VXNlcjE3MDY0MDA1","avatar_url":"https://avatars0.githubusercontent.com/u/17064005?v=4","gravatar_id":"","url":"https://api.github.com/users/metabubble","html_url":"https://github.com/metabubble","followers_url":"https://api.github.com/users/metabubble/followers","following_url":"https://api.github.com/users/metabubble/following{/other_user}","gists_url":"https://api.github.com/users/metabubble/gists{/gist_id}","starred_url":"https://api.github.com/users/metabubble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabubble/subscriptions","organizations_url":"https://api.github.com/users/metabubble/orgs","repos_url":"https://api.github.com/users/metabubble/repos","events_url":"https://api.github.com/users/metabubble/events{/privacy}","received_events_url":"https://api.github.com/users/metabubble/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-12-09T04:26:16Z","updated_at":"2018-12-09T09:49:42Z","closed_at":null,"author_association":"NONE","body":"I use owntracks to keep track of my android battery in home assistant when the phone is home, so I have an automation that every 5 minutes calls\r\n\r\n```\r\n_type: cmd\r\naction: reportLocation\r\n```\r\n\r\nThis used to work reliably, but since the update, that changed to the 4 different monitoring modes, when the phone is in \"significant changes monitoring mode\", it will not respond to reportLocation anymore. Not even when the app is in foreground.\r\n\r\nHere is a portion of my mqtt server. The location report was triggered manually from the phone. The request wasn't changed, only thing that changed was the owntracks update.\r\n```\r\nowntracks/christian-pixel3xl/pixel3xl {\"_type\":\"location\",\"acc\":15,\"alt\":0.0,\"batt\":38,\"conn\":\"w\",\"lat\":xxxx,\"lon\":xxxx,\"t\":\"u\",\"tid\":\"CH\",\"tst\":1544329204,\"vac\":0,\"vel\":0.0}\r\nowntracks/christian-pixel3xl/pixel3xl/cmd {\"_type\":\"cmd\",\"action\":\"reportLocation\"}\r\nowntracks/christian-pixel3xl/pixel3xl/cmd {\"_type\":\"cmd\",\"action\":\"reportLocation\"}\r\nowntracks/christian-pixel3xl/pixel3xl/cmd {\"_type\":\"cmd\",\"action\":\"reportLocation\"}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/owntracks/android/issues/comments/445523875","html_url":"https://github.com/owntracks/android/issues/627#issuecomment-445523875","issue_url":"https://api.github.com/repos/owntracks/android/issues/627","id":445523875,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTUyMzg3NQ==","user":{"login":"binarybucks","id":782356,"node_id":"MDQ6VXNlcjc4MjM1Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/782356?v=4","gravatar_id":"","url":"https://api.github.com/users/binarybucks","html_url":"https://github.com/binarybucks","followers_url":"https://api.github.com/users/binarybucks/followers","following_url":"https://api.github.com/users/binarybucks/following{/other_user}","gists_url":"https://api.github.com/users/binarybucks/gists{/gist_id}","starred_url":"https://api.github.com/users/binarybucks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarybucks/subscriptions","organizations_url":"https://api.github.com/users/binarybucks/orgs","repos_url":"https://api.github.com/users/binarybucks/repos","events_url":"https://api.github.com/users/binarybucks/events{/privacy}","received_events_url":"https://api.github.com/users/binarybucks/received_events","type":"User","site_admin":false},"created_at":"2018-12-09T09:49:42Z","updated_at":"2018-12-09T09:49:42Z","author_association":"CONTRIBUTOR","body":"I cannot create a new mode that works like the old version because the actual way how the location is requested hasn't been changed in signifficant mode. A location request has two parameters that influence when it is triggered. An interval and a displacement. With a displacement set to >0, it takes precedence over the interval however, hence my recomendation to disable it. The way those are set is exactly the same as before. There are now just three other modes around it with some different attributes. The only thing that has changed is, that the request is not recreated as often as before. \r\n\r\nWith 10 minute interval and 500m displacement a new location should be provided at least if the device moved 500m in 10 minutes. If a new location is available earlier (e.g. other apps such as Google Maps requested a location), updates are provided faster. \r\n\r\n"}}
{"actor":{"display_login":"binarybucks"}}