{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab-android/issues/914","repository_url":"https://api.github.com/repos/openhab/openhab-android","labels_url":"https://api.github.com/repos/openhab/openhab-android/issues/914/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab-android/issues/914/comments","events_url":"https://api.github.com/repos/openhab/openhab-android/issues/914/events","html_url":"https://github.com/openhab/openhab-android/pull/914","id":328815057,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMjM5MzU3","number":914,"title":"[WIP] Geofences with Google Location API","user":{"login":"CasualTriangle","id":19538437,"node_id":"MDQ6VXNlcjE5NTM4NDM3","avatar_url":"https://avatars3.githubusercontent.com/u/19538437?v=4","gravatar_id":"","url":"https://api.github.com/users/CasualTriangle","html_url":"https://github.com/CasualTriangle","followers_url":"https://api.github.com/users/CasualTriangle/followers","following_url":"https://api.github.com/users/CasualTriangle/following{/other_user}","gists_url":"https://api.github.com/users/CasualTriangle/gists{/gist_id}","starred_url":"https://api.github.com/users/CasualTriangle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CasualTriangle/subscriptions","organizations_url":"https://api.github.com/users/CasualTriangle/orgs","repos_url":"https://api.github.com/users/CasualTriangle/repos","events_url":"https://api.github.com/users/CasualTriangle/events{/privacy}","received_events_url":"https://api.github.com/users/CasualTriangle/received_events","type":"User","site_admin":false},"labels":[{"id":91955062,"node_id":"MDU6TGFiZWw5MTk1NTA2Mg==","url":"https://api.github.com/repos/openhab/openhab-android/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-06-03T09:50:37Z","updated_at":"2018-06-14T23:57:06Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/openhab/openhab-android/pulls/914","html_url":"https://github.com/openhab/openhab-android/pull/914","diff_url":"https://github.com/openhab/openhab-android/pull/914.diff","patch_url":"https://github.com/openhab/openhab-android/pull/914.patch"},"body":"Hello there, \r\nI have started to implement geofences in the app.\r\nthe idear was to let the user define a new switch-item in the App and then change the state (through a REST Api call) on the OP2 Server when the Phone gets into or out of the geofence.\r\n\r\nCurrently implemented:\r\n- A new page (selectable under the notifications tab) for geofences\r\n- Adding and removing Geofences in that page\r\n- A basic dialog to define parameters for the geofence (Location is currently hardcoded, but will change that so you can pick from a google maps instance)\r\n\r\nNot implemented yet / up for debate:\r\n- the call to the REST Api (not sure how that works yet)\r\n- picking the location with a Map \r\n- as this is a PlayStore only feature, have the foss version still work.\r\n- the automatic re-registering of the fences when the phone reboots\r\n- having the location stored on the server somehow, so that other phones connected to the same OP2 Server can choose Locations from a list instead of defining them again ?\r\n\r\nThanks,\r\nNils\r\n"},"comment":{"url":"https://api.github.com/repos/openhab/openhab-android/issues/comments/397472697","html_url":"https://github.com/openhab/openhab-android/pull/914#issuecomment-397472697","issue_url":"https://api.github.com/repos/openhab/openhab-android/issues/914","id":397472697,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzQ3MjY5Nw==","user":{"login":"Tony-Hu","id":26582935,"node_id":"MDQ6VXNlcjI2NTgyOTM1","avatar_url":"https://avatars0.githubusercontent.com/u/26582935?v=4","gravatar_id":"","url":"https://api.github.com/users/Tony-Hu","html_url":"https://github.com/Tony-Hu","followers_url":"https://api.github.com/users/Tony-Hu/followers","following_url":"https://api.github.com/users/Tony-Hu/following{/other_user}","gists_url":"https://api.github.com/users/Tony-Hu/gists{/gist_id}","starred_url":"https://api.github.com/users/Tony-Hu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tony-Hu/subscriptions","organizations_url":"https://api.github.com/users/Tony-Hu/orgs","repos_url":"https://api.github.com/users/Tony-Hu/repos","events_url":"https://api.github.com/users/Tony-Hu/events{/privacy}","received_events_url":"https://api.github.com/users/Tony-Hu/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T23:57:06Z","updated_at":"2018-06-14T23:57:06Z","author_association":"NONE","body":"I just adjust the GUI's look, and it's refreshing dynamically.\r\n<img src=\"https://raw.githubusercontent.com/Tony-Hu/openhab-android/eddystone-beacon/screenshots/location_tracking_06_14_2018.png\" height=600 />"}}
{"actor":{"display_login":"Tony-Hu"}}