Convert TrainAsOne training plans from pace to power, and upload them to FinalSurge for use in Stryd workouts.
Automatically converts TrainAsOne training plans to use power, and uploads them to Final Surge (Which Stryd can use in its workout app.)
poetry install
from the source directory.config.yaml.example
to config.yaml
and fill in your passwords.config.yaml
file in the same directory as the exe based on the sample config
Run poetry run trainaspower
from the checkout directory.
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.
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]