Skip to content

bryandeagle/fitness-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitness Dashboard

A light-weight dashboard project for displaying Fitbit data

Installing

From the app directory:

if [ ! -d "env" ]; then
        python3 -m venv env
fi
source env/bin/activate
pip install -r requirements.txt

Deploying

Create a config.json in the working directory with the following format:

{
    "user_id": "",
    "client_id": "",
    "client_secret": "",
    "redirect_uri": ""
}

Get your Fitbit user_id by going to fitbit.com and clicking your profile in the top-right and looking at the url. it should be of the format https://fitbit.com/user/<user_id>. Get your app's client_id and client_secret from dev.fitbit.com/apps.

When the app first runs, it uses the client_id and client_secret to obtain an access token via Oauth2. You have to authorize the app to access your user account by going to the link printed to the console.

Contributing

The requirements.txt file was generated using the following command:

pipreqs --encoding=utf8 --force

About

A light-weight dashboard project for displaying Fitbit data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published