Single-use scripts to upload all of my Zwift activities to Strava, before I had connected the two.
Pre-requisites:
- Zwift username and password saved in 1Password
- A Strava API application with Client ID and Client Secret saved in 1Password
- The 1Password CLI
Set up the environment:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.in
Sign in with 1Password:
eval $(op signin --account my)
Download all .fit
files from Zwift:
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
python3 zwift_download.py
Follow the instructions to authorize with Strava:
python3 strava_auth.py
Upload all .fit
files to Strava:
python3 strava_upload.py *.fit