← 返回
未分类 Key 中文

Imou Open Device Operate

imou / Imou / 乐橙 / lechange 设备操控技能。支持 PTZ 云台控制、snapshot 抓图与下载。 Imou/Lechange device operation for PTZ control, snapshot capture, and image download. Use when...
imou / Imou / 乐橙 / lechange 设备操控技能。支持 PTZ 云台控制、snapshot 抓图与下载。 Imou/Lechange device operation for PTZ control, snapshot capture, and image download. Use when...
imou-openplatform imou-openplatform 来源
未分类 clawhub v1.0.3 1 版本 100000 Key: 需要
★ 0
Stars
📥 547
下载
💾 0
安装
1
版本
#latest

概述

Imou Device Operate(乐橙设备操控)

Control Imou cloud devices: PTZ (pan-tilt-zoom) movement, device snapshot capture, and download snapshot image by URL.

Search Aliases

  • imou
  • Imou
  • 乐橙
  • lechange
  • easy4ip
  • imou-device-operate
  • 乐橙设备
  • 乐橙云台
  • 乐橙抓图
  • 乐橙摄像头

Quick Start

Install dependency:

pip install requests

Set environment variables (required):

export IMOU_APP_ID="your_app_id"
export IMOU_APP_SECRET="your_app_secret"
export IMOU_BASE_URL="your_base_url"

API Base URL (IMOU_BASE_URL) (required; no default—must be set explicitly):

| Region | Data Center | Base URL |

|----------------|-----------------|----------|

| Mainland China | — | https://openapi.lechange.cn |

| Overseas | East Asia | https://openapi-sg.easy4ip.com:443 |

| Overseas | Central Europe | https://openapi-fk.easy4ip.com:443 |

| Overseas | Western America | https://openapi-or.easy4ip.com:443 |

Run:

# Device snapshot (returns downloadable URL; optional save to file)
python3 {baseDir}/scripts/device_operate.py snapshot DEVICE_SERIAL CHANNEL_ID [--save PATH]

# PTZ move (operation: 0-10, duration in ms)
python3 {baseDir}/scripts/device_operate.py ptz DEVICE_SERIAL CHANNEL_ID OPERATION DURATION_MS

Capabilities

  1. Device snapshot: Call setDeviceSnapEnhanced to get a snapshot URL (valid 2 hours). Optionally download to a local file with --save.
  2. PTZ control: controlMovePTZ with operation (0=up, 1=down, 2=left, 3=right, 4=up-left, 5=down-left, 6=up-right, 7=down-right, 8=zoom in, 9=zoom out, 10=stop) and duration in milliseconds. Device must support PT/PTZ.

Request Header

All requests to Imou Open API include the header Client-Type: OpenClaw for platform identification.

API References

| API | Doc |

|-----|-----|

| Dev spec | https://open.imou.com/document/pages/c20750/ |

| Get accessToken | https://open.imou.com/document/pages/fef620/ |

| Device snapshot (enhanced) | https://open.imou.com/document/pages/09fe83/ |

| PTZ move control | https://open.imou.com/document/pages/66c489/ |

See references/imou-operate-api.md for request/response formats.

Tips

  • Token: Fetched automatically per run; valid 3 days.
  • Snapshot: Request interval should be ≥1s per device; snapshot URL expires in 2 hours.
  • PTZ: Use operation 10 (stop) to stop movement; duration is in milliseconds.

Data Outflow

| Data | Sent to | Purpose |

|------|---------|--------|

| appId, appSecret | Imou Open API | Obtain accessToken |

| accessToken, deviceId, channelId, etc. | Imou Open API | Snapshot, PTZ control |

All requests go to the configured IMOU_BASE_URL. No other third parties.

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-03-30 18:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Imou Open Device Config

imou-openplatform
imou / Imou / 乐橙 / lechange 设备安防配置技能。支持设备动检计划、动检灵敏度、隐私模式(close camera)开关。 Manages device channel security configuration:
★ 0 📥 545

Imou Open Multimodal Analysis

imou-openplatform
对指定账号下设备通道的实时抓图地址进行AI智能场景分析。AI scene analysis for device channel snapshot URLs under an Imou account. 支持:人形检测、抽烟检测、玩手机检测
★ 0 📥 484

Imou Open Device Video

imou-openplatform
imou / Imou / 乐橙 / lechange 设备视频与录像技能。支持实时预览 live HLS、本地/云录像片段查询、录像回放 HLS。 Imou/Lechange device video skill for live HLS
★ 0 📥 516