Support for GPX files
Opened this issue · 2 comments
This looks great! Unfortunately, I don't use a Garmin watch so I can't export my workout as a TCX file.
It would be great if this could read GPX files.
Does it work if you run your GPX through an online converter first? Or if you run the proprietary file from your watch manufacturer through a TCX converter?
I'd actually written the tool for use with my wife's Fitbit and TCX looked like the most universal format. If I recall correctly, GPX only contains position and time, and TCX adds in heart rate that is needed for the Pa:Hr calculation.
GPX can include HR data. It's in a plain text XML format that should be easy to parse. E.g., this is a single point from a Strava generated GPX file:
<trkpt lat="49.2817430" lon="-123.0332560">
<ele>32.8</ele>
<time>2023-08-30T01:21:46Z</time>
<extensions>
<gpxtpx:TrackPointExtension>
<gpxtpx:hr>157</gpxtpx:hr>
</gpxtpx:TrackPointExtension>
</extensions>
</trkpt>
I tried an online GPX>TCX converter, but it didn't save HR data.