Skip to main content

A simple script to synchronize garmin to fittrackee. Inspired by https://github.com/jat255/strava-to-fittrackee

Project description

garmin-to-fittrackee

A simple script to synchronize garmin to fittrackee. Inspired by https://github.com/jat255/strava-to-fittrackee

A watch with an arrow to fitrackee icon and another arrow from fitrackee icon to watch

Thank to Thovi98 for image.

Github repository is a mirror of git.dryusdan.fr

How to install it

This script is a CLI to interact download activity with GPX on Garmin and push it into Fittrackee.

This program use garminconnect package to interact with Garmin and Typer to provide a CLI. Also, it use sqlite3 to keep whitch Garmin activity match Fittrackee workout with the aim of modifying Fittrackee sessions if new features appear.

This program is developed around Fittrackee v0.7.29 and work with it. It work on Python 3.12, 3.11 and 3.10 (minimal version required) but actively developped on Python 3.11. It's only run on Linux. Other OS isn't tested.

To install it

With official pypi :

pip install garmin-to-fittrackee

With git.dryusdan.fr pypi repository :

pip install --upgrade --index-url https://git.dryusdan.fr/api/packages/Dryusdan/pypi/simple/ --extra-index-url https://pypi.python.org/simple garmin-to-fittrackee

With source code

pip3 install poetry
git clone https://git.dryusdan.fr/Dryusdan/garmin-to-fittrackee.git
cd garmin-to-fittrackee
poetry install

How to use it

Setting you're fittrackee instance Oauth2 application

You need to setting an application in your Fittrackee instance.

Go to you're fittrackee account, then go to "apps", then "Add an application".

In the "Add a new OAuth2 application" section; chose your Application name.

To application URL and Redirect URL set this URL https://localhost (usefull for configuration, later in this README)/

In Scope, check profile:read, workouts:read, workouts:write.

After submit your application, an application ID and secret is displayed. These informatiuon is usefull for setting the CLI, note theses. And that all for Fittrackee.

The first time, you need to run 3 commands :

garmin2fittrackee setup config-tool #

This command set the configuration, default log level ("INFO"), default path to database. Use --help to view which parameters you can change

The seconds command login to Garmin. The client ask you're Garmin's credential :

garmin2fittrackee setup garmin

You can save this credentials with --store. You can set this parameters in cli argument. See --help.

The third command is used to setup fittrackee connection.

garmin2fittrackee setup fittrackee

The command ask your application ID, application secret, the domain of you're domain Fittrackee instance (without https://).

Then the CLI will guide you through authorising the application to Fittrackee.

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

garmin_to_fittrackee-0.11.1.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

garmin_to_fittrackee-0.11.1-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file garmin_to_fittrackee-0.11.1.tar.gz.

File metadata

  • Download URL: garmin_to_fittrackee-0.11.1.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Linux/6.12.48+deb13-amd64

File hashes

Hashes for garmin_to_fittrackee-0.11.1.tar.gz
Algorithm Hash digest
SHA256 41b97f9a37dd04a19ed0a18983e36177327d398aba0aaacbf2cd18a0085ff9aa
MD5 8113680edd293adf3fd31468d6a8f75e
BLAKE2b-256 85a1908cfe510c0828c664d216eb4aa2eb9d016473283246f5edeed8d6e8bba1

See more details on using hashes here.

File details

Details for the file garmin_to_fittrackee-0.11.1-py3-none-any.whl.

File metadata

  • Download URL: garmin_to_fittrackee-0.11.1-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Linux/6.12.48+deb13-amd64

File hashes

Hashes for garmin_to_fittrackee-0.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c66f228fb3566782c3cf660616e1350f8b28f61e83a7c499f1e4530e658442b
MD5 fad7eb7628e43f233c58069058734e37
BLAKE2b-256 eb11eb9c711a1321e4e52406074bc7e9e10c35ef6e2c3213567b5c6cb2855d72

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page