SamR1 / FitTrackee

Self-hosted outdoor activity tracker :bicyclist:
https://samr1.github.io/FitTrackee
GNU Affero General Public License v3.0
696 stars 43 forks source link

Support import TCX file #529

Open juanro49 opened 5 months ago

juanro49 commented 5 months ago

Hello!

I have set up an instance of FitTrackee to test the software a bit, and I have seen that at the moment we can only import files in GPX format. Could you add support for the TCX format which is also very popular, supporting much more information than GPX and used as export format for different wearables like Garmin?

For example, Amazfish use TCX as output file (and I suggested it to support FitTrackee) https://github.com/piggz/harbour-amazfish/issues/362

SamR1 commented 5 months ago

Hi,

For now, only the gpx format is supported (but 3rd-party tools can be used to add files in other formats or from other sources). Support for other formats is planned, but ideally requires a rewrite of workout file processing (see #194).

juanro49 commented 5 months ago

Thank you for considering it for the future. I will try the Strava-to-FitTrackee tool to import my activities from Strava. FitTrackee has a huge job and it's a platform that's very necessary!

slackline commented 3 months ago

You could give the tcx2gpx package a whirl to batch convert TCX to GPX files. If it doesn't work please let me know.

In time I'll see if the functionality can be incorporated into third party tools.

juanro49 commented 3 months ago

You could give the tcx2gpx package a whirl to batch convert TCX to GPX files. If it doesn't work please let me know.

In time I'll see if the functionality can be incorporated into third party tools.

I tried it, but I have this error when process tcx file imagen

slackline commented 3 months ago

Thanks for giving tcx2gpx a whirl @juanro49 .

I've created an issue on the tcx2gpx repository to track work on this. If you're able to run tcx2gpx -j 1 this will force a single core to be used and help narrow down the offending .tcx file which I would be grateful if you could share with me if you don't mind as I can then investigate what is causing the problem.

If you are able to share the file on the above linked issue that would be great, or message me directly with it to avoid this issue going off track.

Cheers.

juanro49 commented 3 months ago

Thanks for giving tcx2gpx a whirl @juanro49 .

I've created an issue on the tcx2gpx repository to track work on this. If you're able to run tcx2gpx -j 1 this will force a single core to be used and help narrow down the offending .tcx file which I would be grateful if you could share with me if you don't mind as I can then investigate what is causing the problem.

If you are able to share the file on the above linked issue that would be great, or message me directly with it to avoid this issue going off track.

Cheers.

with -j 1, I have same exact error. This is the .tcx file Carrera_de_tarde.txt