Fitbit Fetch Script and InfluxDB Grafana Integration

Fitbit Fetch Script and InfluxDB Grafana Integration

Fetch Fitbit API data into InfluxDB and visualize it with Grafana

790stars
61forks
Last commit: 26d ago
Repo age: 3y old

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:

Share:

Similar Services

Grafana

Grafana

Observability dashboards and alerting for metrics, logs, and traces

71.7k
13.4k
Last commit: 18h ago

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

Alternative to:
Grafana Cloud
Grafana Cloud
+19
Apache Superset

Apache Superset

Data exploration, visualization, and dashboarding platform

70.1k
16.5k
Last commit: 19h ago

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.

Alternative to:
Apache Superset (Managed Cloud)
Apache Superset (Managed Cloud)
+18
Metabase

Metabase

Open-source business intelligence and embedded analytics platform

45.6k
6.2k
Last commit: 18h ago

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

Alternative to:
Metabase Cloud
Metabase Cloud
+19
Appsmith

Appsmith

Open-source low-code platform for internal tools and dashboards

38.9k
4.4k
Last commit: 2d ago

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...

Alternative to:
Retool
Retool
+14
ToolJet

ToolJet

Low-code platform for building internal apps, dashboards, and workflows

37.2k
4.9k
Last commit: 1d ago

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.

Alternative to:
Retool
Retool
+19
Redash

Redash

Query, visualize, and share data from multiple data sources

28.2k
4.5k
Last commit: 13d ago

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.

Alternative to:
Redash
Redash
+19