Automatically fetches CPAP therapy data from the Löwenstein PrismaAPP backend and writes a structured daily Obsidian note.
my.prismacloud.com with a linked Löwenstein CPAP deviceskills/cpap-prisma-app/config.jsonYesterday (default):
python3 ~/.openclaw/workspace/skills/cpap-prisma-app/scripts/fetch-cpap.py
Specific date:
python3 ~/.openclaw/workspace/skills/cpap-prisma-app/scripts/fetch-cpap.py 2026-04-06
Backfill all data since first sync:
python3 ~/.openclaw/workspace/skills/cpap-prisma-app/scripts/fetch-cpap.py --all
Backfill from a specific date:
python3 ~/.openclaw/workspace/skills/cpap-prisma-app/scripts/fetch-cpap.py --from=2026-03-01
The script prints a summary and writes the note to:
<vault_path>/<log_dir>/YYYY-MM-DD.md
The generated note contains:
All text is fully localised — see the locales/ folder.
| API value | Label | Meaning |
|---|---|---|
| ----------- | ------- | --------- |
| 0 | 🟢 Good | Optimal |
| 1 | 🟡 Okay | Acceptable |
| 2 | 🔴 Poor | Needs attention |
| 3 | 🟠 Borderline | Monitor closely |
| 4 | — | No data |
| AHI | Classification |
|---|---|
| ----- | --------------- |
| < 5 | Normal |
| 5–15 | Mild |
| 15–30 | Moderate |
| > 30 | Severe |
No data for date:
Login error:
config.jsonmy.prismacloud.com is reachableconfig.json updateWrong API responses (HTML instead of JSON):
my.prismacloud.com as the API basebucharest.prismacloud.cc is the web SPA only — it returns HTML for all paths17 18 * * * python3 /path/to/skills/cpap-prisma-app/scripts/fetch-cpap.py
共 1 个版本