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:
- schedule a periodical job to run the CLI tool
- publish iCalendar file to an URL
- 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.
Source Distribution
Built Distribution
File details
Details for the file garmin-ical-export-1.1.0.tar.gz
.
File metadata
- Download URL: garmin-ical-export-1.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a86e29ece86f3a8dd8ce1fc7ccd1d7b47c0ec8c5da83d914988db698a3fe8e5f |
|
MD5 | 484ab4a1ce2ab050975b62bf8b358914 |
|
BLAKE2b-256 | 6d3dc2c2572857b6243866cc8a8b93c30500fa552630210ba412a55f1f19f4c0 |
File details
Details for the file garmin_ical_export-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: garmin_ical_export-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df17192c0809f4e2b5ded3924ea43e78635145995719a351c81104d12fb12a5 |
|
MD5 | e459add06ac10e81e1e0b11a4e8183fd |
|
BLAKE2b-256 | 1ca8e77448b79cfe1466325d5912058057bcae2abccb813983fe8d957b1e1824 |