mirror of
https://github.com/hanzoskill/whoop.git
synced 2026-10-30 21:13:24 +00:00
1.6 KiB
1.6 KiB
name, description, metadata
| name | description | metadata | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| whoop | WHOOP morning check-in (recovery/sleep/strain) with suggestions. |
|
whoop
WHOOP morning check-in:
- fetches your latest WHOOP data (Recovery, Sleep, Cycle/Strain)
- generates a short set of suggestions for the day
Quick Start (User + Bot)
What the user does (one-time)
- Create a WHOOP app and get credentials:
WHOOP_CLIENT_IDWHOOP_CLIENT_SECRET
- In the WHOOP developer dashboard, set Redirect URL:
https://localhost:3000/callback
- Put secrets into
~/.bot/.env:
WHOOP_CLIENT_ID=...
WHOOP_CLIENT_SECRET=...
- Authorize once (get refresh token):
node /home/claw/bot/skills/whoop/bin/whoop-auth --redirect-uri https://localhost:3000/callback
- Open the printed URL on your phone/browser
- Tap Allow/Authorize
- Copy the
codefrom the callback URL and paste it back
This writes WHOOP_REFRESH_TOKEN=... into ~/.bot/.env.
What the bot does (each run)
Run:
node /home/claw/bot/skills/whoop/bin/whoop-morning
Then send the output back to the user.
Automation (daily)
Recommended: schedule with Gateway cron (daily morning).
- Command:
node /home/claw/bot/skills/whoop/bin/whoop-morning - Bot should send the output as a message.
Notes
- OAuth endpoints:
- auth:
https://api.prod.whoop.com/oauth/oauth2/auth - token:
https://api.prod.whoop.com/oauth/oauth2/token
- auth:
- Requires
offlinescope to receive refresh tokens. - WHOOP rotates refresh tokens; the newest refresh token must be saved.