Skip to content

Latest commit

 

History

History
87 lines (45 loc) · 2.64 KB

README.md

File metadata and controls

87 lines (45 loc) · 2.64 KB

Trainerroad to Zwift

Download your training road workouts as zwo and import it as Zwift workouts!

Run It

Binder

Click on the button above, and replace your credentials and your desire parameters, wait an download the zip file

ATTENTION: I strongly suggest clone this repo and run it in your local environment, sometimes it could fail because trainerroad already blocked binder IP.

How to Use it?

Usage example

Make sure to replace the following variables with your own values:

os.environ[TRAINERROAD_USER] = "your@username.com"
os.environ[TRAINERROAD_PASSWORD] = "yourpassword"

START_DATE = "MM-DD-YYYY" # For example: 12-20-2021, By default today's date
END_DATE = "MM-DD-YYYY"   # For example: 12-20-2021, By default, today's date within 3 years
INCLUDE_DATE = False  # If True Download the whole calendar including daily workouts

Restart the kernel and run all

Peek 2021-12-11 21-54

Download files from notebook

Peek 2021-11-30 23-47

Unzip compress files and move into Zwift workout folder:

untitled

Go to custom workouts and enjoy!:

untitled1

Installation

OS X & Linux:

create your own environment with conda or virtualenv and then:

pip install -r requirements.txt

Contributing

  1. Fork it (https://github.com/yourname/yourproject/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Credits

Credits to stuwilkins for python-trainerroad