← 返回
AI智能 Key 中文

Ezviz Open Restaurant Inspection

Ezviz restaurant inspection skill. Captures device images and sends to Ezviz AI for food safety analysis.
萤石餐厅巡检技能。采集设备图像并发送至萤石AI进行食品安全分析。
ezviz-open
AI智能 clawhub v1.0.3 2 版本 99835 Key: 需要
★ 0
Stars
📥 605
下载
💾 8
安装
2
版本
#latest

概述

Ezviz Restaurant Inspection Skill

Captures images from Ezviz cameras and sends to Ezviz AI for restaurant safety inspection.


User Confirmation Required

Running this skill means you accept these remote actions:

  1. Query Ezviz agent list (open.ys7.com)
  2. Create agent from template if needed (open.ys7.com)
  3. Capture device images (open.ys7.com)
  4. Send images for AI analysis (aidialoggw.ys7.com)

Data flow: Device -> open.ys7.com -> aidialoggw.ys7.com -> Local output

Privacy:

  • Images stored on Ezviz (2 hours)
  • Token cached in /tmp/ezviz_global_token_cache/ (perms 600)

Security Requirements

  1. Use dedicated Ezviz app credentials (not main account)
  2. Minimal permissions: capture + agent APIs only
  3. Prefer environment variables over config files
  4. Test with non-production devices first

Quick Start

Environment Variables (Recommended)

export EZVIZ_APP_KEY="your_key"
export EZVIZ_APP_SECRET="your_secret"
export EZVIZ_DEVICE_SERIAL="dev1,dev2"
python3 scripts/restaurant_inspection.py

Config File (Alternative)

Add to ~/.openclaw/channels.json:

{
  "channels": {
    "ezviz": {
      "appId": "your_app_id",
      "appSecret": "your_app_secret",
      "devices": ["BF6985110"]
    }
  }
}

Then run:

python3 scripts/restaurant_inspection.py

Disable Token Cache (High Security)

export EZVIZ_TOKEN_CACHE=0
python3 scripts/restaurant_inspection.py

Pre-Run Verification

Run these before first use:

# 1. Check for hidden characters
python3 -c "
import sys
for f in ['SKILL.md', 'scripts/restaurant_inspection.py', 'lib/token_manager.py']:
    with open(f, 'rb') as file:
        text = file.read().decode('utf-8')
        for i, c in enumerate(text):
            code = ord(c)
            if code < 32 and code not in [9, 10, 13]:
                print(f'{f}: Control char at {i}')
                sys.exit(1)
print('All files clean')
"

# 2. Verify API domains (should use open.ys7.com only)
grep -r "open.ys7.com" scripts/ lib/  # Should show endpoints

# 3. Verify domain connectivity
curl -I https://open.ys7.com/api/lapp/token/get  # Should return 200 OK

# 4. Check token cache permissions
ls -la /tmp/ezviz_global_token_cache/global_token_cache.json
# Should show: -rw------- (600)

API Endpoints

DomainPurpose
-----------------
open.ys7.comToken, Capture, Agent Management
aidialoggw.ys7.comAI Analysis

Note: open.ys7.com is the official Ezviz Open API domain (openai = Open API, not AI).


Security Checklist

Before running:

  • [ ] Reviewed scripts/restaurant_inspection.py
  • [ ] Reviewed lib/token_manager.py
  • [ ] Verified API domains (open.ys7.com, aidialoggw.ys7.com)
  • [ ] Created dedicated Ezviz app (minimal permissions)
  • [ ] Tested with non-production device

Before autonomous use:

  • [ ] Accept remote side effects (agent creation, image capture, AI analysis)
  • [ ] Understand data flow and privacy implications
  • [ ] Configured token cache appropriately for your environment

Update Log

DateVersionChanges
------------------------
2026-03-191.0.8Security hardened: unified domains, user confirmation, clean UTF-8
2026-03-191.0.7Global token cache support
2026-03-191.0.6Config file support

Author: EzvizOpenTeam

License: MIT-0

版本历史

共 2 个版本

  • v1.0.3 当前
    2026-03-29 22:57 安全 安全
  • v1.0.2
    2026-03-20 04:33

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,344
security-compliance

Ezviz Open Picture

ezviz-open
萤石设备批量抓图技能。支持多设备同时抓图,自动管理Token,可选下载图片到本地。适用场景:批量获取摄像头画面、抓图存档、监控画面采集、定时抓图任务。⚠️ 安全要求:必须配置EZVIZ_APP_KEY和EZVIZ_APP_SECRET环境变
★ 1 📥 815
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,815