{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4131","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4131/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4131/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4131/events","html_url":"https://github.com/home-assistant/home-assistant/pull/4131","id":186123536,"number":4131,"title":"Add Google Plus geolocation","user":{"login":"icovada","id":796056,"avatar_url":"https://avatars.githubusercontent.com/u/796056?v=3","gravatar_id":"","url":"https://api.github.com/users/icovada","html_url":"https://github.com/icovada","followers_url":"https://api.github.com/users/icovada/followers","following_url":"https://api.github.com/users/icovada/following{/other_user}","gists_url":"https://api.github.com/users/icovada/gists{/gist_id}","starred_url":"https://api.github.com/users/icovada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icovada/subscriptions","organizations_url":"https://api.github.com/users/icovada/orgs","repos_url":"https://api.github.com/users/icovada/repos","events_url":"https://api.github.com/users/icovada/events{/privacy}","received_events_url":"https://api.github.com/users/icovada/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-30T08:22:31Z","updated_at":"2016-12-03T20:05:06Z","closed_at":"2016-12-02T05:46:16Z","pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4131","html_url":"https://github.com/home-assistant/home-assistant/pull/4131","diff_url":"https://github.com/home-assistant/home-assistant/pull/4131.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/4131.patch"},"body":"**Description:**\r\nThis code scrapes the data you can get from https://aboutme.google.com, then clicking the three bars at the top left, then \"Overview\" (i think, my Google is not in English)\r\n\r\n**Related issue (if applicable):** fixes #<home-assistant issue number goes here>\r\n\r\n**Pull request in [home-assistant.github.io](https://github.com/home-assistant/home-assistant.github.io) with documentation (if applicable):** home-assistant/home-assistant.github.io#4141\r\n\r\n**Example entry for `configuration.yaml`:**\r\n\r\n``` yaml\r\ndevice_tracker:\r\n  - platform: gplus\r\n    id: myphone\r\n    url: https://aboutme.google.com/_/ProfilesMeUi/data?ds.extension=data&f.sid=-numbers&hl=it&soc-app=variables&soc-platform=1&soc-device=1&_reqid=stuff&rt=c\r\n    token:\r\n      - cookies:\r\n        'SID': 'stuff'\r\n        'HSID': 'morestuff'\r\n      - data:\r\n        'f.req': 'more variables'\r\n\r\n```\r\n\r\n**Checklist:**\r\n\r\nIf user exposed functionality or configuration variables are added/changed:\r\n- [X] Documentation added/updated in [home-assistant.github.io](https://github.com/home-assistant/home-assistant.github.io)\r\n\r\nIf the code communicates with devices, web services, or third-party tools:\r\n- [x] Local tests with `tox` run successfully. **Your PR cannot be merged unless tests pass**\r\n- [x] New dependencies have been added to the `REQUIREMENTS` variable ([example](https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L16)).\r\n- [x] New dependencies are only imported inside functions that use them ([example](https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L51)).\r\n- [x] New dependencies have been added to `requirements_all.txt` by running `script/gen_requirements_all.py`.\r\n- [x] New files were added to `.coveragerc`.\r\n\r\n**I need your help**\r\nI have been able to make this work by adding my cookies directly to the code, but obviously this is not a viable solution.\r\nThe example configuration.yaml is how I had thought to make it look like, but I can't seem to pass dictionaries into the code. Would someone be so kind to help me?\r\n\r\n**How to get your data on Firefox**\r\n1) Visit https://aboutme.google.com\r\n2) Open the Instruments pane (Ctrl + Shift + C)\r\n3) Click the network tab\r\n4) click the three bar menu on the top left\r\n5) click the first menu\r\n6) look for a json request that looks like `data?ds.extension`\r\n7) Right click on it, select \"Copy with cURL\"\r\n8) Paste the result on http://curl.trillworks.com/#python to get your command formatted for python requests\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/264662227","html_url":"https://github.com/home-assistant/home-assistant/pull/4131#issuecomment-264662227","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4131","id":264662227,"user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T20:05:06Z","updated_at":"2016-12-03T20:05:06Z","body":"The MyQ never made it in because the developer never finished his platform. If you have a working version, please open a PR 👍 \r\n\r\nBut you're right, we could use a place that is more free for all. I do think that this should however not be under my control, but should be started by the community itself. We could even have that playground repo be the place where you introduce new components and we can promote them to built-in once mature."}}
{"actor":{"display_login":"balloob"}}