/gpx-googlefit

A sails project to import gpx files to Google Fit

Primary LanguageJavaScript

GPX-Googlefit

a Sails application that imports GPX files to GoogleFit. By no means complete, but will allow one to take a workout exported to GPX, and drag/drop for import to Google Fit.

  1. npm install
  2. (npm install -g bower if you don't have it)
  3. bower install
  4. add your Google oauth creds to config/env/development.js or production
  5. sails lift or you can run a script like ./scripts/debug.sh
  6. navigate to http://localhost:1337
  7. authorize the application to use your google account
  8. drag/drop your gpx files at will

###I only have .tcx files. I had the same problem...

./gpsbabel/src/batch.sh - follow the prompts

you can read more about the gpsbabel helper in the gpsbabel/README file.

#TODOs

  1. better calculation for calories
  2. implement heartrate from tcx files
  3. Pull back data and map it:

from the api playground

https://www.googleapis.com/fitness/v1/users/me/dataSources/derived:com.google.location.sample:2629a0d9:ericmcconkie:web:f8ce354a:com.ericmcconkie.fitimporter/datasets/1479140470000000000-1479146126000000000

returns list of location points