Skip to content

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

License

Notifications You must be signed in to change notification settings

leohemsted/gfit2mfp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages