yihong0618 / running_page

Make your own running home page
https://running-page.vercel.app
MIT License
3.56k stars 1.02k forks source link

feat:suport heart_rate in export gpx file #529

Closed zhaohongxuan closed 11 months ago

zhaohongxuan commented 11 months ago

suport heart_rate in export gpx file in keep_sync, so we can backup heart rate data in local file or upload to other platform eg. Strava, Garmin

the heart rate data store in extensions field, follow the Garmin stardard : Garmin’s Track Point Extension v1, more detail info can be found in https://developers.strava.com/docs/uploads

the example exported GPX file shows below:

image

fix: #339

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
running-page ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2023 6:49am
yihong0618 commented 11 months ago

HA? we do not have heart rate info before?

zhaohongxuan commented 11 months ago

HA? we do not have heart rate info before?

Yes,there is no heart rate in export GPX file, the avg heart only exists in running page web site,you can ref this issue: https://github.com/yihong0618/running_page/issues/339

yihong0618 commented 11 months ago

have a quick its ok,did you follow the nike_sync.py to add hr to the gpx file? image

then we can use the same logic to refactor it in the future

zhaohongxuan commented 11 months ago

have a quick its ok,did you follow the nike_sync.py to add hr to the gpx file? image

then we can use the same logic to refactor it in the future

I didn't realize that this feature had been implemented before, no wonder you raised the question above😂, I'll check how to refactor it.

zhaohongxuan commented 11 months ago

@shaonianche could you help me test the nike_sync, since I can't login to my nike account...