Skip to main content

Export Garmin Connect activities to iCalendar file

Project description

Garmin iCAL Export

Garmin Connect only allows you to publish calendar with planned workouts for upcoming 30 days (source). There is no way how to export/publish your passed activities. This package provides a CLI tool that fills the gap.

The package will export your activities to iCalendar file that can be imported into any calendar client.

To keep your calendar always synced with Garmin Connect you will have to:

  1. schedule a periodical job to run the CLI tool
  2. publish iCalendar file to an URL
  3. create new calencdar in your client connected to the URL

Installation

pip3 install garmin-ical-export

Usage

usage: garmin-ical-export [-h]
                          [--activity_type {running,cycling,swimming,multi_sport,fitness_equipment,hiking,walking,winter_sports,other,all}]
                          [--limit LIMIT]
                          [--measurement_system {metric,imperial}]
                          [--target_file TARGET_FILE]
                          login_email password

Exports Garmin Connect activities to iCalendar file.

positional arguments:
  login_email           your Garmin Connect login e-mail
  password              your Garmin Connect login password

optional arguments:
  -h, --help            show this help message and exit
  --activity_type {running,cycling,swimming,multi_sport,fitness_equipment,hiking,walking,winter_sports,other,all}
                        export only specific type of activity
  --limit LIMIT         max. number of activities to export
  --measurement_system {metric,imperial}
                        which system to use to calculate activity properties
  --target_file TARGET_FILE
                        target .ics file (prints to stdout if not passed)

Examples

Export all activities, print the result.

garmin-ical-export <GARMIN_CONNECT_EMAIL> <GARMIN_CONNECT_PASSWORD>

Export only running activities, save the result to garmin_activities.ics file inside home folder.

garmin-ical-export <GARMIN_CONNECT_EMAIL> <GARMIN_CONNECT_PASSWORD> --activity_type running --target_file ~/garmin_activities.ics

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for garmin-ical-export, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size garmin_ical_export-0.0.5-py3-none-any.whl (8.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size garmin-ical-export-0.0.5.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page