I created an Browser extension to export Training plans and workouts from TrainingPeaks

Hi all,

I create a browser extension that allows one to copy Workout Libraries and Training Plans from Training Peaks into Intervals.icu and PlanMyPeak.com

It uses the browser authentication for that.

I will soon publish it on the Chrome Store.

Here is a video of that.

Let me know if there is something missing here.

Cheers

1 Like

Sound good, I will give it a try once in the chrome store for TP to ICU, thanks

Simon,
it’s published https://chromewebstore.google.com/detail/planmypeak-importer/jppgehcpacbcjbijhadbeipekjnbcjca?authuser=4&hl=en-GB
Let me know your thoughts
Tks

Thanks, I have added it and was able to export a workout folder from Trainingpeaks to Intervals. It works!! For a training plan, there is an error when I click on the tab?

Failed to Load Data
Response validation failed

Another person reported that. I couldn’t reproduce it.
I have created a new version that shows logs
It’s available on the link (Publishing to the Chrome store takes ages to get approved)

Here part of the json log

{
“id”: “1772704608240-nakeix”,
“timestamp”: 1772704608240,
“endpoint”: “/plans/v1/plansWithAccess”,
“method”: “GET”,
“baseUrl”: “https://tpapi.trainingpeaks.com”,
“status”: null,
“success”: false,
“durationMs”: 539,
“errorMessage”: “Response validation failed”,
“errorCode”: “VALIDATION_ERROR”,
“operationName”: “training plans”
},
{
“id”: “1772704604173-mojlqa”,
“timestamp”: 1772704604173,
“endpoint”: “/users/v3/user”,
“method”: “GET”,
“baseUrl”: “https://tpapi.trainingpeaks.com”,
“status”: 200,
“success”: true,
“durationMs”: 275,
“operationName”: “user profile”
},
{
“id”: “1772704604167-pakc7b”,
“timestamp”: 1772704604167,
“endpoint”: “/exerciselibrary/v2/libraries”,
“method”: “GET”,
“baseUrl”: “https://tpapi.trainingpeaks.com”,
“status”: 200,
“success”: true,
“durationMs”: 267,
“operationName”: “libraries”
},

Simon,

what kind of workouts you have in your training plan?

Run/Swim/Ride?

Do you have a TP coach account?

I have uploaded a new version(1.11.79) with better logging chrome extension – Google Drive

I will make the code open-source soon.

if you right click on the extension you will see a “Inspect” Option.
That opens the developer window and allow you to see more information about what is happening in the Network tab.

Thanks for the support.

My Library (in my coach account) has strength, swim, run, ride, note and event

Hi Eduardo
I have swim, bike, run, strength, and the workouts folders transfer from TP to ICU, no issue.
I have a coach TP account
The response log shows the training plans, but as you see top right the extension gives the error of loading, if this helps?

Simon,

that was very helpful.

I have made some defensive validations across the code and it should be more resilient.

A new version has been uploaded to the folder

Thanks

Hi Eduardo, all now working with the latest 1.11.80. Thanks

Excellent.

let me know if you find any issues with the imported workouts/plans

I will publish that to the Chrome Store

Will do, I have test imported 1 training plan so far and all is working. So all seems to be working. Thank you

I have published a new version on the Chrome store. I might take a bit to get approved.

I made it open source

It might need a bit of tidying up. It wasn’t meant to be open source

I hope it helps more people

Cheers

Eduardo