← 返回 Skills 市场
🔌

Jf Open Pro Feed Control

作者 jftech · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
38
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jf-open-pro-feed-control
功能描述
杰峰智能宠物喂食器设备控制技能(开发版)。支持远程一键喂食、设置或查询定时喂食计划,以及配置设备端的宠物检测功能开关。
使用说明 (SKILL.md)

jf-open-pro-feed-control - 杰峰智能宠物喂食器设备控制技能(开发版)

技能描述

支持杰峰智能宠物喂食器设备的远程控制功能:

  • 查询设备是否支持喂食 - 查询设备能力集,确认是否支持喂食功能
  • 一键喂食 - 远程发送喂食指令,控制设备出粮
  • 定时喂食计划 - 查询和设置设备的定时喂食计划
  • 宠物检测 - 查询和设置设备端的宠物检测功能开关

适用场景:

  • 远程给宠物喂食
  • 设置定时自动喂食计划
  • 配置宠物检测自动触发喂食

触发词

  • 查询设备是否支持喂食 / 设备支持喂食吗
  • 一键喂食 / 远程喂食 / 手动喂食 / 立即喂食
  • 定时喂食计划 / 查询喂食计划 / 设置喂食计划
  • 宠物检测开关 / 查询宠物检测 / 开启宠物检测 / 关闭宠物检测

前置条件

硬件要求

  1. 智能宠物喂食器 - 设备需为杰峰智能宠物喂食器

必需配置

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

环境变量

变量名 说明 默认值 必需
JF_UUID 开放平台用户 uuid -
JF_APP_KEY 开放平台应用 appKey -
JF_APP_SECRET 开放平台应用密钥 -
JF_MOVE_CARD 移动卡标识(用于签名) 2
JF_DEVICE_SN 设备序列号 -
JF_DEVICE_TOKEN 设备接口访问令牌 -
JF_ENDPOINT API 接入地址 api-cn.jftechws.com

API 接口

功能 地址 方法 需要 Token 需要在线
查询设备能力 POST /gwp/v3/rtc/device/getability/{token} POST
一键喂食 POST /gwp/v3/rtc/device/feeder/{token} POST
查询定时喂食计划 POST /gwp/v3/rtc/device/iotPropSet/{token} POST
设置定时喂食计划 POST /gwp/v3/rtc/device/iotPropSet/{token} POST
查询宠物检测开关 POST /gwp/v3/rtc/device/petDetectionSwitchStatus/{token} POST
设置宠物检测开关 POST /gwp/v3/rtc/device/petDetectionSwitchSetting/{token} POST

核心功能

1. 查询设备是否支持喂食(FeederAbility)

API: POST /gwp/v3/rtc/device/getability/{deviceToken}

Name: FeederAbility

响应参数:

字段 类型 说明
FeedBlockAlarm int 堵粮报警设置开关,1=显示,0=不显示
FoodShortageAlarm int 余粮报警设置开关,1=显示,0=不显示
BoxNums int 食物餐盘个数。无该字段或值为 0 表示老设备,默认为 1
FeedSnap int 是否支持喂食时抓图和喂食后延时抓图,1=支持,0=不支持

2. 一键喂食(Feed Control)

API: POST /gwp/v3/rtc/device/feeder/{deviceToken}

请求参数:

参数 类型 必需 说明 取值
sn string 设备序列号 -
props object 喂食参数 -
props.feed int 喂食份数 正整数

请求示例:

{
  "sn": "device-sn",
  "props": {
    "feed": 1
  }
}

3. 定时喂食计划(Feed Schedule)

查询/设置 API: POST /gwp/v3/rtc/device/iotPropSet/{deviceToken}

查询请求体:

{
  "sn": "设备序列号",
  "props": ["feedPlan"]
}

设置请求体:

{
  "sn": "设备序列号",
  "props": {
    "feedPlan": [
      {
        "enable": true,
        "cron": "0 31 10 * * 1,2,3,4,5,6,0",
        "action": {
          "feed": 1
        }
      }
    ]
  }
}

定时计划项(feedPlan):

字段 类型 说明 取值
enable boolean 定时器是否开启 true=启用,false=禁用
cron string cron 时间表达式 0 {minute} {hour} * * {weekdays}
action.feed int 投食份数 正整数

操作方法(method):

方法 说明
Add 增加自动喂食时间点
Modify 修改已设定的自动喂食时间点
Delete 删除已设定的自动喂食时间点
Clear 删除全部自动喂食计划

