WHOOP连接

whoop-connect

by belugary

Connect WHOOP wearable to OpenClaw — fetch and store recovery, sleep, HRV, strain, and workout data locally. Use when: user asks about recovery, sleep quality, HRV, heart rate, strain, workout stats, or any WHOOP data. NOT for: Apple Health, Oura, Garmin, or other non-WHOOP devices.

4.5k平台与服务未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/belugary/whoop-connect

文档

whoop-connect

Connect your WHOOP band to OpenClaw so your agent can fetch your recovery, sleep, HRV, strain, and workout data.

Setup (once)

WHOOP does not have a public API. To access your own data, you need to register a personal developer app (free, takes 5 minutes). This gives you OAuth credentials so the skill can read your data on your behalf. All data stays local in ~/.whoop/whoop.db — nothing is uploaded anywhere.

  • Register at https://developer.whoop.com (sign in with your WHOOP account, create an app, get Client ID and Client Secret). Full walkthrough: {baseDir}/references/setup-guide.md
  • Set env vars: WHOOP_CLIENT_ID, WHOOP_CLIENT_SECRET
  • First invocation auto-creates config and runs OAuth

When env vars are missing, explain to the user: "WHOOP requires a free developer account to access your data via API. It takes about 5 minutes — I can walk you through it step by step." Then follow {baseDir}/references/setup-guide.md.

If config missing: python3 {baseDir}/scripts/setup.py --init, then ask user's language and python3 {baseDir}/scripts/setup.py --set language=zh (or en). If token missing: python3 {baseDir}/scripts/whoop_client.py auth. If deps missing: bash {baseDir}/scripts/install.sh.

Common commands

  • Today's recovery: python3 {baseDir}/scripts/whoop_client.py recovery --days 1
  • Last night's sleep: python3 {baseDir}/scripts/whoop_client.py sleep --days 1
  • Recent workouts: python3 {baseDir}/scripts/whoop_client.py workout --days 7
  • Weekly strain: python3 {baseDir}/scripts/whoop_client.py cycle --days 7
  • Multi-day summary: python3 {baseDir}/scripts/whoop_client.py trends --days 7
  • Single metric history: python3 {baseDir}/scripts/db.py trends --metric <name> --days N
  • Profile: python3 {baseDir}/scripts/whoop_client.py profile
  • Body measurements: python3 {baseDir}/scripts/whoop_client.py body
  • Force sync: python3 {baseDir}/scripts/daily_sync.py --days 2
  • Start auto-sync daemon: python3 {baseDir}/scripts/auto_sync.py
  • Single sync check: python3 {baseDir}/scripts/auto_sync.py --once
  • Auto-sync with custom interval: python3 {baseDir}/scripts/auto_sync.py --interval 10

Use --json for raw data when combining multiple queries. Use --days N to match user's time range ("this week" = 7, "this month" = 30).

Available metrics: recovery_score, hrv, resting_hr, spo2, skin_temp, strain, sleep_duration, sleep_efficiency, sleep_performance, respiratory_rate

Settings

  • Change setting: python3 {baseDir}/scripts/setup.py --set <key>=<value>
  • Show config: python3 {baseDir}/scripts/setup.py --show
  • Re-run wizard: python3 {baseDir}/scripts/setup.py

Keys: language (en/zh), detail_level (compact/detailed), units (metric/imperial), push_recovery, push_sleep, push_workout, webhook_enabled (bool), webhook_port (int), sync_interval (int, minutes — polling interval when webhook is off, default 5), sync_interval_webhook (int, minutes — fallback interval when webhook is on, default 20), daily_api_limit (int, default 10000)

Users may change settings in natural language (e.g. "switch to Chinese", "use detailed mode"). Map to --set accordingly.

Auto-sync

The skill supports automatic data syncing with adaptive intervals:

  • No webhook: polls WHOOP API every sync_interval minutes (default 5) as the primary data source
  • Webhook enabled: webhook delivers real-time events; auto-sync polls every sync_interval_webhook minutes (default 20) as fallback
  • Dedup: only new, scored records trigger notifications; already-seen data is silently skipped
  • API guard: tracks daily API calls and pauses when daily_api_limit (default 10,000) is reached
  • Start daemon: python3 {baseDir}/scripts/auto_sync.py
  • Single check: python3 {baseDir}/scripts/auto_sync.py --once

Webhook (optional)

For real-time push, set up webhooks — see {baseDir}/references/setup-guide.md § "Optional: Webhook Setup". Set webhook_enabled=true in config. The webhook server writes a heartbeat file so auto-sync can detect if webhook is healthy and reduce polling frequency automatically.

Notes

  • Never fabricate health data. If a command returns empty or errors, say so.
  • Never expose WHOOP_CLIENT_ID, WHOOP_CLIENT_SECRET, or token contents in output.
  • Never delete DB files or config without explicit user confirmation.
  • Confirm before changing user settings.
  • Respect language and detail_level from config.
  • If WHOOP API returns 429, the client auto-retries. Do not flood.

Troubleshooting

  • ModuleNotFoundError: bash {baseDir}/scripts/install.sh
  • WHOOP_CLIENT_ID must be set: check env vars
  • No refresh token: python3 {baseDir}/scripts/whoop_client.py auth
  • 401 Unauthorized: re-authorize with auth
  • 500 Server Error: transient WHOOP-side issue, retry in a few minutes
  • Empty results: widen --days; data may not be scored yet

References

相关 Skills

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描158.5k

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描158.5k

接口测试套件

by alirezarezvani

Universal
热门

扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。

帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。

平台与服务
未扫描20.8k

相关 MCP 服务

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
88.1k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
79.5k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
68.3k

评论