Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.39 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.39 KB

Build Status Coverage Status

gfit2mfp = Google Fit -> My Fitness Pal

takes excercise data from Google Fit and imports into My Fitness Pal

Edit the settings file, install the files using setup.py, and then run the module or something. i'll figure it out later

notes to self:

google.activity.segment returns you a two-array of values, the first of which has an intval key that represents the activity type, as seen here: https://developers.google.com/fit/rest/v1/reference/activity-types

The important ones:

Type Enum Val
Running 8
Walking 7
Cycling 1
unknown 4

Todo:

  • is regex the best way to get the csrf? it'll probably fall over if there's a weird line break or something. look into beautifulsoup?
  • same for error handling (div class/id = "errorExplanation")
  • get list of activity IDs ** make the type of activity configurable in the settings file
  • Set up client auth tokens properly so I can run this on a server - see https://cloud.google.com/appengine/docs/python/endpoints/auth#Creating_a_web_client_ID