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!
Supported Web APIs
Only
GETAPIs 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
- Go to https://dev.fitbit.com/apps
- Click on "REGISTER AN APP" tab
- Follow below example and register an app
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
Release history Release notifications | RSS feed
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.1.tar.gz
(10.7 kB
view details)
File details
Details for the file fitbit_cli-0.1.1.tar.gz.
File metadata
- Download URL: fitbit_cli-0.1.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58d1b1df962ab401fb119c1e84766c72df114d1d76064c59ecfe1abf66225474
|
|
| MD5 |
8eaa1c52b6e4f96673cca974d4f7985d
|
|
| BLAKE2b-256 |
9721b8d52c9a9994aebe3f65042bf26bf61510151fda0ceb4a255d563621b5db
|