{"id":22020869,"url":"https://github.com/fspv/gadgetbridge-influxdb-exporter","last_synced_at":"2026-05-20T05:42:22.232Z","repository":{"id":265317072,"uuid":"893604112","full_name":"fspv/gadgetbridge-influxdb-exporter","owner":"fspv","description":"Automated Data Export \u0026 Visualization for Gadget Bridge Users","archived":false,"fork":false,"pushed_at":"2024-12-28T00:53:51.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T16:44:20.338Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fspv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-24T21:22:24.000Z","updated_at":"2024-12-28T00:53:55.000Z","dependencies_parsed_at":"2025-01-28T16:41:57.384Z","dependency_job_id":"e8ada3a9-0029-46a1-a144-000386c8697b","html_url":"https://github.com/fspv/gadgetbridge-influxdb-exporter","commit_stats":null,"previous_names":["fspv/gadgetbridge-influxdb-exporter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspv%2Fgadgetbridge-influxdb-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspv%2Fgadgetbridge-influxdb-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspv%2Fgadgetbridge-influxdb-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspv%2Fgadgetbridge-influxdb-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fspv","download_url":"https://codeload.github.com/fspv/gadgetbridge-influxdb-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245084609,"owners_count":20558251,"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":[],"created_at":"2024-11-30T06:08:15.291Z","updated_at":"2026-05-20T05:42:22.191Z","avatar_url":"https://github.com/fspv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automated Data Export \u0026 Visualization for Gadget Bridge Users\n\nThis script allows you to seamlessly download and process your Xiaomi Mi Band data from [Gadget Bridge](https://gadgetbridge.org/). It retrieves your exported files from Google Drive, parses the data, and stores it in an InfluxDB database, enabling you to easily visualize and analyze your data with tools like Grafana.\n\n**Why Use This Script?**\n\n- **Preserve Your Data**: By default, Gadget Bridge can lose data when you update your phone, as it may rotate older records. This script ensures that all of your tracking data is safely stored in InfluxDB, preventing any loss.\n  \n- **Unlock Full Data Control**: Once the data is in InfluxDB, you have the freedom to query, manipulate, and visualize it however you want—without being limited by the Gadget Bridge app's interface. Customize your dashboards, generate detailed reports, or integrate with other services.\n\nWhether you're tracking your fitness progress or exploring new ways to interact with your data, this script opens up new possibilities for Xiaomi Mi Band users looking for deeper insights.\n\n## Build\n```sh\nvirtualenv .venv\nsource .venv/bin/activate\npip install poetry\npoetry install\n```\n\n## Run\n\nCreate a service account via Google Cloud Console and download the credentials.json file.\n\nSet the following environment variables to run the script:\n\n```python\nGOOGLE_DRIVE_FILE_ID=\"your_file_id_here\"\nSERVICE_ACCOUNT_PATH=\"/service_account.json\"\nOTLP_ENDPOINT=\"http://otel-collector:4317\"\nINFLUXDB_URL=\"http://influxdb:8086\"\nINFLUXDB_ORG=default_org\nINFLUXDB_BUCKET=default_bucket\nINFLUXDB_TOKEN=default_token\nDAEMON=true\n```\n\nRun the script\n\n```sh\npython main.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffspv%2Fgadgetbridge-influxdb-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffspv%2Fgadgetbridge-influxdb-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffspv%2Fgadgetbridge-influxdb-exporter/lists"}