fishion / StravaImporter

script to import tcx files (as exported by Endomondo) into Strava
24 stars 8 forks source link

Better "manual activity" support by preprocessing TCXs #7

Open Ondkloss opened 3 years ago

Ondkloss commented 3 years ago

I'm submitting this pull request not so much to get it accepted, but more to make viewers aware of a potential fix if they were heavy users of Endomondo manual activities. As a user of "manual activities" in Endomondo I found many of my activities to not be included by this project, because the TCX files had one or zero trackpoints and the upload ignores these, or loses duration and distance information.

This pull request (and the fork it comes from) solves this problem by overwriting the TCX with two trackpoints in these specific cases. These trackpoints causes the exercise to get both duration and distance if specified from the Endomondo source, by fetching it from the JSON.

Below are some other aspects of this pull request and fork to evaluate:

For any user of this, by all means, remember to: