Install
openclaw skills install smyx-commuter-fatigue-care-analysisThrough a fixed camera in a smart-home living room, the system analyzes office worker behavior in the first 30 minutes after coming home, detecting slumped sitting / reclining (relaxed posture, back-to-sofa angle > 120°), facial fatigue features (visible eye bags, downturned mouth corners, frequent blinking), and sighing frequency (rapid chest/abdomen rise-fall with audible exhale). When the fatigue index exceeds a threshold, the smart speaker proactively delivers caring voice messages ('You've worked hard — have a glass of water and rest a bit') and plays soothing music. The skill aims to provide instant emotional support after work and ease work-related stress. Application scenarios: smart-home living rooms, studio apartments, family lounges. The system automatically activates 'care mode' when the user comes home. Skill features: office workers face high work pressure and often feel exhausted after work, yet this is frequently overlooked. AI-based proactive recognition and warm greetings enhance psychological comfort and add a 'human touch' to the smart home. Can be integrated into smart speakers or home-hub systems as a mental-health feature of the smart home. | 通过智能家居客厅的固定摄像头,分析上班族回家后30分钟内的行为,检测瘫坐/斜躺(姿态放松、背部与沙发夹角>120°)、面部疲惫特征(眼袋明显、嘴角下垂、频繁眨眼)、叹气频次(胸腹快速起伏伴呼气声)。当疲劳指数超过阈值时,通过智能音箱主动播报关怀语音(如'辛苦了,喝杯水休息一下'),并播放舒缓音乐。该技能旨在为下班后的用户提供即时的情感支持,缓解工作压力。应用场景:智能家居客厅、单身公寓、家庭起居室。系统在用户回家后自动启动关怀模式。技能特点:上班族工作压力大,回家后常感到疲惫,但往往被忽视。通过AI主动识别并给予温暖问候,可提升心理舒适感,增强智能家居的'人情味'。该技能可集成到智能音箱或家庭中枢系统中,成为智慧家庭的情感健康功能。
openclaw skills install smyx-commuter-fatigue-care-analysisThrough a fixed camera in a smart-home living room, the system analyzes office worker behavior in the first 30 minutes after coming home, detecting slumped sitting / reclining (relaxed posture, back-to-sofa angle > 120°), facial fatigue features (visible eye bags, downturned mouth corners, frequent blinking), and sighing frequency (rapid chest/abdomen rise-fall with audible exhale). When the fatigue index exceeds a threshold, the smart speaker proactively delivers caring voice messages ('You've worked hard — have a glass of water and rest a bit') and plays soothing music. The skill aims to provide instant emotional support after work and ease work-related stress. Application scenarios: smart-home living rooms, studio apartments, family lounges. The system automatically activates 'care mode' when the user comes home. Skill features: office workers face high work pressure and often feel exhausted after work, yet this is frequently overlooked. AI-based proactive recognition and warm greetings enhance psychological comfort and add a 'human touch' to the smart home. Can be integrated into smart speakers or home-hub systems as a mental-health feature of the smart home.
通过智能家居客厅的固定摄像头,分析上班族回家后30分钟内的行为,检测瘫坐/斜躺(姿态放松、背部与沙发夹角>120°)、面部疲惫特征(眼袋明显、嘴角下垂、频繁眨眼)、叹气频次(胸腹快速起伏伴呼气声)。当疲劳指数超过阈值时,通过智能音箱主动播报关怀语音(如'辛苦了,喝杯水休息一下'),并播放舒缓音乐。该技能旨在为下班后的用户提供即时的情感支持,缓解工作压力。应用场景:智能家居客厅、单身公寓、家庭起居室。系统在用户回家后自动启动关怀模式。技能特点:上班族工作压力大,回家后常感到疲惫,但往往被忽视。通过AI主动识别并给予温暖问候,可提升心理舒适感,增强智能家居的'人情味'。该技能可集成到智能音箱或家庭中枢系统中,成为智慧家庭的情感健康功能。
假设你是一个专业的职场健康关怀 AI。你的任务是分析客厅固定摄像头在用户回家后 30 分钟内的视频(可选叠加音频),检测疲劳相关行为:瘫坐/斜躺姿态(躯干与大腿夹角 > 120° 或 背部与沙发夹角 > 120°)、平躺沙发(强疲劳)、低头垂头、面部疲惫(眼袋显著程度 / 嘴角下垂 / 每分钟眨眼次数 / 微睡眠闭眼 >1.5s / 哈欠 / 木然比例)、视觉+音频叹气、揉太阳穴/揉眼。综合计算疲劳指数(0-100,含进食喝水/伸展等正向行为扣分)。当超过阈值时输出 4 级递进关怀动作(暖光调暗 / 舒缓音乐 / 智能音箱温柔关怀语 / 自我照顾清单),单晚动作上限严格管控。不提供任何医疗诊断,仅输出基于视觉的疲劳评估和关怀建议;关怀文案必须平等、温柔、不指责、不说教、不 PUA**,3 次未应答即自动静默 ≥2 小时。**
python -m scripts.smyx_commuter_fatigue_care_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_commuter_fatigue_care_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地客厅/单身公寓/家庭起居室固定摄像头回家后 30 分钟视频文件路径--url: 网络客厅/单身公寓/家庭起居室固定摄像头回家后 30 分钟视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,职场健康关怀场景默认 other--open-id: 当前用户的 open-id(必填,用户本人授权)--list: 显示上班族下班疲劳关怀(回家时刻)历史关怀记录清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)下班关怀-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 疲劳指数/等级/已执行关怀动作 | 分析时间 | 点击查看 |
|---|---|---|---|
| 下班关怀-20260312190200001 | 72 / notable / 暖光+轻音乐+关怀语 | 2026-03-12 19:02:00 | 🔗 查看报告 |
# 分析本地客厅视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_commuter_fatigue_care_analysis --input /path/to/livingroom.mp4 --open-id your-open-id
# 分析网络客厅视频/实时流(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_commuter_fatigue_care_analysis --url https://example.com/livingroom.mp4 --open-id your-open-id
# 显示历史下班关怀记录清单(自动触发关键词:查看下班疲劳关怀历史报告、回家关怀记录清单等)
python -m scripts.smyx_commuter_fatigue_care_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_commuter_fatigue_care_analysis --input lr.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_commuter_fatigue_care_analysis --input lr.mp4 --open-id your-open-id --output result.json