4. 宠物检测开关(Pet Detection)

查询 API: POST /gwp/v3/rtc/device/petDetectionSwitchStatus/{deviceToken}

设置 API: POST /gwp/v3/rtc/device/petDetectionSwitchSetting/{deviceToken}

查询响应:

字段 类型 说明
Switch string 开关状态:ON=开启,OFF=关闭
Ret int 设备响应状态码

设置请求体:

{
  "Switch": "ON"
}

使用示例

环境准备

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

1. 查询设备是否支持喂食

cd ~/.qoderwork/skills/jf-open-pro-feed-control/scripts

python3 feed_control.py --action check-support

2. 一键喂食

# 喂食一次(默认 1 份)
python3 feed_control.py --action feed-once

# 喂食 2 份
python3 feed_control.py --action feed-once --portion 2

3. 定时喂食计划

# 查询当前定时喂食计划
python3 feed_control.py --action get-schedule

# 设置定时喂食计划(配置文件方式)
python3 feed_control.py --action set-schedule --schedule-file schedule.json

# 快速添加一条计划(每天 8:00 喂食 2 份)
python3 feed_control.py --action add-schedule \
  --hour 8 --minute 0 --portion 2 \
  --repeat "Mon,Tue,Wed,Thu,Fri,Sat,Sun"

4. 宠物检测

# 查询宠物检测开关状态
python3 feed_control.py --action get-pet-detect

# 开启宠物检测
python3 feed_control.py --action set-pet-detect --enable true

# 关闭宠物检测
python3 feed_control.py --action set-pet-detect --enable false

状态码

平台状态码

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

设备状态码(Ret)

Ret 说明
100 成功
103 非法请求(设备不支持该功能)
106 用户名或密码错误

注意事项

  1. 设备要求 - 仅智能宠物喂食器设备支持此功能
  2. deviceToken 有效期 - 24 小时,过期需重新获取
  3. 设备在线要求 - 所有操作需要设备在线
  4. 出粮份数 - 建议在设备支持的最小和最大份数范围内设置
  5. 定时计划 - 最多支持 10 条定时计划
  6. 重复周期 - 支持按星期重复,使用英文缩写:Mon, Tue, Wed, Thu, Fri, Sat, Sun

相关文件

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

参考文档

安全使用建议
Install only if you understand that it can feed the device and change schedules. Keep JF_APP_SECRET and JF_DEVICE_TOKEN private, do not commit or share them, and only set JF_ENDPOINT to a trusted JFTech regional API host. Review commands carefully before allowing an agent to run feed or schedule-changing actions.
能力标签
crypto
能力评估
Purpose & Capability
The stated purpose is coherent: it supports checking feeder capability, immediate feeding, schedule changes, and pet-detection settings for a JFTech smart feeder. These actions are high-impact because they can actuate hardware and persist feeding schedules.
Instruction Scope
The documentation describes the commands, but it does not clearly require confirmation or warn that feed, schedule, and pet-detection actions can immediately or persistently change real-world device behavior.
Install Mechanism
No hidden installer, package dependency, background setup, or persistence mechanism was found; the artifact consists of a skill document and Python helper scripts.
Credentials
The skill requires app credentials and device tokens, which are proportionate for vendor API control, but JF_ENDPOINT is accepted as an arbitrary host and authenticated requests are sent to it without allowlisting or validation.
Persistence & Privilege
The skill does not install persistence on the computer, but it can make persistent device configuration changes by setting feeding schedules and pet-detection state.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install jf-open-pro-feed-control
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /jf-open-pro-feed-control 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
jf-open-pro-feed-control 1.0.0 初始发布 - 支持远程一键喂食杰峰智能宠物喂食器设备 - 可设置与查询定时喂食计划 - 提供宠物检测功能开关配置及查询 - 支持多区域 API 接入(中国、亚洲、欧洲、北美) - 提供丰富命令行示例与必需环境变量配置说明
元数据
Slug jf-open-pro-feed-control
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Jf Open Pro Feed Control 是什么?

杰峰智能宠物喂食器设备控制技能(开发版)。支持远程一键喂食、设置或查询定时喂食计划,以及配置设备端的宠物检测功能开关。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。

如何安装 Jf Open Pro Feed Control?

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

Jf Open Pro Feed Control 是免费的吗?

是的,Jf Open Pro Feed Control 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Jf Open Pro Feed Control 支持哪些平台?

Jf Open Pro Feed Control 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Jf Open Pro Feed Control?

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

💬 留言讨论