gazpachoking / trainaspower

Convert TrainAsOne training plans from pace to power, and upload them to FinalSurge for use in Stryd workouts.
21 stars 5 forks source link
hacktoberfest

TrainAsPower

Automatically converts TrainAsOne training plans to use power, and uploads them to Final Surge (Which Stryd can use in its workout app.)

From this, to this!

TrainAsOne Workout Stryd Workout

Installation

From Source

  1. Install Poetry
  2. Check out the git repository, or, download and extract the source zip.
  3. Run poetry install from the source directory.
  4. Copy config.yaml.example to config.yaml and fill in your passwords.

Windows Package

  1. Download the exe from the latest release
  2. Create a config.yaml file in the same directory as the exe based on the sample config

Execution

Run poetry run trainaspower from the checkout directory.

Crontab

If you want to set it up in crontab, you have to get the path to the executable. Run echo $(poetry env info --path)/bin/trainaspower to get the full path, which you can then enter into crontab.

Each execution will add the next workout to be completed, so it needs to be scheduled once a day, sometime after midnight when your next workout will have been finalized by TaO.

Requirements

Methodology

Config Options

Your config must contain all the credentials for the sites required (stryd, trainasone, and finalsurge.)

Your config may also contain X_pace_adjust values, where X is one of the Train as One pace categories (very_easy, easy, fast, extreme.) If these are specified, it will adjust the range for these types of steps. For example, to widen the range for 'easy' steps to 5 watts lower and higher than the pace generated ranges:

easy_pace_adjust: [-5, 5]