bailuk / AAT

Another Activity Tracker for Android
https://bailu.ch/aat
GNU General Public License v3.0
150 stars 41 forks source link

Ability to use gpxtpx:hr also in imported files #67

Closed vanous closed 4 years ago

vanous commented 4 years ago

Thank you for this wonderful app! In issue https://github.com/bailuk/AAT/issues/55 , gpxtpx:hr was added for exported files, but would it be possible to also visualize this gpxtpx:hr in AAT when importing it, please?

Gadgetbridge ( https://github.com/Freeyourgadget/Gadgetbridge/ ) can export GPX from smart watches, and adds the HR, but unfortunately it is not visualized in AAT.

thank you!

bailuk commented 4 years ago

gpxtpx comes from a Garmin extension. From the definition:

This schema defines Garmin extensions to be used with the GPX 1.1 schema. The root element defined by this schema is intended to be used as a child element of the "extensions" elements in the trkpt element in the GPX 1.1 schema. The GPX 1.1 schema is available at http://www.topografix.com/GPX/1/1/gpx.xsd. This is a replacement for TrackPointExtension in http://www.garmin.com/xmlschemas/GpxExtensions/v3

Garmin uses TrackPointExtension as a child element of extensions which was ignored by AAT. It should work now. Maybe if someone could test it before closing this issue.

The gpxtpx: part refers to a namespace. It can be ignored (if the GPX file has a valid XML declaration).

vanous commented 4 years ago

@bailuk thank you very much! I have tested on local build and files do open nicely with Heart Rate [bpm] charts displayed.