Fitbit Fetch Script and InfluxDB Grafana Integration

Fetch Fitbit API data into InfluxDB and visualize it with Grafana

907 stars 80 forks last commit first released BSD-4-Clause

Actively maintained

Last commit 14 May 2026.

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 to Fitbit Fetch Script and InfluxDB Grafana Integration

SQLPage logo

SQLPage

SQL-only web app builder that generates UI from SQL queries

2.5k
175
Last commit

SQLPage is a fast SQL-only web app builder that turns .sql files into interactive web pages and APIs on top of your existing database.

MITActively maintained
Alternative to:
Retool logo
Retool
+19
Prometheus logo

Prometheus

Monitoring system and time-series database for metrics and alerting

65.3k
10.7k
Last commit

Prometheus is an open-source monitoring and time-series database for collecting metrics, querying with PromQL, and alerting on system and application health.

Apache-2.0Actively maintained
Alternative to:
Datadog Cloud Monitoring logo
Datadog Cloud Monitoring
+17
ThingsBoard logo

ThingsBoard

Open-source IoT platform for device management and dashboards

22.1k
6.4k
Last commit

Open-source IoT platform for device management, telemetry collection, rule-based processing, alarms, and real-time dashboards using standard IoT protocols.

Apache-2.0Actively maintained
Alternative to:
ThingsBoard Cloud logo
ThingsBoard Cloud
+10
Datasette logo

Datasette

Explore and publish SQLite data as a web UI and JSON API

11.3k
886
Last commit

Open source tool to publish SQLite databases as an interactive website with a JSON API, with a powerful plugin system for search, auth, and customization.

Apache-2.0Actively maintained
Alternative to:
Directus Cloud logo
Directus Cloud
+10

Scrutiny

Web UI for SMART monitoring of hard drives

8k
289
Last commit

Self-hosted S.M.A.R.T monitoring dashboard that collects SMART data, visualizes historical trends, and alerts on drive health.

MITActively maintained
Alternative to:
Hard Disk Sentinel logo
Hard Disk Sentinel
+11
OpenRemote logo

OpenRemote

Open-source IoT device management and automation platform

1.8k
450
Last commit

OpenRemote is a 100% open-source IoT platform for device management, data dashboards, and automation with rules, APIs, and multi-tenant user management.

Actively maintained
Alternative to:
ThingsBoard Cloud logo
ThingsBoard Cloud
+13