ππ€ Show a leadeboard for your Hubot's friends on Fitbit
MIT License
This script is designed to be used with a Hubot to compare the Fitbit activity of your friends.
See full instructions here.
npm install hubot-fitbit-leaders --save
(updates your package.json
file)external-scripts.json
file in the root directory (you may need to create this file) and add an entry to the array (e.g. [ 'hubot-fitbit-leaders' ]
).hubot fitbit setup
- Run through the setup process for the bot (for admins)hubot fitbit leaders
- Show table of leadershubot fitbit register
- Show how to friend the bothubot fitbit approve
- Approve all pending requestsYou will need to update your FITBIT_CLIENT_ID
and generate a new FITBIT_OAUTH_TOKEN
using the steps below. You no longer need the FITBIT_OAUTH_TOKEN_SECRET
configuration variable. Note that you will have to go through this process at least once a year (the Implicit grant type token is time-limited.)
Environment Variable | Description |
---|---|
FITBIT_CLIENT_ID |
Obtained from the app registration. |
FITBIT_CLIENT_SECRET |
Obtained from the app registration. |
FITBIT_REDIRECT_URL |
Redirect URL, must mach app registration. |
FITBIT_OAUTH_TOKEN |
Found in the callback response, lasts one year. |
Register the three values as environment variables when starting your bot (as usual with Hubot scripts) using export
or heroku config:set
or whatever applies to your Hubot hosting environment.
hubot fitbit setup
=
and the next &
. Place these values into your configuration and restart Hubot.hubot register
and see if you receive a response.