Open Humans Google Fit Data Source Integration
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
oh_data_source
.gitignore
LICENSE.txt
Pipfile
Pipfile.lock
Procfile
Readme.md
env.example
fit_query_steps
manage.py

Readme.md

Open Humans Google Fit Data Source Integration

Project name: OH Google Fit

Project repository: oh-data-google-fit

Creating code to link all Google Fit aggregated Data with Open Humans

Starting from the: oh-data-source-template released by @madprime: OpenHumans/oh-data-source-template

The Google Fit REST API as described here: https://developers.google.com/fit/rest/


We want to query user data:

https://developers.google.com/fit/rest/v1/reference/

https://developers.google.com/fit/rest/v1/reference/users/dataSources

https://developers.google.com/fit/rest/v1/reference/activity-types

https://developers.google.com/fit/rest/v1/reference/data-type-field-names

https://developers.google.com/fit/rest/v1/reference/parameters


Code I am using as examples:

python: chewfit: https://github.com/xchewtoyx/chewfit

ruby: fitexplorer: https://github.com/zorfling/fitexplorer

php: google-fit-php: https://packagist.org/packages/ljpc/google-fit-php

Google Fit REST API Samples https://github.com/googlesamples/android-fit/ https://developers.google.com/fit/rest/v1/running-examples


Data to be incorporated: "Aggregated Google Fit Data from Android Phones and AndroidWear watches and devices"

  • may result in some duplication of things like fitbit and moves
  • easily adds things like sleep, steps, stairs, altitude, atmospheric conditions without intervention by the @openhumans team
  • grows as Google Fit grows
    • no need to immediately parse incoming data that is not of current use
    • user selects data to be included in sync through OAuth2
    • can adopt non-used data as projects find needs for them
    • Google Fit REST API delivers all user selected data as .json