Install
openclaw skills install smyx-living-alone-rhythm-anomaly-analysisUsing a fixed camera in the living room or bedroom of a person living alone, the system continuously analyzes night video (typically 22:00-06:00) to detect lights-off time (when light sources turn off) and early-morning activity (human movement or body motion between 0-6 AM). It builds a personal historical baseline (e.g., average lights-off time and early-morning activity frequency over the past 7-14 days). When the current lights-off time is delayed more than 2 hours beyond the baseline, or early-morning activity frequency rises significantly (e.g., > baseline mean + 2 standard deviations), it outputs a 'rhythm anomaly' reminder. This helps family members or community workers monitor the sleep health of the person living alone and detect potential physiological or psychological issues (insomnia, anxiety, nocturnal delirium, etc.). Application scenarios: homes of elderly people living alone, single apartments, remote-care services. The system generates daily rhythm reports; when significant anomalies appear, it pushes reminders via the app, recommending family members or community-grid workers to call and check in. Skill features: disrupted sleep rhythm may be an early signal of physical illness (pain, increased nocturia) or mental issues (depression, anxiety). AI-based automatic analysis helps families spot anomalies early and proactively reach out, preventing condition deterioration. Can be integrated into home-care cameras or community grid-management platforms to enhance the safety and health support for people living alone. | 通过家庭客厅或卧室固定摄像头,夜间(通常指22:00-6:00)连续分析视频,检测熄灯时间(光源关闭的时刻)、凌晨活动(0-6点期间的人体移动或肢体动作)。建立个人历史基线(如过去7-14天的平均熄灯时间和凌晨活动频率),当当前熄灯时间比基线延迟超过2小时,或凌晨活动频次显著增加(如超出基线2个标准差)时,输出'作息规律异常'提醒。该技能可辅助家属或社区人员关注独居者的睡眠健康,及时发现潜在的生理或心理问题(如失眠、焦虑、夜间谵妄等)。应用场景:独居老人家庭、单身公寓、远程照护服务。系统每日生成作息报告,当出现显著异常时通过APP推送提醒,建议家属或社区网格员电话关心。技能特点:作息规律紊乱可能是身体疾病(如疼痛、夜尿增多)或心理问题(抑郁、焦虑)的早期信号。通过AI自动分析,可帮助家人及早发现异常,主动关怀,避免病情恶化。该技能可集成到居家养老摄像头或社区网格化管理平台中,提升独居者的生活安全和健康保障水平。
openclaw skills install smyx-living-alone-rhythm-anomaly-analysisUsing a fixed camera in the living room or bedroom of a person living alone, the system continuously analyzes night video (typically 22:00-06:00) to detect lights-off time (when light sources turn off) and early-morning activity (human movement or body motion between 0-6 AM). It builds a personal historical baseline (e.g., average lights-off time and early-morning activity frequency over the past 7-14 days). When the current lights-off time is delayed more than 2 hours beyond the baseline, or early-morning activity frequency rises significantly (e.g., > baseline mean + 2 standard deviations), it outputs a 'rhythm anomaly' reminder. This helps family members or community workers monitor the sleep health of the person living alone and detect potential physiological or psychological issues (insomnia, anxiety, nocturnal delirium, etc.). Application scenarios: homes of elderly people living alone, single apartments, remote-care services. The system generates daily rhythm reports; when significant anomalies appear, it pushes reminders via the app, recommending family members or community-grid workers to call and check in. Skill features: disrupted sleep rhythm may be an early signal of physical illness (pain, increased nocturia) or mental issues (depression, anxiety). AI-based automatic analysis helps families spot anomalies early and proactively reach out, preventing condition deterioration. Can be integrated into home-care cameras or community grid-management platforms to enhance the safety and health support for people living alone.
通过家庭客厅或卧室固定摄像头,夜间(通常指22:00-6:00)连续分析视频,检测熄灯时间(光源关闭的时刻)、凌晨活动(0-6点期间的人体移动或肢体动作)。建立个人历史基线(如过去7-14天的平均熄灯时间和凌晨活动频率),当当前熄灯时间比基线延迟超过2小时,或凌晨活动频次显著增加(如超出基线2个标准差)时,输出'作息规律异常'提醒。该技能可辅助家属或社区人员关注独居者的睡眠健康,及时发现潜在的生理或心理问题(如失眠、焦虑、夜间谵妄等)。应用场景:独居老人家庭、单身公寓、远程照护服务。系统每日生成作息报告,当出现显著异常时通过APP推送提醒,建议家属或社区网格员电话关心。技能特点:作息规律紊乱可能是身体疾病(如疼痛、夜尿增多)或心理问题(抑郁、焦虑)的早期信号。通过AI自动分析,可帮助家人及早发现异常,主动关怀,避免病情恶化。该技能可集成到居家养老摄像头或社区网格化管理平台中,提升独居者的生活安全和健康保障水平。
假设你是一个专业的独居者健康生活规律监测 AI。你的任务是分析卧室或客厅固定摄像头的夜间视频,检测熄灯时间(灯光关闭的时刻)以及凌晨时段(0-6 点)的人体活动(任何移动或肢体动作)。通过对比个人历史基线,判断作息是否出现显著异常。不要提供医疗诊断,仅输出基于视觉的作息参数和偏离提示。
python -m scripts.smyx_living_alone_rhythm_anomaly_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_living_alone_rhythm_anomaly_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地独居者卧室/客厅夜间视频文件路径(建议覆盖 22:00-06:00)--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 | combined_rhythm_disruption(熄灯延迟 2.5h + 凌晨活动 z=2.8) | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地独居者夜间视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_living_alone_rhythm_anomaly_analysis --input /path/to/night_22_to_06.mp4 --open-id your-open-id
# 分析网络独居者夜间视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_living_alone_rhythm_anomaly_analysis --url https://example.com/night_22_to_06.mp4 --open-id your-open-id
# 显示历史独居者作息规律异常报告(自动触发关键词:查看独居者作息历史报告、作息异常报告清单等)
python -m scripts.smyx_living_alone_rhythm_anomaly_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_living_alone_rhythm_anomaly_analysis --input night.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_living_alone_rhythm_anomaly_analysis --input night.mp4 --open-id your-open-id --output result.json