Skip to content

topix-hackademy/fitbit-python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitbit-python-sdk

Python project based on Flask to test Fitbit API

Requirements

First of all create a Virtualenv

virtualenv envFitbit
source envFitbit/bin/activate

Install requirements:

pip install -r requirements.txt

You need to a Fitbit Developer Account in order to create and manage a Fitbit App https://dev.fitbit.com/apps/new

Please creating the app make attention to the redirect url and use http://localhost:5000/callback

How to Run

Create your own config file:

cp ./app/fitbit/config.ini.backup ./app/fitbit/config.ini

Edit the config with cliend_id and client_secret from Fitbit App.

Now you can run the Flask server with

python server.py

In Production Mode use WSGI with Apache/NGINX (documentation will be provided soon..).

API

For now, for testing purposes, we create just a bunch of APIs

/sleeps             get sleep data about last night
/steps              get steps data about last 7 days
/activities         get activities data
/heart              get heart data
/device             get device data

Credits

Developed with <3 from TOP-IX Hackademy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published