Skip to content

Better "manual activity" support by preprocessing TCXs#7

Open
Ondkloss wants to merge 1 commit into
fishion:mainfrom
Ondkloss:preprocess
Open

Better "manual activity" support by preprocessing TCXs#7
Ondkloss wants to merge 1 commit into
fishion:mainfrom
Ondkloss:preprocess

Conversation

@Ondkloss

Copy link
Copy Markdown

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:

  • Copied over "notes" from Endomondo to "description" in Strava
  • Changed the activity name to include the original Endomondo name, as e.g. "Indoor rowing" information is lost by mapping to "Workout"
  • Added more sports to the SPORTMAP

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

  • Keep a backup of your files, as the TCX will be overwritten with the fixes

…at is, workouts that only had a single trackpoint, og none at all. These now get two points, which means they will get included and show duration and distance.

Note that this means that your TCX file WILL BE OVERWRITTEN with the altered data. Keep a backup!


Additional changes include:
* Added more sports to the SPORTMAP
* Copied over "notes" from Endomondo to "description" in Strava
* Changed the activity name to include the original Endomondo name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant