← Back to Skills Marketplace
🔌

jftech-open-pro-capture-livestream

by jftech · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
48
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install jftech-open-pro-capture-livestream
Description
面向开发者杰峰设备 API 工具,支持批量获取杰峰设备实时画面,可多设备多通道抓图和直播地址获取。触发词:检查设备状态、查询设备、设备登录、设备抓图、直播地址、获取播放地址、批量抓图。
README (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 接口登录

📚 官方参考资料

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install jftech-open-pro-capture-livestream
  3. After installation, invoke the skill by name or use /jftech-open-pro-capture-livestream
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug jftech-open-pro-capture-livestream
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is jftech-open-pro-capture-livestream?

面向开发者杰峰设备 API 工具,支持批量获取杰峰设备实时画面,可多设备多通道抓图和直播地址获取。触发词:检查设备状态、查询设备、设备登录、设备抓图、直播地址、获取播放地址、批量抓图。 It is an AI Agent Skill for Claude Code / OpenClaw, with 48 downloads so far.

How do I install jftech-open-pro-capture-livestream?

Run "/install jftech-open-pro-capture-livestream" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is jftech-open-pro-capture-livestream free?

Yes, jftech-open-pro-capture-livestream is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does jftech-open-pro-capture-livestream support?

jftech-open-pro-capture-livestream is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created jftech-open-pro-capture-livestream?

It is built and maintained by jftech (@jftech); the current version is v1.0.0.

💬 Comments