Install
openclaw skills install @sanwebgit/amazfit-health-logFetches Amazfit GTR3 health data from HCGateway and writes a daily Obsidian log note. Use when user says "health log", "GTR3 data", "write health data", "fetch health data", or when the daily cron triggers health logging.
openclaw skills install @sanwebgit/amazfit-health-logAutomatically fetches Amazfit GTR3 health data from HCGateway and writes a structured daily Obsidian note.
http://127.0.0.1:6644hcgateway_api + hcgateway_db are activeskills/amazfit-health-log/config.jsondocker ps --filter "name=hcgateway" --format "{{.Names}}: {{.Status}}"
If containers are not running:
sudo docker compose -f /home/docker/hcgateway/docker-compose.yml up -d
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
The script prints a summary and writes the note to:
<VAULT_ROOT>/30 Bereiche/Gesundheit/Logs/GTR3/YYYY-MM-DD.md
The generated note contains:
| Code | Stage |
|---|---|
| 1 | Awake |
| 4 | Light |
| 5 | Deep |
| 6 | REM |
No data for date:
Containers unreachable:
sudo docker compose -f /home/docker/hcgateway/docker-compose.yml logs --tail=20
Changing credentials:
skills/amazfit-health-log/config.jsonFor automatic daily execution:
0 6 * * * python3 /home/openclaw/.openclaw/workspace/skills/amazfit-health-log/scripts/fetch-health.py
| 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 |