Add heart rate data exported from Fitbit activity to GPX-file
-
Userscript manager such as Greasemonkey or Tampermonkey
Install userscript
Now when viewing activity details on Fitbit site there should be new textarea containing heart rate data in JSON format
Pretty, I know.
Copy the content of that textarea to clipboard and save to a file.
Export the corresponding workout in GPX format (for example in Endomondo that's under more options in workout detail view)
Clone this project
git clone https://github.com/Jschii/fitbit-hr-to-gpx.git
or altenatively just copy files hr2gpx.js and package.json
Update node dependencies
npm update
And now you are good to go
node hr2gpx.js <path-to-hr-json-file> <path-to-gpx-file>
If all went well alongside the original gpx-file there should now be a file with same name except for the suffix _hr.gpx
As this project web scrapes heart rate data directly from Fibit site, it'll be likely to break in the future when Fitbit changes activity details page. This is because currently Fitbit doesn't provide API to get heart rate data.