Skip to main content

export fitbit data

Project description

# MyFitbit

Because “Your data belongs to you!”

…and fitbit’s own data export sucks.

## Installation

Manual:

`sh git clone git@github.com:Knio/myfitbit cd myfitbit python3 setup.py install `

## Setup

  1. Register a new app at https://dev.fitbit.com/apps/new

The app should look like this:

The Callback URL must be exactly http://localhost:8189/

![Fitbit App](docs/fitbit_app.png =271×606)

  1. Configure the API keys

Make a file config.ini in your working directory with the client ID and secret you got from registering the fitbit app:

` [fitbit_auth] client_id = 123ABCD client_secret = 0123456789abcdef0a1b2c3d4f5 `

  1. Export your data

` python3 -m myfitbit `

This will open a web browser and prompt you to allow the app to access your data.

It will then begin exporting to your current working directory.

Note that the fitbit API is rate limited to 150 calls/hour, and you can query only 1 day of heartrate data at a time. If you many days of data, you will be rate limited and see an HTTP 429 error. Simply re-run the command an hour later and it will resume downloading where it left off.

  1. Generate report

` python3 -m myfitbit.report --user 123ABC `

Use the user id seen in the output from step 2

This will generate report.html in your current working directory.

![Fitbit Report](docs/fitbit.png)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

myfitbit-0.3.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file myfitbit-0.3.1.tar.gz.

File metadata

  • Download URL: myfitbit-0.3.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for myfitbit-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e154d27683c0337c1fc2f7121ca9edd8b6ee68df5262375d6fb39b29c79d5561
MD5 038265de332142dc2b77dc26e0b9e8e5
BLAKE2b-256 e842598b2d3710574b834bacb52703587c5919b7a0d6b1a92d8da20b98c111bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page