Install
openclaw skills install @18072937735/smyx-reptile-circadian-activity-analysisThrough a fixed camera in a reptile enclosure, the system continuously captures 24-hour video and uses motion-detection techniques to count hourly activity volume (pixel-change area or motion-pixel ratio), producing a circadian activity distribution chart. | 通过爬宠箱固定摄像头,连续 24 小时采集视频,利用运动检测技术统计每小时的活动量(像素变化面积或运动像素比例),生成昼夜活动分布图。当节律异常持续多日时,输出'昼夜节律紊乱'提示,建议调整光照周期或检查环境干扰(如夜间灯光、噪音)。
openclaw skills install @18072937735/smyx-reptile-circadian-activity-analysisThrough a fixed camera in a reptile enclosure, the system continuously captures 24-hour video and uses motion-detection techniques to count hourly activity volume (pixel-change area or motion-pixel ratio), producing a circadian activity distribution chart. It analyses peak-activity hours and compares them with the species' natural rhythm (e.g., nocturnal, diurnal) to determine whether the day/night cycle is inverted (e.g., a diurnal reptile active at night and sleeping during the day). When the rhythm anomaly persists for multiple days, the system outputs a 'circadian rhythm disruption' alert and suggests adjusting the photoperiod or checking environmental disturbances (e.g., night-time lighting, noise). Application scenarios: reptile enclosures, vivaria, reptile breeding farms, scientific observation. The system automatically generates a daily rhythm report and reminds the keeper to optimise the environment on anomalies. Skill features: circadian rhythm disruption can cause appetite loss, reproductive impairment, and reduced immunity in reptiles. AI-based automatic analysis of activity distribution can promptly detect inappropriate lighting schedules or environmental disturbances, guiding the keeper to make adjustments and improving reptile welfare. This skill can be integrated into smart reptile enclosures or husbandry-management apps.
通过爬宠箱固定摄像头,连续 24 小时采集视频,利用运动检测技术统计每小时的活动量(像素变化面积或运动像素比例),生成昼夜活动分布图。分析活动高峰时段,并与该物种的自然节律(如夜行性、昼行性)进行对比,判断是否存在昼夜颠倒(如日行性爬宠夜间活跃、白天沉睡)。当节律异常持续多日时,输出'昼夜节律紊乱'提示,建议调整光照周期或检查环境干扰(如夜间灯光、噪音)。应用场景:爬宠箱、饲养缸、爬行动物养殖场、科研观察。系统每日自动生成活动节律报告,异常时提醒饲养者优化环境。技能特点:昼夜节律紊乱会导致爬宠食欲减退、繁殖障碍、免疫力下降。通过 AI 自动分析活动分布,可及时发现光照周期不当或环境干扰,指导饲养者调整,提升爬宠福利。该技能可集成到智能爬宠箱或饲养管理 APP 中。
假设你是一个专业的爬行动物行为节律分析 AI。你的任务是分析爬宠箱固定摄像头采集的连续 24 小时(建议连续 7 天)视频(机位固定、视野固定,分辨率 ≥ 720p,帧率 ≥ 5 FPS,夜间必须配备 IR 红外视觉,且禁止夜间补可见光破坏夜行性物种节律),围绕"运动统计 + 节律对齐"展开四组检测:① 24 小时运动统计:每小时活动量数组 hourly_activity_array[24](核心指标,0-1 归一化运动像素比例 OR 帧差绝对值之和)+ 全天累计运动像素 + 有效观察小时数(剔除遮挡/相机离线/暗到无 IR 的小时) + 帧差算法(abs_diff / mog2 / knn) + 运动检测阈值(用于复现);② 高峰与节律特征:活动高峰前 3 时段 peak_hours_top3 + 最沉寂前 3 时段 + 白天 06:00-18:00 活动量占比 + 夜间 18:00-06:00 活动量占比 + 晨昏 05:00-07:00 + 17:00-19:00 占比;③ 节律一致性:物种自然节律标签(diurnal_daytime 昼行 / nocturnal_nighttime 夜行 / crepuscular_dawn_dusk 暮晨) + 观察到的节律分类 + 节律一致性评分 0-100(100=完全一致 / <50=显著颠倒) + 昼夜颠倒检测 + 连续颠倒天数;④ 上下文与排除信号:蜕皮期 / 休眠/冬眠期(冷血动物特有,整体活动接近 0)/ 抱蛋产卵期 / 近期环境变更 < 7 天 / 灯光时刻已记录 / 夜间外部光照振动干扰 / 摄像头机位稳定 / 黑暗时段 IR 视觉。按 7 类综合场景判定(rhythm_normal_aligned / rhythm_mildly_shifted / rhythm_moderately_disrupted / rhythm_severely_inverted / rhythm_context_shedding_or_brumation / rhythm_context_gravid_or_environmental_change / rhythm_signal_unreliable),按 4 级提醒策略递进(Level 1 入库 → Level 2 继续观察 3-7 天+确认灯光时刻+排查偶发干扰 → Level 3 检查光照周期 UVB/主灯开关时刻+排查夜间光照声响振动+检查温度梯度+观察食欲+多日跟踪 → Level 4 严重颠倒连续 ≥ 3 天**:全面排查光照周期与物种推荐是否吻合+隔离夜间外部干扰+调整光照计时器至物种自然节律+若伴随食欲下降或消瘦建议联系爬宠兽医)。核心生理性上下文必须排除 4 项:蜕皮期活动整体下降属正常 / 休眠/冬眠期整体活动接近 0 属正常(冷血动物特有)/ 抱蛋产卵期雌性活动剧增寻找产蛋点属正常 / 近期环境变更 < 7 天应激期活动异常属临时。物种自然节律硬约束:昼行性(鬃狮蜥/绿鬣蜥/草龟/苏卡达)vs 夜行性(豹纹守宫/壁虎/玉米蛇/球蟒/睫角守宫)vs 暮晨性(部分蛇类)→ 严禁通用节律盲判。摄像头机位移动 / 长时间遮挡 / 观察时长 < 24h / 夜间无 IR 视觉 / 灯光开关时刻未录入 → 必须返回 rhythm_signal_unreliable。不提供任何医疗诊断,仅输出基于运动统计的节律分析;🚨 严禁输出具体药物名称、剂量、镇静剂品牌、褪黑素剂量、中草药品牌;🚨 严禁输出"自行关闭主灯""自行延长 UVB 时长至 N 小时""自行投喂助眠饲料""自行注射褪黑素"等任何具体环境/医疗指令——仅建议用户检查并按物种手册调整;严禁伪造夸大活动量数据,统计窗口/阈值/算法必须可复现;严禁越权代用户启停灯光计时器/UVB/加热垫/喷雾(仅可建议)。**
python -m scripts.smyx_reptile_circadian_activity_analysis --list --open-id 参数调用 API
查询云端的历史报告数据requests>=2.28.0
在执行爬宠节律分析前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/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_reptile_circadian_activity_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地爬宠箱 24 小时视频文件路径--url: 网络爬宠箱 24 小时视频 URL(API 服务自动下载)--pet-type: 类别标识,爬宠节律场景默认 other--open-id: 当前用户的 open-id(必填)--list: 显示爬宠昼夜节律历史记录清单--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)rhythm_signal_unreliable爬宠节律分析-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 节律评分/高峰/场景 | 分析日期 | 点击查看 |
|---|---|---|---|
| 爬宠节律分析-20260525124200001 | 32/100 / [02,03,23] / rhythm_severely_inverted | 2026-05-25 | 🔗 查看报告 |
# 分析本地爬宠箱24小时视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_reptile_circadian_activity_analysis --input /path/to/enclosure_24h.mp4 --open-id your-open-id
# 分析网络爬宠箱24小时视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_reptile_circadian_activity_analysis --url https://example.com/enclosure_24h.mp4 --open-id your-open-id
# 显示历史爬宠节律记录清单(自动触发关键词:查看爬宠节律历史报告等)
python -m scripts.smyx_reptile_circadian_activity_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_reptile_circadian_activity_analysis --input enclosure_24h.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_reptile_circadian_activity_analysis --input enclosure_24h.mp4 --open-id your-open-id --output result.json