- Creates NodeJS proxy for the Fitbit API
- Fetches selected data into the SQLite DB
Insert your Fitbit dev information into the config section in the app.js file
/* --- config --- */
var CONSUMER_KEY = '',
CONSUMER_SECRET = '',
PERIOD = 'max', // 1d, 7d, 30d, 1w, 1m, 3m, 6m, 1y, max
DB_NAME = './fitbit.db',
APP_PORT = 8553;
-
GET requests:
/rest/activities/{yyyy-mm-dd}
/rest/body/{yyyy-mm-dd}
/rest/foods/{yyyy-mm-dd}
/rest/glucose/{yyyy-mm-dd}
/rest/heart/{yyyy-mm-dd}
/rest/sleep/{yyyy-mm-dd}
/rest/profile
-
POST/PUT requests:
/rest/update- update new data
- express
- connect
- sqlite3
- fitbit-js