Install
openclaw skills install smyx-elderly-tv-sedentary-reminder-analysisUsing a fixed camera in the living room (aimed at the sofa and TV area), the system analyzes the elderly person's continuous sitting time while watching TV, detecting whether the body remains in a seated posture and the face is oriented toward the TV area (watching). When continuous TV-watching exceeds a preset threshold (default 2 hours) without standing up, the system outputs a 'time-to-move reminder', suggesting the elderly stand up, walk, and do stretching exercises. The skill helps prevent health issues caused by prolonged sitting, such as muscle atrophy, lower-limb thrombosis, and metabolic disorders. Application scenarios: home-based elderly care, nursing-home activity rooms, community daycare centers. Real-time monitoring; when prolonged sitting is detected, the system pushes via smart speaker or mobile app (e.g., 'Grandpa Zhang, you've been watching TV for 2 hours, please get up and move around'). Skill features: long sedentary TV-watching is a common lifestyle pattern among the elderly and can induce deep-vein thrombosis, lumbar/back pain, etc. AI automatic monitoring and gentle reminders help the elderly form a habit of regular activity and improve their health. Can be integrated into home security cameras or elderly-care service platforms as a practical proactive health-management feature. | 通过客厅固定摄像头(对准沙发和电视区域),分析老年人连续观看电视的坐姿时长,检测人体是否持续处于坐姿且面部朝向电视区域(注视电视)。当连续坐姿观看电视超过预设阈值(默认2小时)且期间未起身活动时,输出'久坐活动提醒',建议老年人起身走动、做伸展运动。该技能有助于预防因长时间静坐导致的肌肉萎缩、下肢血栓、代谢紊乱等健康问题。应用场景:居家养老、养老院活动室、社区日间照料中心。系统实时监测,当久坐超时时通过智能音箱语音提醒或手机APP推送'张爷爷,您已经看了2小时电视,起来活动一下吧'。技能特点:老年人长时间久坐看电视是常见生活方式,易诱发深静脉血栓、腰背疼痛等问题。通过AI自动监测并温馨提醒,可帮助老人养成定时活动习惯,改善健康。该技能可集成到居家安防摄像头或养老服务平台中,成为主动健康管理的实用功能。
openclaw skills install smyx-elderly-tv-sedentary-reminder-analysisUsing a fixed camera in the living room (aimed at the sofa and TV area), the system analyzes the elderly person's continuous sitting time while watching TV, detecting whether the body remains in a seated posture and the face is oriented toward the TV area (watching). When continuous TV-watching exceeds a preset threshold (default 2 hours) without standing up, the system outputs a 'time-to-move reminder', suggesting the elderly stand up, walk, and do stretching exercises. The skill helps prevent health issues caused by prolonged sitting, such as muscle atrophy, lower-limb thrombosis, and metabolic disorders. Application scenarios: home-based elderly care, nursing-home activity rooms, community daycare centers. Real-time monitoring; when prolonged sitting is detected, the system pushes via smart speaker or mobile app (e.g., 'Grandpa Zhang, you've been watching TV for 2 hours, please get up and move around'). Skill features: long sedentary TV-watching is a common lifestyle pattern among the elderly and can induce deep-vein thrombosis, lumbar/back pain, etc. AI automatic monitoring and gentle reminders help the elderly form a habit of regular activity and improve their health. Can be integrated into home security cameras or elderly-care service platforms as a practical proactive health-management feature.
通过客厅固定摄像头(对准沙发和电视区域),分析老年人连续观看电视的坐姿时长,检测人体是否持续处于坐姿且面部朝向电视区域(注视电视)。当连续坐姿观看电视超过预设阈值(默认2小时)且期间未起身活动时,输出'久坐活动提醒',建议老年人起身走动、做伸展运动。该技能有助于预防因长时间静坐导致的肌肉萎缩、下肢血栓、代谢紊乱等健康问题。应用场景:居家养老、养老院活动室、社区日间照料中心。系统实时监测,当久坐超时时通过智能音箱语音提醒或手机APP推送'张爷爷,您已经看了2小时电视,起来活动一下吧'。技能特点:老年人长时间久坐看电视是常见生活方式,易诱发深静脉血栓、腰背疼痛等问题。通过AI自动监测并温馨提醒,可帮助老人养成定时活动习惯,改善健康。该技能可集成到居家安防摄像头或养老服务平台中,成为主动健康管理的实用功能。
假设你是一个专业的老年人健康生活方式 AI。你的任务是分析客厅固定摄像头的实时视频,检测老年人是否坐姿在沙发区域,并判断其是否在观看电视(头部朝向电视屏幕)。记录连续坐姿观看的时长,当超过预设阈值(默认 120 分钟)且期间无站立活动时,输出活动提醒。不要提供医疗建议或医学诊断,仅输出基于视觉的行为统计与友好提醒。
python -m scripts.smyx_elderly_tv_sedentary_reminder_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
⚠️ 关键约束:
sofa_region(沙发坐姿区域)和 tv_region(电视屏幕区域,用于判断面部朝向)-m scripts.smyx_elderly_tv_sedentary_reminder_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 | 连续 125 min / 当日累计 320 min(warning) | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地客厅沙发+电视区域视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_elderly_tv_sedentary_reminder_analysis --input /path/to/livingroom.mp4 --open-id your-open-id
# 分析网络客厅沙发+电视区域视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_elderly_tv_sedentary_reminder_analysis --url https://example.com/livingroom.mp4 --open-id your-open-id
# 显示历史老年人电视观看与久坐报告(自动触发关键词:查看老人电视观看历史报告、久坐提醒报告清单等)
python -m scripts.smyx_elderly_tv_sedentary_reminder_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_elderly_tv_sedentary_reminder_analysis --input lr.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_elderly_tv_sedentary_reminder_analysis --input lr.mp4 --open-id your-open-id --output result.json