pe-st / garmin-connect-export

Download a copy of your Garmin Connect data, including stats and GPX tracks.
MIT License
376 stars 77 forks source link

Downloading GPX files with HR #89

Open solwhite opened 1 year ago

solwhite commented 1 year ago

Great code thank you! I was wondering if you had any arguments / way to download the GPX files with heart rate - on the garmin connect the activites has this feature.

Then can visualise the heart rate variabliity over the course of an activity!

Thanks,

Sol

pe-st commented 1 year ago

Hello @solwhite

The heart rate should be in the GPX files already. Mine have a <ns3:hr> element containing the heart rate for every track point:

      <trkpt lat="46.xxx" lon="7.xxx">
        <ele>620.4000244140625</ele>
        <time>2023-03-28T14:58:36.000Z</time>
        <extensions>
          <ns3:TrackPointExtension>
            <ns3:atemp>25.0</ns3:atemp>
            <ns3:hr>119</ns3:hr>
            <ns3:cad>81</ns3:cad>
          </ns3:TrackPointExtension>
        </extensions>
      </trkpt>
McPringle commented 10 months ago

I can confirm this, my exported GPX files contain my heart rate, too. They are just missing in the activities where I did not wear a heart rate sensor.