sivertschou / dundring

dundring.com is a free and open source in-browser training application created to control and track your training with a smart bike trainer⚡️
https://dundring.com
Apache License 2.0
62 stars 8 forks source link

Feature request: Training Peaks/Garmin Connect-integration #398

Open edvardvb opened 1 month ago

edvardvb commented 1 month ago

To avoid having to build structured workouts manually every time, it would be great to have them (automatically) imported from my Training Peaks

morteako commented 1 month ago

Do you have a reference to the format TP uses, @edvardvb?

edvardvb commented 1 month ago

Not directly, you'll have to apply for API access it seems

https://github.com/TrainingPeaks/PartnersAPI/wiki/API-Endpoints https://github.com/TrainingPeaks/PartnersAPI/wiki/Workout-Structure-Object

https://api.trainingpeaks.com/request-access https://www.trainingpeaks.com/blog/an-update-on-trainingpeaks-partner-api/

sivertschou commented 1 month ago

Good suggestion! It seems like TrainingPeaks requires you to be a partner to be able to access their API, and it seems like the don't accept any more partners at the moment due to some maintenance, but I sent a request that will be considered once they open for more partners! image

morteako commented 1 month ago

Looks like it is possible to download the workouts into .zwo (and other formats). We have some WIP on importing .zwo-files. Would download from TP and then uploading into dundring suffice and help this process, or is that still too cumbersome, and automatic import through the api is needed ?

edvardvb commented 1 month ago

Automatic would be the gold standard, but sitting down once a week to manually import next week's workouts is absolutely doable 🤩

morteako commented 1 month ago

The TP workouts have different IntensityTarget/Unit, PercentOfFtp PercentOfMaxHr PercentOfThresholdHr PercentOfThresholdSpeed Rpe

I think dundring only have support for the PercentOfFtp currently. I guess that one is the one you use mainly, @edvardvb ? Hopefully 😅

edit: I kinda forgot that this will converted to zwo, so the question is kinda, how will a "normal" workout look like in zwo, when downloaded from TP? Do you have an example?

edvardvb commented 1 month ago

PercentOfFtp is probably the one, yeah! I'll send you a zwo-file from my TP on Slack 😊