A command-line tool that automatically syncs latest Garmin activity to Strava.
-
Install the required dependencies:
uv sync
- Create a
.env
file based on.env.example
and fill in credentials:- Garmin Connect credentials (email and password)
- Strava API credentials (you can get these from Strava API Settings)
- Go to Strava API Settings
- Create a new application
- Set the "Authorization Callback Domain" to
localhost
- Copy the Client ID and Client Secret to your
.env
file - Run
uv run auth_strava.py
Run the sync command:
uv run garmin2strava.py
The tool will:
- Connect to Garmin account
- Download latest activity
- Upload it to Strava
- Automatically handle token refresh when needed