← 返回 Skills 市场
🔌

jf-open-pro-device-list

作者 jftech · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
49
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jf-open-pro-device-list
功能描述
杰峰设备列表查询技能(开发版)。查询开发者账号下绑定的设备列表,支持分页查询和按设备序列号条件查询。
使用说明 (SKILL.md)

jf-open-pro-device-list - 杰峰设备列表查询技能(开发版)

技能描述

支持查询开发者账号下绑定的设备信息列表:

  • 分页查询 - 获取账号下所有绑定的设备
  • 条件查询 - 按设备序列号列表查询(最多 100 个)
  • 设备信息 - 返回设备序列号、用户名、昵称、Token 等

触发词

  • 查询设备列表 / 设备列表 / 我的设备
  • 绑定设备 / 设备分页 / 查询绑定设备

前置条件

必需配置

  1. 签名算法 - 使用杰峰官方移位加密算法生成 signature
  2. 时间戳算法 - counter(7 位) + timeMillis(13 位),实时生成
  3. 开放平台账号 - 需要有绑定的设备

环境变量

变量名 说明 默认值 必需
JF_UUID 开放平台用户 uuid -
JF_APP_KEY 开放平台应用 appKey -
JF_APP_SECRET 开放平台应用密钥 -
JF_MOVE_CARD 移动卡标识(用于签名) 2
JF_ENDPOINT API 接入地址 api-cn.jftechws.com

API 接口

功能 地址 方法
查询设备列表 POST /gwp/v3/rtc/device/list POST

核心功能

设备列表查询(Device List)

API: POST /gwp/v3/rtc/device/list

请求参数:

参数 类型 必需 默认值 说明
page int 1 页码(分页查询)
limit int 100 每页数量(最大 100)
sns string[] - 设备序列号列表(最多 100 个)

响应参数:

字段 类型 说明
code int 平台状态码(2000=成功)
msg string 响应消息
data object 响应数据
└─ deviceList object[] 设备列表
    ├─ sn string 设备序列号
    ├─ username string 设备登录用户名
    ├─ password string 设备登录密码
    ├─ nickname string 设备昵称
    └─ loginToken string 设备登录 Token

查询场景

场景 1:分页查询

获取开发者账号下的所有绑定设备信息列表。

请求示例:

{
  "page": 1,
  "limit": 100
}

场景 2:条件查询(按设备序列号列表)

指定设备序列号查询设备信息列表(最多 100 个)。

请求示例:

{
  "sns": ["5e26d516f54f500dxxxx", "115477b8705dxxxx"]
}

使用示例

环境准备

# 设置环境变量(使用占位符,请替换为实际值)
export JF_UUID="uuidxxxx"
export JF_APP_KEY="appkeyxxxx"
export JF_APP_SECRET="appsecretxxxx"
export JF_MOVE_CARD="2"
export JF_ENDPOINT="api-cn.jftechws.com"

1. 查询设备列表(分页)

cd ~/.openclaw/workspace/skills/developer/jf-open-pro-device-list/scripts

# 查询第 1 页,每页 100 个
python3 device_list.py --action list

# 查询第 2 页
python3 device_list.py --action list --page 2

# 每页 50 个
python3 device_list.py --action list --limit 50

2. 按设备序列号查询

# 查询指定设备
python3 device_list.py --action query-by-sns \
  --sns "devicesnxxxx"

# 查询多个设备(最多 100 个)
python3 device_list.py --action query-by-sns \
  --sns "devicesnxxxx,devicesnyyyy"

3. 从文件读取设备序列号

# 从文件读取设备序列号列表
python3 device_list.py --action query-by-sns \
  --sns-file "devices.txt"

4. 格式化输出

# 表格格式输出(推荐)
python3 device_list.py --action list --format table

# JSON 格式输出
python3 device_list.py --action list --format json

设备序列号文件格式

# devices.txt - 设备序列号列表文件
# 格式:每行一个设备序列号
devicesnxxxx
devicesnyyyy
devicesnzzzz

状态码

平台状态码

code 说明 处理建议
2000 成功 -
28007 Header 参数错误 检查 uuid、appKey、timeMillis、signature
40103 无效 Token 检查 uuid 和 appKey
50000 服务器内部错误 联系杰峰技术支持

注意事项

  1. 分页限制 - 每页最大 100 个设备
  2. 条件查询 - 最多查询 100 个设备序列号
  3. 设备信息 - 部分设备可能没有 nickname 或 loginToken
  4. 密码安全 - 设备密码可能为空或加密显示

相关文件

文件 说明
SKILL.md 技能文档
scripts/device_list.py Python 执行脚本
scripts/crypto.py 签名/时间戳加密工具(复用)

参考文档

安全使用建议
Review this carefully before installing. Use it only in an isolated environment with least-privilege JF credentials, set JF_ENDPOINT only to an official JFTech API host, avoid JSON output unless you are prepared to protect passwords and login tokens, and rotate any credentials that may have been exposed.
能力标签
crypto
能力评估
Purpose & Capability
The device-listing purpose is coherent with the scripts, but the documented API response includes usernames, passwords, and loginToken values; JSON output can print the full returned device records without masking.
Instruction Scope
The instructions document broad trigger phrases and credential-returning queries without requiring explicit confirmation or clear handling restrictions for sensitive device data.
Install Mechanism
The package consists of a SKILL.md file and two Python scripts; there is no evidence of hidden installation steps, bundled binaries, dependency confusion, or automatic startup behavior.
Credentials
Environment variables for uuid, app key, app secret, and endpoint are expected for this API client, but JF_ENDPOINT is not allowlisted before signed requests are sent, so a misconfigured or attacker-controlled environment could redirect authentication headers and device identifiers.
Persistence & Privilege
No persistence mechanism, privilege escalation, background worker, destructive file operation, or broad local indexing was found.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install jf-open-pro-device-list
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /jf-open-pro-device-list 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 首次发布 jf-open-pro-device-list(开发版),支持杰峰设备列表查询。 - 可分页获取开发者账号下绑定的设备信息。 - 支持按设备序列号(最多 100 个)进行条件查询。 - 返回设备序列号、用户名、昵称、Token 等信息。 - 提供命令行工具,支持文件输入和多种输出格式(表格/JSON)。 - 覆盖多区域 API 接入,适配中国大陆、亚洲、欧洲和北美。
元数据
Slug jf-open-pro-device-list
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

jf-open-pro-device-list 是什么?

杰峰设备列表查询技能(开发版)。查询开发者账号下绑定的设备列表,支持分页查询和按设备序列号条件查询。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 49 次。

如何安装 jf-open-pro-device-list?

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

jf-open-pro-device-list 是免费的吗?

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

jf-open-pro-device-list 支持哪些平台?

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

谁开发了 jf-open-pro-device-list?

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

💬 留言讨论