Skip to main content

Access your Fitbit data at your terminal.

Project description

Fitbit CLI

Release PyPI - Status PyPI - Version

⚠️ 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] [-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
  -i, --init-auth       Initialize Fitbit iterative authentication setup
  -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]]
                        Show sleep data
  -o, --spo2 [DATE[,DATE]]
                        Show SpO2 data
  -e, --heart [DATE[,DATE]]
                        Show Heart Rate Time Series data
  -a, --active-zone [DATE[,DATE]]
                        Show Active Zone Minutes (AZM) Time Series data
  -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-1.0.0.tar.gz (11.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: fitbit_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 11.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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ff1632df86ba30b5b5dca7eb92d0b918bbb85630adc0c13ccb35a042047e584f
MD5 6d9bdbe1e466f427ef853e9124ca95e1
BLAKE2b-256 01703e7190a67a07724e91ce8806637ea01eeea1b8d4751036242b5cc36e1ff0

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