← 返回 Skills 市场
🔌

jftech-open-pro-capture-livestream

作者 jftech · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
48
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jftech-open-pro-capture-livestream
功能描述
面向开发者杰峰设备 API 工具,支持批量获取杰峰设备实时画面,可多设备多通道抓图和直播地址获取。触发词:检查设备状态、查询设备、设备登录、设备抓图、直播地址、获取播放地址、批量抓图。
使用说明 (SKILL.md)

JF Open Pro Capture Livestream

面向开发者杰峰设备 API 工具 (Python)

支持批量获取杰峰设备实时画面,可多设备多通道抓图和直播地址获取。


🔒 安全说明

仅支持环境变量存储凭据

方式 支持 说明
环境变量 ✅ 支持 不会在进程列表中暴露,不会执行本地代码
命令行参数 ❌ 不支持 避免凭据泄露风险
配置文件 ❌ 不支持 避免代码执行风险

🚀 快速开始

设置环境变量

export JF_UUID="your-uuid"              # 开放平台用户唯一标识
export JF_APPKEY="your-appkey"          # 开放平台应用 Key
export JF_APPSECRET="your-appsecret"    # 开放平台应用密钥
export JF_MOVECARD=5                    # 签名算法偏移量 (0-9)
export JF_SN="your-device-sn"           # 设备序列号

使用技能

# 查询设备状态
python scripts/jf_open_pro_capture_livestream.py status

# 设备登录
python scripts/jf_open_pro_capture_livestream.py login

# 云抓图
python scripts/jf_open_pro_capture_livestream.py capture

# 获取直播地址
python scripts/jf_open_pro_capture_livestream.py livestream

# 获取 Token
python scripts/jf_open_pro_capture_livestream.py token

📋 环境变量

变量名 说明 必需 默认值
JF_UUID 开放平台用户唯一标识 -
JF_APPKEY 开放平台应用 Key -
JF_APPSECRET 开放平台应用密钥 -
JF_MOVECARD 签名算法偏移量 (0-9) -
JF_SN 设备序列号 -
JF_USERNAME 设备用户名 admin
JF_PASSWORD 设备密码 -
JF_ENDPOINT API 端点 api.jftechws.com
JF_KEEPALIVE 保活时长(秒) 300

🛠️ 功能

  1. 获取设备 Token - 通过设备序列号获取 24 小时有效的访问令牌
  2. 设备登录认证 - 使用设备用户名/密码完成登录,获取 SessionID
  3. 查询设备状态 - 获取设备在线状态、休眠状态、认证状态、IP 信息等
  4. 设备云抓图 - 抓取设备实时图片(辅码流),图片地址有效期 24 小时
  5. 获取直播地址 - 获取设备直播流地址(HLS/RTMP/FLV/WebRTC 等),默认有效期 10 小时

📖 详细文档

1. 获取设备 Token

接口: POST /gwp/v3/rtc/device/token

响应:

{
  "code": 2000,
  "data": [{
    "sn": "YOUR_DEVICE_SN",
    "token": "ZTA3NTRiODMzNHw0OGRlOGMxYzFjMjBhNGEzfHwx..."
  }]
}

注意: Token 有效期 24 小时,可缓存复用。


2. 查询设备状态

接口: POST /gwp/v3/rtc/device/status

状态判定表:

status wakeUpStatus wakeUpEnable 设备状态
online 常电设备,在线
online 0 1 低功耗设备,已休眠
online 1 1 低功耗设备,已唤醒
online 2 1 低功耗设备,准备休眠中
notfound 设备不在线

3. 设备云抓图

接口: POST /gwp/v3/rtc/device/capture/{deviceToken}

注意:

  • ⚠️ 按调用次数计费 - 详见官网定价
  • ⚠️ 图片有效期 24 小时 - 过期自动清除,需及时下载

4. 获取直播地址

接口: POST /gwp/v3/rtc/device/livestream/{deviceToken}

支持协议:

协议 参数 适用场景
HLS hls-ts Web 浏览器、移动端(推荐)
FLV flv Web 播放器
WebRTC webrtc 超低延迟(仅 H.264)
RTMP rtmp-flv 微信小程序

注意:

  • ⚠️ 直播地址默认有效期 10 小时
  • ⚠️ 低功耗设备 - 获取后 3 秒内必须播放

