/install amazfit-health-log
Amazfit GTR3 Health Log Skill
Automatically fetches Amazfit GTR3 health data from HCGateway and writes a structured daily Obsidian note.
When Triggered
- User says: "health log", "fetch GTR3 data", "write health data", "health log for yesterday/today/[date]"
- Daily cron job runs at 06:00 (configurable)
Prerequisites
- HCGateway is running at
http://127.0.0.1:6644 - Docker containers
hcgateway_api+hcgateway_dbare active - HCGateway Android app has completed at least one sync (auto-syncs every 2h)
- Credentials stored in
skills/amazfit-health-log/config.json
Execution
Step 1: Verify container status
docker ps --filter "name=hcgateway" --format "{{.Names}}: {{.Status}}"
If containers are not running:
sudo docker compose -f /home/docker/hcgateway/docker-compose.yml up -d
Step 2: Run the Python script
For yesterday (default):
python3 ~/.openclaw/workspace/skills/amazfit-health-log/scripts/fetch-health.py
For a specific date:
python3 ~/.openclaw/workspace/skills/amazfit-health-log/scripts/fetch-health.py 2026-04-06
Step 3: Confirm output
The script prints a summary and writes the note to:
\x3CVAULT_ROOT>/30 Bereiche/Gesundheit/Logs/GTR3/YYYY-MM-DD.md
Output Format (Note)
The generated note contains:
- Frontmatter: date, weekday, tags, source, created timestamp
- Summary table: steps, distance, sleep duration, resting HR, SpO2
- Sleep section: period, duration, stage breakdown table (Deep / REM / Light / Awake)
- Heart rate section: avg, min, max, resting HR
- SpO2 section: daily average
- Navigation links to previous and next day
Sleep Stage Decoding
| Code | Stage |
|---|---|
| 1 | Awake |
| 4 | Light |
| 5 | Deep |
| 6 | REM |
Troubleshooting
No data for date:
- Check that Zepp App → Health Connect sync is enabled
- Open the HCGateway Android app and trigger a manual sync
- Data is only available for the last 30 days
Containers unreachable:
sudo docker compose -f /home/docker/hcgateway/docker-compose.yml logs --tail=20
Changing credentials:
- Edit
skills/amazfit-health-log/config.json - Password changes invalidate all existing tokens (re-login required)
Cron Configuration (daily at 06:00)
For automatic daily execution:
0 6 * * * python3 /home/openclaw/.openclaw/workspace/skills/amazfit-health-log/scripts/fetch-health.py
Data Sources
| Type | HCGateway Endpoint | Source |
|---|---|---|
| Steps | /fetch/steps |
com.huami.watch.hmwatchmanager |
| Sleep | /fetch/sleepSession |
com.huami.watch.hmwatchmanager |
| Heart Rate | /fetch/heartRate |
com.huami.watch.hmwatchmanager |
| Resting HR | /fetch/restingHeartRate |
com.huami.watch.hmwatchmanager |
| SpO2 | /fetch/oxygenSaturation |
com.huami.watch.hmwatchmanager |
| Distance | /fetch/distance |
com.huami.watch.hmwatchmanager |
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install amazfit-health-log - 安装完成后,直接呼叫该 Skill 的名称或使用
/amazfit-health-log触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Amazfit Health Log 是什么?
Fetches Amazfit GTR3 health data from HCGateway and writes a daily Obsidian log note. Use when user says "health log", "GTR3 data", "write health data", "fet... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 77 次。
如何安装 Amazfit Health Log?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install amazfit-health-log」即可一键安装,无需额外配置。
Amazfit Health Log 是免费的吗?
是的,Amazfit Health Log 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Amazfit Health Log 支持哪些平台?
Amazfit Health Log 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Amazfit Health Log?
由 Sanweb(@sanwebgit)开发并维护,当前版本 v1.0.1。