Retrieve data from Garmin Connect and store it in a MySQL database.
- Create a database and run the
sql/schema.sql
script to create the necessary tables. - Install the required packages:
pip install -r requirements.txt
- Login in Garmin Connect and get
Authorization
andCookie
headers from the backend requests. - Create a
.env
file with the following content:# db DB_HOST= DB_NAME= DB_USER= DB_PASS= # Garmin API AUTHORIZATION= COOKIE=
- Run
run.py
.
dashboards
directory contains Grafana dashboards that can be imported to visualize the data. The datasource and database name is hardcoded there and needs to be changed to match your setup.