Fitbit Fetch Script and InfluxDB Grafana Integration
Fetch Fitbit API data into InfluxDB and visualize it with Grafana
A Python-based data collection service that retrieves personal health and activity metrics from the Fitbit Web API, writes them into a local InfluxDB time-series database, and visualizes the results in Grafana. It is designed for ongoing automatic syncing as well as historical backfilling to build long-term health trends.
Key Features
- Automatic data collection from the Fitbit API with OAuth 2.0 token refresh
- Stores metrics in InfluxDB for time-series analysis (best supported on InfluxDB 1.11)
- Grafana dashboard support, including heatmaps and long-term trend panels
- Collects a broad set of metrics such as heart rate (including intraday), steps, sleep, SpO2, HRV, breathing rate, activity minutes, and device battery
- Historical backfilling mode designed to respect Fitbit rate limits and handle 429 responses
- Docker Compose stack for running the fetcher, InfluxDB, and Grafana together
Use Cases
- Personal health and fitness dashboard with long-term trends and daily summaries
- Homelab time-series tracking of wearable metrics in InfluxDB with Grafana
- Historical analysis by backfilling months/years of Fitbit data for reporting
Limitations and Considerations
- Requires creating a Fitbit developer application and configuring OAuth tokens
- InfluxDB 2.x support is described as limited and may produce a less detailed dashboard; InfluxDB 1.11 is strongly recommended
- InfluxDB 3 OSS has query-time limitations that can make long-term visualization harder
It works well for users who want ownership of their Fitbit-derived metrics in their own database and prefer Grafana for visualization. The included schema and dashboards make it practical to deploy as a repeatable, automated pipeline.
Categories:
Tags:
Tech Stack:
Similar Services

Grafana
Observability dashboards and alerting for metrics, logs, and traces
Grafana is an open source observability and data visualization platform for querying, graphing, and alerting on metrics, logs, and traces across many data sources.


Apache Superset
Data exploration, visualization, and dashboarding platform
Apache Superset is an open-source BI platform for SQL-based data exploration, interactive dashboards, and rich visualizations with a no-code chart builder and SQL editor.

Metabase
Open-source business intelligence and embedded analytics platform
Metabase is an open-source BI and embedded analytics tool for querying databases, building dashboards, and sharing reports with permissions, alerts, and embedding.

Appsmith
Open-source low-code platform for internal tools and dashboards
Build and deploy internal tools, admin panels, and dashboards with a low-code UI builder that connects to databases and APIs and supports JavaScript logic and Git workflo...

ToolJet
Low-code platform for building internal apps, dashboards, and workflows
ToolJet is an open-source low-code platform to build and deploy internal tools, dashboards, and workflows with integrations for databases, APIs, and SaaS apps.

Redash
Query, visualize, and share data from multiple data sources
Open source BI tool to connect to many data sources, run SQL/NoSQL queries, build visualizations and dashboards, share insights, and set alerts and scheduled refreshes.
Docker
Python
Grafana