This little script runs in the Google App Script environment.
Specifically it runs in Google Spreadsheets. It lets you suck down your Fitbit data and the do all kinds of analysis. It's also an easy way to get started with the Fitbit API.
Sadly to get started is a bit of a pain:
- Create a new Google Spreadsheet.
- Go to Tools-->Script Editor
- Replace the template with fitbit.js & reload the spreadsheet
- From the Fitbit menu that should appear, run the Configure option
- Follow all the instructions given in the form that pops up
- Run the "Authorize" menu option -- this will run through the oauth dance.
- Run the 'Refresh fitbit Time Data" menu option to get your data