added google credentials setup to readme

This commit is contained in:
John Tantalo
2014-12-20 13:05:49 -08:00
parent 791ffeea6a
commit 73ee185654
+10
View File
@@ -18,6 +18,16 @@ Use `pip` to install the required packages,
$ pip install -r requirements.txt $ pip install -r requirements.txt
### Google Credentials
[Create a project in Google Developers Console and enable the fitness API](https://console.developers.google.com/flows/enableapi?apiid=fitness). Note the client id and client secret.
Run `auth_google.py` to get credentials for write access to a user's body data,
$ python auth_google.py [YOUR CLIENT ID] [YOUR CLIENT SECRET] https://www.googleapis.com/auth/fitness.body.write
This script opens a browser window where you can log in to your Google account and authorize the app to "View and store body sensor data in Google Fit". When you accept, the script writes the credentials to a local file named `google.json`.
## Usage ## Usage
Run `fitsync.py` to download data from Fitbit and upload to Google, Run `fitsync.py` to download data from Fitbit and upload to Google,