Install
openclaw skills install smyx-child-nightmare-rollover-detection-analysisUsing a fixed camera in the child's bedroom (infrared night vision), the system continuously captures video and audio at night to analyze the child's sleep behavior. It detects rollover frequency (rollovers per minute), cries (recognizing specific cry-sound features), and sleep talk (speech during sleep), and generates a sleep-quality report. When rollovers occur too often (e.g., > 3 per hour), strong crying is detected, or sleep talk is observed, the system pushes 'possible nightmare' or 'restless sleep' alerts to the parents. Application scenarios: child bedrooms, infant rooms. The system relays night-time monitoring to help parents understand the child's sleep quality and provide timely comfort. Skill features: improve sleep. | 通过儿童床或卧室的固定摄像头(红外夜视),在夜间连续采集视频及音频,分析儿童的睡眠行为。检测翻身次数(每分钟翻身频率)、哭声(识别特定的哭声音频特征)以及梦话(检测睡眠中的语音),生成睡眠质量报告。当翻身过于频繁(如>3次/小时)、出现强烈哭声或梦话时,推送给父母'可能做噩梦'或'睡眠不安'的预警。应用场景:儿童卧室、婴儿房。系统夜间接力监测,帮助家长了解儿童睡眠质量,及时安抚。技能特点:改善睡眠。
openclaw skills install smyx-child-nightmare-rollover-detection-analysisUsing a fixed camera in the child's bedroom (infrared night vision), the system continuously captures video and audio at night to analyze the child's sleep behavior. It detects rollover frequency (rollovers per minute), cries (recognizing specific cry-sound features), and sleep talk (speech during sleep), and generates a sleep-quality report. When rollovers occur too often (e.g., > 3 per hour), strong crying is detected, or sleep talk is observed, the system pushes 'possible nightmare' or 'restless sleep' alerts to the parents. Application scenarios: child bedrooms, infant rooms. The system relays night-time monitoring to help parents understand the child's sleep quality and provide timely comfort. Skill features: improve sleep.
通过儿童床或卧室的固定摄像头(红外夜视),在夜间连续采集视频及音频,分析儿童的睡眠行为。检测翻身次数(每分钟翻身频率)、哭声(识别特定的哭声音频特征)以及梦话(检测睡眠中的语音),生成睡眠质量报告。当翻身过于频繁(如>3次/小时)、出现强烈哭声或梦话时,推送给父母'可能做噩梦'或'睡眠不安'的预警。应用场景:儿童卧室、婴儿房。系统夜间接力监测,帮助家长了解儿童睡眠质量,及时安抚。技能特点:改善睡眠。
假设你是一个专业的儿童睡眠健康 AI。你的任务是分析儿童夜间睡眠视频及音频,检测翻身动作、哭声以及梦话,评估睡眠质量。不要提供医疗诊断或睡眠障碍诊断,仅输出基于视觉和听觉的睡眠行为统计与方向性安抚提醒。
python -m scripts.smyx_child_nightmare_rollover_detection_analysis --list --open-id 参数调用 API
查询云端的历史报告数据requests>=2.28.0
在执行儿童睡眠中频繁翻身/噩梦识别前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:skills/smyx_common/scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置/api-key 为空)
第 2 步:检查 workspace 公共目录的配置文件
路径:${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置)
第 3 步:检查用户是否在消息中明确提供了 open-id
↓ (未提供)
第 4 步:❗ 必须暂停执行,明确提示用户提供用户名或手机号作为 open-id
⚠️ 关键约束:
-m scripts.smyx_child_nightmare_rollover_detection_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地儿童夜间睡眠音视频文件路径--url: 网络儿童夜间睡眠音视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,儿童睡眠健康场景默认 other--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示儿童夜间翻身/噩梦历史分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)儿童夜间翻身噩梦识别报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 睡眠质量 | 分析时间 | 点击查看 |
|---|---|---|---|
| 儿童夜间翻身噩梦识别报告-20260312172200001 | 62 / fair(翻身偏多) | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地夜间睡眠音视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_child_nightmare_rollover_detection_analysis --input /path/to/night_sleep.mp4 --open-id your-open-id
# 分析网络夜间睡眠音视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_child_nightmare_rollover_detection_analysis --url https://example.com/night_sleep.mp4 --open-id your-open-id
# 显示历史儿童夜间翻身/噩梦识别报告(自动触发关键词:查看儿童夜间睡眠历史报告、噩梦预警报告清单等)
python -m scripts.smyx_child_nightmare_rollover_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_child_nightmare_rollover_detection_analysis --input sleep.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_child_nightmare_rollover_detection_analysis --input sleep.mp4 --open-id your-open-id --output result.json