Skip to main content

Access your Fitbit data at your terminal.

Project description

Fitbit CLI

⚠️ This is not an official Fitbit CLI

Access your Fitbit data directly from your terminal 💻. View 💤 sleep logs, ❤️ heart rate, 🏋️‍♂️ activity levels, 🩸 SpO2, and more, all presented in a simple, easy-to-read table format!

Fitbit logo

Supported Web APIs

Only GET APIs are supported!

API Status
User
Sleep
SpO2
Heart Rate Time Series
Active Zone Minutes (AZM) Time Series
Activity 👷

Install

python -m pip install fitbit-cli

fitbit-cli -h
usage: fitbit-cli [-h] [-d | -i] [-s [DATE[,DATE]]] [-o [DATE[,DATE]]] [-e [DATE[,DATE]]] [-a [DATE[,DATE]]] [-u] [-v]

Fitbit CLI -- Access your Fitbit data at your terminal.

options:
  -h, --help            show this help message and exit
  -d, --json-dump       Dump all your Fitbit data in json files.
  -i, --init            Run interative setup to fetch token.
  -v, --version         Show fitbit-cli version

APIs:
  Specify date ranges (ISO 8601 format: YYYY-MM-DD) for the following arguments.
  You can provide a single date or a range (start,end). If not provided, defaults to today's date.

  -s, --sleep [DATE[,DATE]]
                        Sleep data
  -o, --spo2 [DATE[,DATE]]
                        SpO2 data
  -e, --heart [DATE[,DATE]]
                        Heart Rate Time Series
  -a, --active-zone [DATE[,DATE]]
                        Active Zone Minutes (AZM) Time Series
  -u, --show-user-profile
                        Show user profile data

Register Fitbit App

  1. Go to https://dev.fitbit.com/apps
  2. Click on "REGISTER AN APP" tab
  3. Follow below example and register an app

Fitbit logo

Local Development

git clone git@github.com:veerendra2/fitbit-cli.git
cd fitbit-cli

python -m venv venv
source venv/bin/activate
python -m pip install -e .

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

fitbit_cli-0.1.0.tar.gz (10.0 kB view details)

Uploaded Source

File details

Details for the file fitbit_cli-0.1.0.tar.gz.

File metadata

  • Download URL: fitbit_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for fitbit_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 da24cf8e99c6618b6453249564d57bc6e91a86936e837adf7a95d3ad7ef76f89
MD5 58f33ce760e36acd617373840eee5dbd
BLAKE2b-256 ab5b05cc8401afed01b2f7e63de9905181d27d8eb8e2d545e4966fb6da47d92b

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