/peloton-to-garmin

Convert workout data from Peloton into a TCX file that can be uploaded to Garmin

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

peloton-to-garmin

Convert workout data from Peloton into a TCX file that can be uploaded to Garmin

Setup

  1. Download the repo here
  2. Extract the zip file
  3. Install the latest version of Python 3, currently 3.6.4
  4. Open File Explorer and navigate to the wherever you unzipped the downloaded project
  5. Navigate so that you are inside the peloton-to-garmin folder
  6. Open a command prompt by clicking in the Location Bar at the top and typing cmd then hit enter
  7. From the command prompt run the following command:
    1. pip install -r requirements.txt
  8. Close the command prompt and return to the peloton-to-garmin folder
  9. Edit the config.ini file and set your Peloton Email and Password, Save and Close

Usage

  • Open a command prompt inside of the peloton-to-garmin folder
  • Run the following command:
    • python peloton-to-garmin
  • You will be prompted to enter how many workouts you would like to fetch
  • A TCX file for each workout will be created in the output directory
  • The resulting TCX file can then be uploaded to Garmin

Runnning in docker

  • Build the image by running
    • docker build . -t pelotontogarmin
  • Run the container by running:
    • docker run -v /full_path_here/peloton-to-garmin/output:/output pelotontogarmin

⚠️ WARNING!!! Your username and password for Peloton and Garmin Connect are stored in clear text, WHICH IS NOT SECURE. If you have concerns about storing your credentials in an unsecure file, do not use this option.