Small python script for load bulk weight/steps data to a Google Fit account. This is a fork of motherapp's weight-csv-to-gfit.
To run this script, you will need:
python 2.7pipvirtualenv
git clone https://github.com/TadWohlrapp/weight-csv-to-gfit.git
cd weight-csv-to-gfit
virtualenv -p /usr/bin/python2.7 venv
pip install -r requirements.txt
- Go to https://console.developers.google.com/apis/credentials
- Create a new OAuth client ID (Create credentials -> OAuth client ID)
- Set the Redirect URI to the playground: https://developers.google.com/oauthplayground
- Download the client secret json file, place it in this project's main folder and rename it to
client_secret.json
- Go to https://console.developers.google.com/apis/credentials
- Create a new API Key (Create credentials -> API Key)
- Copy the key and save it as
api_key.txtin the project's main folder
cd weight
python import_weight_to_gfit.py