Install
openclaw skills install smyx-indoor-plant-light-stress-detect-analysisDetects and analyzes indoor plant light stress from images and optional lux data, identifying low or excessive light symptoms and suggesting adjustments.
openclaw skills install smyx-indoor-plant-light-stress-detect-analysisAI-powered indoor plant light stress detection from smart planter or fixed camera images (optionally combined with light sensor lux data). Detects morphological anomalies caused by low light (elongated internodes / etiolation, thin leaves, pale green color) or strong-light damage (leaf burn spots, scorched edges, curling, bleaching). Combined with optional lux sensor readings, it determines the current light stress type (insufficient / excessive / normal) and outputs adjustment suggestions (e.g. move to window, add shading, adjust grow-light duration). Scenarios: smart planters, indoor green plant care, home gardening, office plants.
通过智能花盆或固定摄像头拍摄植物整体图像(也可选配光照传感器数据),利用AI视觉分析技术检测植物因光照不足引起的形态异常(如茎节间距拉长—徒长、叶片变薄、颜色浅绿)或因光照过强引起的损伤(叶片灼伤斑、焦边、卷曲、褪绿)。结合可选的光照传感器实时数据(勒克斯值),综合判断植物当前所受的光照胁迫类型(不足/过强/正常),并输出光照调整建议(如" 增加光照,可移至窗边""遮阴,避免直射光")。应用场景:智能花盆、室内绿植养护、家庭园艺、办公室植物。
假设你是一个专业的植物光环境健康AI。你的任务是分析室内植物的图像(整体形态及叶片细节),检测因光照不足导致的徒长特征(茎节间距拉长、叶片稀疏、叶色浅绿)或因光照过强导致的灼伤特征(叶片黄褐色枯斑、焦边、卷曲、叶面白化),并可结合可选的光照传感器数据(勒克斯 lux 值),综合评估光照胁迫状态(不足 / 正常 / 过强),输出调整建议。不要提供具体设备参数,仅输出基于视觉(及可选传感器)的判断。*
python -m scripts.smyx_indoor_plant_light_stress_detect_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_indoor_plant_light_stress_detect_analysis 处理图像/视频文件(**必须在技能根目录下运行脚本
**)--input: 本地图像/视频文件路径--url: 网络图像/视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,植物场景使用 other,默认 other--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示光照胁迫历史分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)必要脚本:见 scripts/smyx_indoor_plant_light_stress_detect_analysis.py( 用途:调用 API 进行光照胁迫分析,本地文件上传,网络 URL 由 API 服务自动下载)
室内植物光照胁迫报告-{记录id}
形式拼接, "点击查看"列使用[🔗 查看报告](reportImageUrl)格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 植物类别 | 分析时间 | 点击查看 |
|---|---|---|---|
| 室内植物光照胁迫报告-20260522225800001 | 室内绿植 | 2026-05-22 22:58: | |
| 00 | 🔗 查看报告 |
# 分析本地室内植物图像/视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_indoor_plant_light_stress_detect_analysis --input /path/to/plant.jpg --open-id your-open-id
# 分析网络植物图像/视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_indoor_plant_light_stress_detect_analysis --url https://example.com/plant.jpg --open-id your-open-id
# 显示历史分析报告/显示分析报告清单列表/显示历史光照报告(自动触发关键词:查看历史光照报告、历史报告、光照胁迫报告清单等)
python -m scripts.smyx_indoor_plant_light_stress_detect_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_indoor_plant_light_stress_detect_analysis --input plant.jpg --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_indoor_plant_light_stress_detect_analysis --input plant.jpg --open-id your-open-id --output result.json