Skip to content

Convert TrainAsOne training plans from pace to power, and upload them to FinalSurge for use in Stryd workouts.

Notifications You must be signed in to change notification settings

GrahamWilliams-DMT/trainaspower

 
 

Repository files navigation

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

  • You should set your TrainAsOne account to not adjust pace for undulation, (under Profile->Workout Preferences.) You are running with power now, undulation is built in!
  • Make sure your 'pace format' is set to 'pace', and 'pace range' is turned on in your TrainAsOne settings.
  • You need to have access to the Stryd race calculator and have enough runs recorded in Stryd for it to work. This calculator is now locked behind the Stryd subscription for new Stryd users. (Old Stryd users are grandfathered in.) Test the race calculator works from the Stryd website before using TrainAsPower.

Methodology

  • Pace ranges are converted using the Stryd race calculator
  • 6 minute assessments look up your Stryd power curve, and take the max value from the last 90 days, then adds a range around it.
  • 3.2 km assesments use the Stryd race calculator to suggest a power for the distance and uses that range.
  • Perceived effort runs have a very wide hard coded range based on % of critical power.

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]

About

Convert TrainAsOne training plans from pace to power, and upload them to FinalSurge for use in Stryd workouts.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%