Export all your Fitbit data to Google Fit.
Unlike other alternatives, such as fitnessyncer.com, this aims to offer very fine granularity for the data.
- Steps - minute level precision
- Distance - minute level precision
- Heart rate - second level precision
- Weight
- Body fat
- Activities
- Running
- Swimming
- Biking
- Volleyball
- Walking
- Badminton
- Workouts (as weightlifting)
- Others (as running) -- awaiting suggestions
- Calories - minute level precision
- Floors - minute level precision
- Elevation - minute level precision
- Food logs
You have to register your own Fitbit and Google Fit applications. This setup is a one time thing.
- Install dependencies
This is python3 application so install all the dependencies using sudo pip3 install -r requirements.txt
- Fitbit setup
All instructions below must be performed using the same Fitbit account you want to sync with Google Fit.
- Register a new Fitbit application on Fitbit Developers Console
- Use the information below:
Application Name : --
Description : --
Application Website : --
Organization : --
Organization Website : --
OAuth 2.0 Application Type : Personal
Callback URL : http://localhost:8080/
Default Access Type : Read-Only
Note :
1. Use your own information for fields marked --
2. Make sure you copy the Callback URL exactly (including the last /)
- Hit save and make a note of
OAuth 2.0 Client ID
andClient Secret
cd /auth
and runpython3 auth_fitbit.py <client-id> <client-secret>
- This opens a popup in the browser. Authenticate and done!
- Google Fit setup
- Go to the Google Developers Console
- Click
Continue
. Then selectGo to credentials
and selectClient ID
- Under Application type, select
Other
and hitCreate
- Make a note of
client ID
andclient secret
cd /auth
and runpython3 auth_google.py <client-id> <client-secret>
- This opens a popup in the browser. Authenticate and done!
Update the config.ini
with own choices and start the sync using python3 app.py
- Get command line help using the -h flag.
- Arguments passed through command-line take higher priority over
config.ini
values.