{"id":15306759,"url":"https://github.com/t0mer/locationsharing","last_synced_at":"2025-04-15T00:54:20.557Z","repository":{"id":65622721,"uuid":"595623633","full_name":"t0mer/locationsharing","owner":"t0mer","description":"A Docker container to retrieve coordinates from an google account that has been shared locations of other accounts and add it as a device tracker to Home Assistant. The container publishes the info using mqtt auto discovery without the need of special configuration on the Home Assistant side.","archived":false,"fork":false,"pushed_at":"2025-01-27T00:14:23.000Z","size":35,"stargazers_count":2,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T00:54:12.782Z","etag":null,"topics":["docker","docker-compose","home-assistant","home-automation","location","location-tracking","mqtt","python3"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/techblog/locationsharing","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t0mer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-31T13:26:36.000Z","updated_at":"2025-01-27T00:14:26.000Z","dependencies_parsed_at":"2025-01-26T23:31:33.997Z","dependency_job_id":null,"html_url":"https://github.com/t0mer/locationsharing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2Flocationsharing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2Flocationsharing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2Flocationsharing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2Flocationsharing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t0mer","download_url":"https://codeload.github.com/t0mer/locationsharing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986279,"owners_count":21194025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","home-assistant","home-automation","location","location-tracking","mqtt","python3"],"created_at":"2024-10-01T08:07:23.991Z","updated_at":"2025-04-15T00:54:20.540Z","avatar_url":"https://github.com/t0mer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# locationsharing\nA Docker container to retrieve coordinates from a google account that has been shared with locations of other accounts and add it as a device tracker to Home Assistant. The container publishes the info using mqtt auto discovery without the need for special configuration on the Home Assistant side.\n\n## Install\nUse the following docker-compose file for the container installation:\n\n```yaml\nversion: \"3.6\"\nservices:\n  locationsharing:\n    image: techblog/locationsharing\n    container_name: locationsharing\n    restart: always\n    environment:\n      - EMAIL_ADDRESS= #Google account email\n      - COOKIES_FILE_NAME= #Cookies file name (File name without path)\n      - MQTT_HOST= #MQTT Host address\n      - MQTT_PORT= #MQTT Port,Default is 1883\n      - MQTT_USERNAME= #MQTT Username\n      - MQTT_PASSWORD= #MQTT Password\n      - UPDATE_INTERVAL=1 #In minutes\n    volumes:\n      - ./locationsharing/cookies:/app/cookies\n```\n\n### *cookies.txt* file\n* You must sign out and manually sign into your Google account. Then browse to google.com/maps and extract from your \"google.com\" cookies and save it as cookies.txt\n* Checkout [this chrome extension](https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid/related?hl=en) to help export such file very easily.\n* Once cookies.txt is created, if the Google account is signed out, it will invalidate the cookies.\n* Create the **./locationsharing/cookies** volume and place the cookies file inside it. \n* Next, set all the Environment variables and run docker-compose up -d to set up the container.\n\nThe container will run two scripts:\n1. The location-sharing script that creates the device_tracker and updates the information.\n2. The second script is responsible for refreshing the cookies and keeping is up to date.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft0mer%2Flocationsharing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft0mer%2Flocationsharing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft0mer%2Flocationsharing/lists"}