⚠️ 错误处理

错误码 说明 解决方案
2000 成功 -
4118 连接超时 设备离线/休眠,稍后重试
10001 Token 无效 重新获取 Token
10002 设备未登录 调用 login 接口登录

📚 官方参考资料

安全使用建议
This skill appears to implement a JF Tech API client and legitimately needs the JF-specific credentials it asks for, but there are documentation contradictions you should resolve before installing: SKILL.md claims it 'does not execute local code' while the package contains a runnable Python script that will execute locally and send credentials to JF endpoints. Actions to consider before installing: 1) Review the full Python file (including the truncated portion) to confirm there are no hidden endpoints, data-exfiltration calls, or unexpected behaviors. 2) Run the script in an isolated environment (VM/container) and monitor network traffic to confirm it only contacts expected jftech domains. 3) Only provide credentials with the minimum required privileges and avoid using high-privileged or reused secrets. 4) If you don't trust the source, do not run the script; request a trustworthy upstream or a vetted package. If you want, provide the rest of the script text and I can re-check the remaining code for any issues.
功能分析
Type: OpenClaw Skill Name: jftech-open-pro-capture-livestream Version: 1.0.0 The skill bundle is a legitimate Python-based SDK and CLI tool for interacting with the JFTech (杰峰) Open Platform API to manage IoT devices. It implements standard authentication, status querying, image capture, and livestreaming functionality as described in the documentation. The code (jf_open_pro_capture_livestream.py) correctly handles sensitive credentials via environment variables and communicates only with the declared official endpoints (api.jftechws.com). No malicious behavior, data exfiltration, or prompt injection attempts were found.
能力评估
Purpose & Capability
Name/description, required environment variables (JF_UUID, JF_APPKEY, JF_APPSECRET, JF_MOVECARD, optional device creds) and the Python implementation all align with a JF Tech device API client for token, capture, status, and livestream endpoints. No unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md and README instruct running a local Python script and explicitly read only environment variables. However, the docs include a table entry claiming '不会执行本地代码' ('will not execute local code'), which contradicts the presence and usage instructions of scripts/jf_open_pro_capture_livestream.py. This inconsistency should be resolved (the provided code will execute locally and make outbound HTTPS calls). The runtime instructions otherwise reference only JF endpoints and env vars, not unrelated system files.
Install Mechanism
The skill is instruction-only (no automated install spec). It ships a requirements.txt listing only 'requests', and the code checks for requests and exits with an error if missing. This is proportional but requires the user to run pip install manually; no high-risk download URLs or extract steps are present.
Credentials
Requested environment variables are appropriate and necessary for the JF Tech API (platform uuid/appKey/appSecret and a signature offset). Optional device username/password are acceptable for device login flows. No unrelated keys or high-privilege cloud credentials are requested.
Persistence & Privilege
The skill does not request 'always: true', does not claim to modify other skill or agent configs, and has no install-time persistence mechanism. Autonomous invocation is allowed (platform default) but not combined with other privilege escalations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install jftech-open-pro-capture-livestream
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /jftech-open-pro-capture-livestream 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of jftech-open-pro-capture-livestream. - Provides API tools for developers to interact with JF devices. - Supports batch capture of real-time device images and retrieval of livestream URLs for multiple devices and channels. - Allows device status checks, device login, token acquisition, image capture, and livestream link retrieval. - Credentials are managed exclusively via environment variables for security. - Python-only support; compatible with official JF API endpoints both internationally and in mainland China.
元数据
Slug jftech-open-pro-capture-livestream
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

jftech-open-pro-capture-livestream 是什么?

面向开发者杰峰设备 API 工具,支持批量获取杰峰设备实时画面,可多设备多通道抓图和直播地址获取。触发词:检查设备状态、查询设备、设备登录、设备抓图、直播地址、获取播放地址、批量抓图。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 48 次。

如何安装 jftech-open-pro-capture-livestream?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install jftech-open-pro-capture-livestream」即可一键安装,无需额外配置。

jftech-open-pro-capture-livestream 是免费的吗?

是的,jftech-open-pro-capture-livestream 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

jftech-open-pro-capture-livestream 支持哪些平台?

jftech-open-pro-capture-livestream 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 jftech-open-pro-capture-livestream?

由 jftech(@jftech)开发并维护,当前版本 v1.0.0。

💬 留言讨论