bWanShiTong/openwhoop

GitHub: bWanShiTong/openwhoop

Stars: 267 | Forks: 37

# OpenWhoop OpenWhoop is a project that allows you to download and analyze health data directly from your Whoop 4.0 device without a Whoop subscription or Whoop's servers, making the data your own. Features include sleep detection, exercise detection, stress calculation, HRV analysis, SpO2, skin temperature, and strain scoring - all computed locally from raw sensor data. ## Getting Started For local development, copy `.env.example` into `.env` and then scan for your Whoop device: cp .env.example .env cargo run -r -- scan After you find your device: - On Linux, copy its address to `.env` under `WHOOP` - On macOS, copy its name to `.env` under `WHOOP` Then download data from your Whoop: cargo run -r -- download-history Use `set-whoop ` and `set-remote ` to save defaults into `~/.openwhoop/.env`. Release builds and installed binaries read `.env` from `~/.openwhoop/.env`. If `DATABASE_URL` is unset there, the CLI uses `sqlite://$HOME/.openwhoop/db.sqlite?mode=rwc`. ## Commands | Command | Description | |---------|-------------| | `scan` | Scan for available Whoop devices | | `set-whoop ` | Save the default Whoop device to `~/.openwhoop/.env` | | `set-remote ` | Save the default remote database URL to `~/.openwhoop/.env` | | `download-history` | Download historical data from the device | | `detect-events` | Detect sleep and exercise events from raw data | | `sleep-stats` | Print sleep statistics (all-time and last 7 days) | | `exercise-stats` | Print exercise statistics (all-time and last 7 days) | | `calculate-stress` | Calculate stress scores (Baevsky stress index) | | `set-alarm
标签:通知系统