Tp2intervals - Copy TrainingPeaks and TrainerRoad workouts\plans to Intervals

No, it’s not.
Syncing workouts for today and tomorrow is available for free TP account.
Could you tell me what date range you have in this section? Are these days in your case represent today and tomorrow?

And what your time zone is?

1 Like

Not needed anymore for Wahoo, but works flawlessly for Zwift (via TP), thank you for putting this together.

I just tried again, and it worked fine. Not sure what is different

Thanks for your work

1 Like

This works great. Under advanced options is intervals.power-range used? I thought it might turn a single value power to a range of powers (which is nice when used w/ garmin).

I just didn’t implement steps with single value. All steps interpreted as steps with range, even if min and max and the same values.
Eventually, I think I will fix it.

2 Likes

To upload workouts for Zwift you also can try this method Upload workouts to Dropbox for Zwift etc

Great job. Does it include workout instruction text for TrainerRoad workouts?

Sadly, no. They are not available via web, so I can’t grab them

1 Like

That’s OK, I think I’m migrating to Join anyway!

For Zwift users this is a great way to get intervals.icu workouts sync’d to Zwift.

I just got the payment error again when trying the TP sync. The workout is scheduled for today (29/3) on Intervals and the date range is correct in tp2intervals.

I assume it is a time zone issue. My time zone is UTC+12:00 Auckland/Wellington New Zealand.

Thanks for the report. I’m going to look at it today.

1 Like

Just released version 0.5.1

  • Added support for swim workouts
  • Fixed issue when TP returns Payment Required error during workout planning
  • Added configuration for log level, for troubleshooting purposes

As usual, latest version available on GitHub

I wasn’t able to reproduce the issue, but I found that somewhere I use date time instead of date. I fixed it.
If you still will have same issue. Go to Configuration, check Show advanced configuration, set log level to DEBUG, Confirm, reproduce the issue. Then send me log file (where to find logs) here via PM or directly to iam@freekode.org

2 Likes

Thank for sharing, I now finally have the perfect setup! Much appreciated!

Thanks for looking at this.

Unfortunately, I got the same error on the latest version. I have emailed you the log file.

Hi, thanks for your work on this. I have over 3000 workouts in TP so pulling them/some across is of interest. I have a paid coach account and a free athlete account with TP.

The tp2intervals config saves. I get a green confirmation. Unfortunately, I then get the following error message (when I select TP in the top bar):

Error while extracting response for type [java.util.List<org.freekode.tp2intervals.infrastructure.platform.trainingpeaks.plan.TPPlanDto>] and content type [application/json;charset=utf-8]

Apologies I can’t find a log file. No tp2intervals folder in .config on Ubuntu 22.04.

If you can help me, I’d greatly appreciate it.

TIA

Sure, I can help.

When TP page is loaded, the app requests all training plans and workout libraries. Without logs hard to tell, what could be missing. I hope it’s description. I’m gonna take a look at it.

New version 0.5.2 already available on GitHub

  • Added buttons Today, Tomorrow for quick workout planning in TP
  • Improved time to load platform pages
  • Fixed retrieving plans from TP without description

You can try the new version

I haven’t tested the app on such amount of workouts. My biggest plan has ~150 workouts, it took about 5-10 sec to sync. In your case to sync 3000 workouts can take…some…time. Just be prepared to wait about 3-5 min.

3 Likes

This app would be a dream for me (and all my trainingplans in TP)

When I try to log in I get: TrainingPeaks: Access denied

Tried with my Auth Cookie, clearing cookies, but it’s always this error message:

Not sure what I’m doing wrong!
Thx

That value is quite big, maybe you didn’t copy everything.
What browser did you use to copy cookie value?
I know Firefox a little tricky. In dev console it cuts value and put (three dot symbol) in the middle of the value. You have to copy it from right-click menu → Copy all or Copy value, to get right value.

E.g. my real cookie value length is 1751 characters (seems may vary from 1750-1760), from Firefox (copied with three dots) is 1040 characters.

If you still going to have issue. I have a TP account created for tests, I can send you login/pass and cookie value just for the test.

1 Like

Oh, it was indeed Firefox, that gave me a string of 1041 chars when selecting and copying the string directly, clicking the string it’s laying out all chars.
Thx for helping!