← 返回 Skills 市场
Imou Open Device Video
作者
Imou-OpenPlatform
· GitHub ↗
· v1.0.1
· MIT-0
199
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install imou-device-video
功能描述
imou / Imou / 乐橙 / lechange 设备视频与录像技能。支持实时预览 live HLS、本地/云录像片段查询、录像回放 HLS。 Imou/Lechange device video skill for live HLS, local/cloud record clips, and playb...
使用说明 (SKILL.md)
\r \r
Imou Device Video(乐橙设备视频)\r
\r Get device live HLS URL, local/cloud record clips, and record playback HLS URL by device channel. For OpenClaw download, play, and record.\r \r
Search Aliases\r
\r
- imou\r
- Imou\r
- 乐橙\r
- lechange\r
- easy4ip\r
- imou-device-video\r
- 乐橙直播\r
- 乐橙回放\r
- 乐橙云录像\r
- 乐橙本地录像\r \r
Quick Start\r
\r Install dependency:\r
pip install requests\r
```\r
\r
Set environment variables (required):\r
```bash\r
export IMOU_APP_ID="your_app_id"\r
export IMOU_APP_SECRET="your_app_secret"\r
export IMOU_BASE_URL="your_base_url"\r
```\r
\r
**API Base URL (IMOU_BASE_URL)** (required; no default—must be set explicitly):\r
- **Mainland China**: Register a developer account at [open.imou.com](https://open.imou.com) and use the base URL below. Get `appId` and `appSecret` from [App Information](https://open.imou.com/consoleNew/myApp/appInfo).\r
- **Overseas**: Register a developer account at [open.imoulife.com](https://open.imoulife.com) and use the base URL for your data center (view in [Console - Basic Information - My Information](https://open.imoulife.com/consoleNew/basicInfo/myInfo)). Get `appId` and `appSecret` from [App Information](https://open.imoulife.com/consoleNew/myApp/appInfo). See [Development Specification](https://open.imoulife.com/book/http/develop.html).\r
\r
| Region | Data Center | Base URL |\r
|----------------|-----------------|----------|\r
| Mainland China | — | `https://openapi.lechange.cn` |\r
| Overseas | East Asia | `https://openapi-sg.easy4ip.com:443` |\r
| Overseas | Central Europe | `https://openapi-fk.easy4ip.com:443` |\r
| Overseas | Western America | `https://openapi-or.easy4ip.com:443` |\r
\r
Run:\r
```bash\r
# Get live HLS URL for a device channel (creates live if needed; if LV1001, fetches from live list)\r
python3 {baseDir}/scripts/device_video.py live DEVICE_ID CHANNEL_ID [--stream-id 0|1]\r
\r
# Get local or cloud record clips in a time range\r
python3 {baseDir}/scripts/device_video.py record-clips DEVICE_ID CHANNEL_ID --begin "yyyy-MM-dd HH:mm:ss" --end "yyyy-MM-dd HH:mm:ss" [--local|--cloud] [--count 100] [--query-range 1-100]\r
\r
# Get record playback HLS URL for a time range (local or cloud)\r
python3 {baseDir}/scripts/device_video.py playback-hls DEVICE_ID CHANNEL_ID --begin "yyyy-MM-dd HH:mm:ss" --end "yyyy-MM-dd HH:mm:ss" --record-type localRecord|cloudRecord [--stream-id 0|1]\r
```\r
\r
## Capabilities\r
\r
1. **Live HLS**: Select device + channel, get real-time preview HLS URL. Supports OpenClaw download, play, record. If bind returns LV1001 (live already exists), the skill queries live list to return the existing HLS URL.\r
2. **Record clips**: Select device + channel, get local or cloud record clip list in a time range (begin/end).\r
3. **Playback HLS**: Select device + channel, get HLS URL for a given time range for local or cloud record; supports OpenClaw download, play, record. Playback URL has limited validity—use soon after obtaining.\r
\r
## Request Header\r
\r
All requests to Imou Open API include the header `Client-Type: OpenClaw` for platform identification.\r
\r
## API References\r
\r
| API | Doc |\r
|-----|-----|\r
| Dev spec | https://open.imou.com/document/pages/c20750/ |\r
| Get accessToken | https://open.imou.com/document/pages/fef620/ |\r
| Create device live (bindDeviceLive) | https://open.imou.com/document/pages/1bc396/ |\r
| Create device record HLS | https://open.imou.com/document/pages/185646/ |\r
| Get live list (liveList) | https://open.imou.com/document/pages/b0e047/ |\r
| Query local records | https://open.imou.com/document/pages/396dce/ |\r
| Query cloud records | https://open.imou.com/document/pages/8e0e35/ |\r
\r
See `references/imou-video-api.md` for request/response formats.\r
\r
## Tips\r
\r
- **Token**: Fetched automatically per run; valid 3 days.\r
- **Live**: Use `--stream-id 0` (main stream) or `1` (sub stream). If API returns LV1001, the script falls back to liveList to find the existing HLS for the same device/channel/streamId.\r
- **Record clips**: `--local` uses queryLocalRecords (param `count`, max 100; some devices limit to 32). `--cloud` uses queryCloudRecords (param `queryRange` e.g. `1-100`). Paginate by using the last clip’s endTime as next beginTime.\r
- **Playback HLS**: Time format `yyyy-MM-dd HH:mm:ss`; no cross-day range. Record type `localRecord` or `cloudRecord`. Use the URL promptly; it expires.\r
\r
## Data Outflow\r
\r
| Data | Sent to | Purpose |\r
|------|---------|--------|\r
| appId, appSecret | Imou Open API | Obtain accessToken |\r
| accessToken, deviceId, channelId, etc. | Imou Open API | Live, record clips, playback HLS |\r
\r
All requests go to the configured `IMOU_BASE_URL`. No other third parties.\r
安全使用建议
This skill is coherent with its description: it calls the Imou / Lechange Open API and needs your Imou developer appId and appSecret plus the correct IMOU_BASE_URL. Before installing, ensure you: (1) only provide app credentials that you obtained from Imou (and revoke them if you suspect misuse), (2) run the skill in an environment with appropriate network controls if you require isolation, and (3) review the included scripts if you want to confirm there are no additional logging or telemetry paths. The skill will send your appId/appSecret and device identifiers to the configured IMOU_BASE_URL (the default is openapi.lechange.cn); it does not contact other third parties according to the code and documentation.
功能分析
Type: OpenClaw Skill
Name: imou-device-video
Version: 1.0.1
The imou-device-video skill is a legitimate integration for accessing Imou/Lechange security camera streams and recordings. The code in scripts/imou_client.py and scripts/device_video.py correctly implements the official Imou Open API, including request signing via MD5 and token management. It communicates only with the user-configured or official Imou API endpoints (e.g., openapi.lechange.cn) and does not exhibit any signs of data exfiltration, unauthorized execution, or prompt injection.
能力评估
Purpose & Capability
Name/description (Imou device live HLS, record/query/playback) match the code and SKILL.md. Requested env vars (IMOU_APP_ID, IMOU_APP_SECRET, IMOU_BASE_URL) are exactly those required to call the Imou Open API. No unrelated binaries, services, or credentials are requested.
Instruction Scope
SKILL.md and the Python scripts only instruct the agent to obtain an access token and call Imou Open API endpoints (bindDeviceLive, liveList, queryLocalRecords, queryCloudRecords, createDeviceRecordHls). The scripts read only the declared environment variables and do not reference other system files, keys, or external endpoints beyond the configured IMOU_BASE_URL (defaulting to openapi.lechange.cn).
Install Mechanism
No risky install steps; dependency is requests (pip). The SKILL.md suggests pip install requests and the metadata lists a pip install of requests — proportional and expected for a Python HTTP client. No downloads from arbitrary URLs or archives are present.
Credentials
The skill requires only appId, appSecret, and base URL for the Imou API. Those are necessary to obtain tokens and sign requests; the number and type of environment variables are proportionate to the skill's stated functionality. The primary credential (IMOU_APP_ID) is appropriate. The code does not request unrelated secrets.
Persistence & Privilege
always:false and the skill does not write persistent configuration or modify other skills. Tokens are fetched per run and not stored persistently by the skill. Autonomous invocation is allowed by default on the platform but is not combined with other concerning privileges here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install imou-device-video - 安装完成后,直接呼叫该 Skill 的名称或使用
/imou-device-video触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Imou Device Video 1.0.0 initial release:
- Provides live HLS stream URLs, local/cloud record clip queries, and HLS playback URLs for Imou/Lechange devices.
- Environment variables required: IMOU_APP_ID, IMOU_APP_SECRET, IMOU_BASE_URL.
- Supports channel-specific actions for real-time preview, video clip search, and playback, compatible with OpenClaw usage.
- Includes detailed setup, API references, usage instructions, and data outflow notes.
- Adds common search aliases for easier discovery.
v1.0.0
Imou Device Video 1.0.0 – Initial Release
- Provides access to Imou (乐橙) device real-time HLS live streams and both local/cloud video record clips.
- Allows retrieval of playback HLS URLs for video records by device channel and time range.
- Supports OpenClaw-based download, play, and recording of live and playback streams.
- Includes scripts and documentation for setup, region-based API endpoints, required environment variables, and command-line usage.
- All API communication is handled securely with required headers and no data shared beyond the configured Imou API endpoint.
元数据
常见问题
Imou Open Device Video 是什么?
imou / Imou / 乐橙 / lechange 设备视频与录像技能。支持实时预览 live HLS、本地/云录像片段查询、录像回放 HLS。 Imou/Lechange device video skill for live HLS, local/cloud record clips, and playb... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 199 次。
如何安装 Imou Open Device Video?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install imou-device-video」即可一键安装,无需额外配置。
Imou Open Device Video 是免费的吗?
是的,Imou Open Device Video 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Imou Open Device Video 支持哪些平台?
Imou Open Device Video 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Imou Open Device Video?
由 Imou-OpenPlatform(@imou-openplatform)开发并维护,当前版本 v1.0.1。
推荐 Skills