Description
GarminDB is a set of Python scripts that download health and activity data from Garmin Connect or a Garmin watch, parse it, and store it in a SQLite database that needs no server. It can also import FitBit CSV and MS Health CSV files. It downloads daily monitoring files, including all-day heart rate, activity, climb and descent, stress and intensity minutes, and it extracts sleep, weight and resting heart rate data as JSON before importing it. Activity files are imported too, with a summary table for all activities and more detailed data for some activity types, including laps and records. The scripts summarize the data into daily, weekly, monthly and yearly tables, and you can graph it from the command line or in Jupyter notebooks. Downloaded JSON and FIT files are kept, so the database can be rebuilt without contacting Garmin Connect again. Activities can be exported as TCX files. The scripts create default views to make browsing easier, and the README recommends SQLite browsers such as SQLite Studio, HeidiSQL and DB Browser for SQLite. You enter your Garmin Connect username and password in a config file. GarminDB is on PyPI, needs Python 3, and is open source on GitHub.…
Highlights
- Downloads daily monitoring and activity data from Garmin Connect
- Imports FitBit and MS Health CSV files
- Stores everything in SQLite, with no server
- Daily, weekly, monthly and yearly summaries
- Graphs and Jupyter notebooks for analysis
Ratings & Reviews
No ratings yet
Be the first to rate GarminDB.
People also visit
Healthsave Observatory
Self-hosted health-data observatory: sync Apple Health, early wearable plugins
Health Auto Export
Take control of your health data — export, analyze, and back it up securely
Mi Scale Exporter
Mobile App to export data from Mi Body Composition Scale and upload it
GarminDB FAQ
What is GarminDB?
Python scripts that download and parse health and activity data from Garmin Connect and store it in a SQLite database.
Is it free?
Yes. It is open source and hosted on GitHub, and it is published on PyPI.
How do I install it?
Run pip install garmindb with Python 3 installed. The README also covers building from source with Make.
What setup does it need?
Copy the GarminConnectConfig.json.example file to ~/.GarminDb/GarminConnectConfig.json, add your Garmin Connect username and password, and set the start dates to match your data.
Can it import data from other services?
Yes. It can import FitBit CSV and MS Health CSV files.
How do I keep the database up to date?
Run garmindb_cli.py with the --latest option to download and import new data, and run --backup now and then to back up the database files.
Does it need a database server?
No. The data is stored in SQLite, which does not require a server.
What are the best GarminDB alternatives?
Popular alternatives to GarminDB include Health Auto Export, Mi Scale Exporter and Keboola. See all GarminDB alternatives



