Tp2intervals - Copy TrainingPeaks and TrainerRoad workouts\plans to Intervals

Hi, thanks for your help.
I PMd you the log file.

1 Like

OK. Finally got to the right page - my numptyness. But I do not get the cookies showing.


But you’ll see a yellow triangle and a red exclamation mark that indicate when I click on them that there are errors. Is that why I am unable to see cookies despite repeatedly clicking on cookies?

Check under ‘Headers’ tab

Nothing there either I’m afraid

Required cookie is used most of the time with rest endpoint /token to get authentication token. Write token in this input and it should return at least one request.
image
If you have still none, try to update the page (without closing dev tool).

Great looking tool - thanks for sharing!

Side thought, could the tool be used to go the other way - eg. to copy across completed workouts in intervals.icu to TrainingPeaks? I have a specific use case in mind…

Do you want to copy workouts from Intervals to TP workout library or just sync from Intervals calendar to TP calendar?
The last one is possible, in latest version you can select any date to sync workouts between calendars.

1 Like

Thanks - I want to sync completed workouts from intervals.icu into TP

How can I find completed workouts in Intervals, what criteria should be applied?

That is something I think @david would have to kindly advise

I mean, there are many variables that allow to interpret workout as completed. It can be just workouts with past date or workouts with some compliance number or workouts with assigned activity and etc.
I would like to know what use case you want to implement so I can understand what workouts you want to copy.

Ahh, I understand - apologies.

My use case is that I periodically use WKO5 to analyse ride data for myself and my athletes…

  • In order to be able to use it, I either need to sync my TP account with WKO5 (and so need all my completed workouts in TP - by either uploading manually or having even more direct connections between my devices) or,
  • I need to download all of my completed workouts from intervals.icu as a fit files, store then locally and import them into WKO5 manually

In order to limit the amount of connections into multiple different platform, I wondered if your tool could be used to periodically copy completed workouts (fit files) across into my TP calendar…solving the part highlighted in red below of my training platform ‘data flow’ architecture.

1 Like

You might be able to use Dropbox integration to help with this.

1 Like

Not wanting to derail the topic but that was an idea I had, but unfortunately WKO5 won’t connect to a ‘cloud’ storage location - unless there is some way of mirroring the online drive locally?

It’s quite complex to make smth like that. ATM I can’t confirm is it doable or not.

IIRC you can download Dropbox app, and it will sync all your cloud files to locally selected directory.

3 Likes

Thanks for reviewing the request - and again for the tool! I will have a look at the dropbox option then as an alternative :+1:t3:

OK I diid that and after a page refresh get this

Which bit do I need to copy for the Authorisation code? Apologies for all the questions

give the one labelled as “access_token” a whirl. Tho I see the readme says

TrainingPeaks Auth Cookie

If you want ot use TrainingPeaks you need to configure it. Copy cookie Production_tpAuth (key and value, smth like Production_tpAuth=very_long_string) from the browser on TrainingPeaks page.

It should be in the tab called header.

Did you try a different browser?