WHOOP morning check-in:
1) Create a WHOOP app and get credentials:
WHOOP_CLIENT_IDWHOOP_CLIENT_SECRET2) In the WHOOP developer dashboard, set Redirect URL:
https://localhost:3000/callback3) Put secrets into ~/.clawdbot/.env:
WHOOP_CLIENT_ID=...
WHOOP_CLIENT_SECRET=...
4) Authorize once (get refresh token):
node /home/claw/clawd/skills/whoop/bin/whoop-auth --redirect-uri https://localhost:3000/callback
code from the callback URL and paste it backThis writes WHOOP_REFRESH_TOKEN=... into ~/.clawdbot/.env.
Run:
node /home/claw/clawd/skills/whoop/bin/whoop-morning
Then send the output back to the user.
Recommended: schedule with Gateway cron (daily morning).
node /home/claw/clawd/skills/whoop/bin/whoop-morninghttps://api.prod.whoop.com/oauth/oauth2/authhttps://api.prod.whoop.com/oauth/oauth2/tokenoffline scope to receive refresh tokens.共 1 个版本