/install cpap-prisma-app
CPAP PrismaAPP Log Skill
Automatically fetches CPAP therapy data from the Löwenstein PrismaAPP backend and writes a structured daily Obsidian note.
When Triggered
- User says: "CPAP log", "CPAP data", "write sleep therapy", "prisma log", "CPAP today/yesterday/[date]"
- Daily cron job fires (configurable)
- User requests a historical backfill
Prerequisites
- Account at
my.prismacloud.comwith a linked Löwenstein CPAP device - Device synced via the PrismaAPP mobile app (data must be uploaded to the server)
- Credentials stored in
skills/cpap-prisma-app/config.json
Execution
Step 1: Run the Python script
Yesterday (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
Step 2: Confirm output
The script prints a summary and writes the note to:
\x3Cvault_path>/\x3Clog_dir>/YYYY-MM-DD.md
Output Format (Note)
The generated note contains:
- Frontmatter: date, weekday, tags (including quality tag), source, created timestamp
- Summary table: sleep duration, deep sleep, AHI, leakage, snoring %, mask fit %, therapy mode/pressure
- Overall quality rating (🟢/🟡/🟠/🔴) derived from AHI, leakage, and deep sleep scores
- Detailed sections: Sleep, CPAP Therapy, Snoring & Mask
- Navigation links to the previous and next logged day
All text is fully localised — see the locales/ folder.
Quality Mapping
| API value | Label | Meaning |
|---|---|---|
| 0 | 🟢 Good | Optimal |
| 1 | 🟡 Okay | Acceptable |
| 2 | 🔴 Poor | Needs attention |
| 3 | 🟠 Borderline | Monitor closely |
| 4 | — | No data |
AHI Reference
| AHI | Classification |
|---|---|
| \x3C 5 | Normal |
| 5–15 | Mild |
| 15–30 | Moderate |
| > 30 | Severe |
Troubleshooting
No data for date:
- Check whether the device was used that night
- Open PrismaAPP on the phone to trigger a Bluetooth sync
- Data only appears after the device has synced with the app
Login error:
- Verify credentials in
config.json - Check that
my.prismacloud.comis reachable - A password change in PrismaAPP requires a
config.jsonupdate
Wrong API responses (HTML instead of JSON):
- Always use
my.prismacloud.comas the API base bucharest.prismacloud.ccis the web SPA only — it returns HTML for all paths
Cron Configuration (daily at 18:17)
17 18 * * * python3 /path/to/skills/cpap-prisma-app/scripts/fetch-cpap.py
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cpap-prisma-app - 安装完成后,直接呼叫该 Skill 的名称或使用
/cpap-prisma-app触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
CPAP PrismaAPP Log 是什么?
Fetches CPAP therapy data from the PrismaAPP API (Löwenstein Medical) and writes a daily Obsidian log note. Use when the user says "CPAP log", "sleep therapy... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 110 次。
如何安装 CPAP PrismaAPP Log?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cpap-prisma-app」即可一键安装,无需额外配置。
CPAP PrismaAPP Log 是免费的吗?
是的,CPAP PrismaAPP Log 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
CPAP PrismaAPP Log 支持哪些平台?
CPAP PrismaAPP Log 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 CPAP PrismaAPP Log?
由 Sanweb(@sanwebgit)开发并维护,当前版本 v1.1.0。