Install
openclaw skills install smyx-elderly-toilet-time-abnormal-analysisUsing a camera installed at the bathroom doorway (or inside the bathroom only detecting human silhouettes, without capturing private details), the system uses human detection and entry/exit tracking to identify when an elderly person enters or leaves the toilet and calculates the continuous occupancy time. When occupancy exceeds a preset safety threshold (default 30 minutes), the system outputs an abnormal alert and notifies family members or caregivers to check in time, preventing accidents such as falls, sudden illness (stroke, heart attack) or exhaustion that may prevent the elderly from moving by themselves. Application scenarios: solo-living elder households, nursing homes, senior apartments. The system runs automatically; if the elderly stay in the toilet for more than 30 minutes without coming out, urgent reminders are pushed via app suggesting an on-site check. Skill features: sudden illness or falls during toileting that prevent the elderly from calling for help is a common safety risk. Automatic occupancy-time monitoring helps detect anomalies in time and gain rescue time. Can be integrated into nursing-home management systems or home-security platforms to enhance elderly safety. | 通过在卫生间门口(或内部仅检测人体,不采集隐私细节)安装的摄像头,利用人体检测和进出跟踪技术,识别老年人进入和离开卫生间的时刻,计算连续占用时间。当占用时间超过预设安全阈值(默认30分钟)时,输出异常预警,通知家属或护理人员及时查看,预防老年人因跌倒、突发疾病(如中风、心梗)或体力不支导致的无法自主移动等意外。应用场景:独居老人家庭、养老院、老年公寓。系统自动监测,若老人进入卫生间超过30分钟未出,通过APP推送紧急提醒并建议上门查看。技能特点:老年人如厕时突发疾病或跌倒后无法呼救是常见安全隐患。通过自动监测停留时间,可及时发现异常,争取救援时间。该技能可集成到养老院管理系统或居家安防平台中,提升老人安全保障水平。
openclaw skills install smyx-elderly-toilet-time-abnormal-analysisUsing a camera installed at the bathroom doorway (or inside the bathroom only detecting human silhouettes, without capturing private details), the system uses human detection and entry/exit tracking to identify when an elderly person enters or leaves the toilet and calculates the continuous occupancy time. When occupancy exceeds a preset safety threshold (default 30 minutes), the system outputs an abnormal alert and notifies family members or caregivers to check in time, preventing accidents such as falls, sudden illness (stroke, heart attack) or exhaustion that may prevent the elderly from moving by themselves. Application scenarios: solo-living elder households, nursing homes, senior apartments. The system runs automatically; if the elderly stay in the toilet for more than 30 minutes without coming out, urgent reminders are pushed via app suggesting an on-site check. Skill features: sudden illness or falls during toileting that prevent the elderly from calling for help is a common safety risk. Automatic occupancy-time monitoring helps detect anomalies in time and gain rescue time. Can be integrated into nursing-home management systems or home-security platforms to enhance elderly safety.
通过在卫生间门口(或内部仅检测人体,不采集隐私细节)安装的摄像头,利用人体检测和进出跟踪技术,识别老年人进入和离开卫生间的时刻,计算连续占用时间。当占用时间超过预设安全阈值(默认30分钟)时,输出异常预警,通知家属或护理人员及时查看,预防老年人因跌倒、突发疾病(如中风、心梗)或体力不支导致的无法自主移动等意外。应用场景:独居老人家庭、养老院、老年公寓。系统自动监测,若老人进入卫生间超过30分钟未出,通过APP推送紧急提醒并建议上门查看。技能特点:老年人如厕时突发疾病或跌倒后无法呼救是常见安全隐患。通过自动监测停留时间,可及时发现异常,争取救援时间。该技能可集成到养老院管理系统或居家安防平台中,提升老人安全保障水平。
假设你是一个专业的老年人安全监测 AI。你的任务是分析卫生间门口(或内部仅检测人体轮廓)固定摄像头的视频,检测老年人的进入和离开事件,计算每次在卫生间内的连续停留时间。当停留时间超过预设阈值(默认 30 分钟)时,输出异常预警。为保护隐私,系统可对画面进行模糊化处理,仅识别人体进出。不要提供医疗诊断或具体救援操作方案,仅输出基于人体进出的统计与预警结果。
python -m scripts.smyx_elderly_toilet_time_abnormal_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_elderly_toilet_time_abnormal_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 | 独居张爷爷(停留 35 分钟) | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地卫生间门口监控视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_elderly_toilet_time_abnormal_analysis --input /path/to/toilet_door.mp4 --open-id your-open-id
# 分析网络卫生间门口监控视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_elderly_toilet_time_abnormal_analysis --url https://example.com/toilet_door.mp4 --open-id your-open-id
# 显示历史如厕监测报告(自动触发关键词:查看如厕时间历史报告、卫生间停留报告清单等)
python -m scripts.smyx_elderly_toilet_time_abnormal_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_elderly_toilet_time_abnormal_analysis --input toilet.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_elderly_toilet_time_abnormal_analysis --input toilet.mp4 --open-id your-open-id --output result.json