Login required to started new threads

Login required to post replies

Trainerroad training plan to Trainingpeaks
Quote | Reply
Has anyone tried this? I tried but not that familier on how to work in javascript. I'm stuck at seeing the output after pasting in the code from the link.


https://github.com/pchalacis/trainerroad-to-trainingpeaks


Or is there another way to import a TR training plan to TP?




Copied from the link above:


  1. login to your Trainer Road account, and open the plan. (Go to training plans, select phase and plan...).
  2. If you're viewing triathlon plan, you have to open weekly tips for every week (just click on week tips for each week).
  3. Open https://raw.githubusercontent.com/...mised/trainerroad.js file and copy it's content.
  4. On your Trainer Road window, open javascript console (for eaxample, for Chrome view -> developer -> javascript console).
  5. In the console, paste content of the file from step 3.
  6. In the output you'll get a blob of text. Select and copy it.
  7. Login to your Training Peaks account
  8. Open javascript console and paste what you copied in step 6.
  9. Open https://raw.githubusercontent.com/...sed/trainingpeaks.js file and copy it's content.
  10. Paste it to the Training Peaks window console.
  11. You will be asked for the date when you want to start the plan
  12. Enter the date, hit ok, wait 10 or 20 seconds and then refresh the page. all workouts should be there.

Quote Reply
Re: Trainerroad training plan to Trainingpeaks [s.gentz] [ In reply to ]
Quote | Reply
I have used it. If you follow the instructions precisely it works exacly as advertised. Very useful. It does not transfer over the workout structure, so if you were planning on using the TP app on your Garmin or importing to Zwift you are SOL, but for planning by TSS it's perfect.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [MattRudd] [ In reply to ]
Quote | Reply
In the output you'll get a blob of text. Select and copy it



Where is the output? When I paste in the link then hit enter it does nothing. I’m not really familiar with how JavaScript works.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [s.gentz] [ In reply to ]
Quote | Reply
You will need to run the code block in your browser console.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [MattRudd] [ In reply to ]
Quote | Reply
Any chance you have the time to step by step it like I am 8?
It says to open TR and open javascrript so I open to my TR calandar that has my plan loaded. Hir shift,ctrl,J to open Javascript console. When I do I paste in the code from the link. I either get a "failed to loas workout" timed out error or
"there page you're at has no workouts"
Understand if you don't want to bother. Thanks for your initial response and followup.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [s.gentz] [ In reply to ]
Quote | Reply
I can up to a point, I'm just away from my computer. I'll do it up to loading into TP as I don't want to have six weeks of duplicate workouts. I'll try to get it up by this evening.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [MattRudd] [ In reply to ]
Quote | Reply
Thanks. Much appreciated.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [s.gentz] [ In reply to ]
Quote | Reply
Worked for me. I would guess that you are looking at the calendar instead of the training plan for step 1.

So, for sweet spot base low volume II, make sure this is the page you are on for step 1:
https://www.trainerroad.com/...t-base-low-volume-ii
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [s.gentz] [ In reply to ]
Quote | Reply
That's awesome, I've been doing this manually for years!!! Thanks for posting! Worked perfectly for me. Who posted the original? I'd like to say thanks!
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [Spartan_Pat] [ In reply to ]
Quote | Reply
Got it. I was trying to use the console on the training plan I applied to my TR calendar.
Thanks for the help.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [MattRudd] [ In reply to ]
Quote | Reply
Got it sorted. Thanks for your help.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [s.gentz] [ In reply to ]
Quote | Reply
Frustratingly I have got this to work before but now I'm getting an error. After following the steps (pretty sure all!), the Google Chrome DevTools window for TrainingPeaks gives the following error message:
VM402:1 Uncaught TypeError: $.get is not a function
at importer (<anonymous>:1:114)
at <anonymous>:1:1386
I'm a bit baffled - if anyone has a clue then please let me know. Thanks
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [rcsa] [ In reply to ]
Quote | Reply
Looks like jquery is not loaded. Can u show the code blok?

Follow my project on Project 100 miles / 4 hours
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [rcsa] [ In reply to ]
Quote | Reply
rcsa wrote:
Frustratingly I have got this to work before but now I'm getting an error. After following the steps (pretty sure all!), the Google Chrome DevTools window for TrainingPeaks gives the following error message:

VM402:1 Uncaught TypeError: $.get is not a function
at importer (<anonymous>:1:114)
at <anonymous>:1:1386
I'm a bit baffled - if anyone has a clue then please let me know. Thanks


Did you ever get this sorted? I'm getting this error now. Not sure what to do.

VM115:1 Uncaught TypeError: $.get is not a function
at importer (<anonymous>:1:114)
at <anonymous>:1:1386
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [MattRudd] [ In reply to ]
Quote | Reply
I am getting the same error as below.

VM195:1 Uncaught TypeError: {(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)} is not a function
at <anonymous>:1:23368


Any ideas? Exporter the data fine. Pasted into console, then pasted the code from the github import after.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [s.gentz] [ In reply to ]
Quote | Reply
I just did some googling and read that the API is broken on the TrainingPeaks side to do this and it no longer works.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [Rossguy] [ In reply to ]
Quote | Reply
I had issues the most recent time I tried to accomplish this - that would explain it.
Quote Reply
Re: Trainerroad training plan to Trainingpeaks [s.gentz] [ In reply to ]
Quote | Reply
VM205:1 Uncaught TypeError: $.get is not a function
at importer (<anonymous>:1:114)
at <anonymous>:1:1386
importer @ VM205:1
(anonymous) @ VM205:1


Has anybody found a turn around?
Quote Reply