Skip to content

Small script to batch download .tcx files from Fitbit

Notifications You must be signed in to change notification settings

AlexMcDermott/FitbitExport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitbit Export

This is a small script I wrote that uses the Fitbit API to download all my old runs with GPS data so I can upload them to Strava.

Setup

You'll need to find your user ID as well as your Bearer Auth token and places these in the provided ENV file. I didn't sign up for an API key, I just pulled these off the Fitbit dashboard by looking at the requests it was sending to its API when loading data.

Running

Once these ENV variables are added the script can be run using npm start. The TCX files will be downloaded to the "runs" folder and needed according to their activity ID. These files can then be manually uploaded to Strava via their website.

About

Small script to batch download .tcx files from Fitbit

Resources

Stars

Watchers

Forks