← 返回 Skills 市场
led controler
作者
YEVladimir
· GitHub ↗
· v1.0.1
· MIT-0
116
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install led-ctrl
功能描述
Control Raspberry Pi GPIO pins remotely by setting specified pins HIGH or LOW through RPC calls.
使用说明 (SKILL.md)
Pi GPIO Control Skill\r
This skill allows OpenClaw agents to control GPIO pins on a Raspberry Pi via RPC.\r
Purpose\r
Expose Raspberry Pi GPIO actions as local-like functions to the agent, while execution happens remotely\r on the Pi.\r
Actions\r
- gpio_on(pin): Set GPIO pin HIGH\r
- gpio_off(pin): Set GPIO pin LOW\r
Requirements\r
- Raspberry Pi running pi-agent RPC server\r
- HTTP endpoint available at http://pi.local:9000/run\r
Security\r
Only predefined GPIO actions are allowed on the Pi side.
安全使用建议
This skill appears to do what it says (send RPC commands to a Raspberry Pi) but has several issues you should address before installing or using it:
- Verify the target host: SKILL.md references http://pi.local:9000/run but the script hard-codes 192.168.0.14. Confirm which address is correct and avoid accidental control of the wrong device.
- Authentication & encryption: The script sends commands over plain HTTP with no auth. Ensure the Pi's RPC server requires authentication (token/HTTPS) or run this only on a tightly controlled private network.
- Input validation: The script forwards ACTION and PIN without checking allowed values. Prefer a whitelist (only gpio_on/gpio_off and valid pin ranges) to prevent unexpected commands.
- Make the Pi address configurable: Replace the hard-coded PI_IP with a configurable env var or skill setting so the agent cannot accidentally reach other hosts.
- Review the remote RPC server: Inspect the Pi-side implementation to confirm it actually limits actions to safe GPIO operations and does not execute arbitrary shell commands.
If you cannot confirm the above, treat the skill as risky — especially on networks with multiple devices or where an unauthenticated RPC could be abused. If you want, I can suggest a revised script and a safer SKILL.md that add validation, configuration, and optional authentication.
能力评估
Purpose & Capability
The skill claims to control Raspberry Pi GPIO remotely and the included script sends HTTP RPC requests to a Pi — that is coherent. However the SKILL.md says the endpoint is http://pi.local:9000/run while the script uses a hard-coded IP (192.168.0.14), which is an unexplained discrepancy. The script also does not expose or require any of the usual configuration (no env var to set the Pi address) which reduces flexibility and suggests sloppy implementation.
Instruction Scope
The SKILL.md restricts actions to predefined GPIO operations, but the script accepts any ACTION string passed by the caller and forwards it verbatim to the Pi. There is no local validation of allowed actions or pin ranges. The script transmits control commands over HTTP with no authentication or encryption; SKILL.md does not mention authentication. The instructions and code therefore permit the agent to send arbitrary JSON RPC payloads to a network endpoint, which may be broader than the documented safe scope.
Install Mechanism
There is no install spec (instruction-only style) which is low-risk in general. However a scripts/main.sh file is included and would be present on disk when the skill is installed. The script uses curl (assumed present) and writes nothing else. No external downloads or installers are present — that is reasonable but the presence of an executable script increases runtime risk if invoked without review.
Credentials
The skill requests no environment variables or credentials, yet it performs network control of hardware over HTTP without authentication. The lack of required credentials is not necessarily good here — it implies unauthenticated access to the Pi endpoint. Also the Pi address is hard-coded in the script rather than configurable, which is poor practice and may cause accidental control of an unintended host on the local network.
Persistence & Privilege
The skill does not request always:true, does not require special system paths or modify other skills, and uses normal autonomous invocation defaults. There is no evidence it attempts to gain persistent elevated privileges or modify other agent configurations.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install led-ctrl - 安装完成后,直接呼叫该 Skill 的名称或使用
/led-ctrl触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added scripts/main.sh to the project.
v1.0.0
Initial release of led-ctrl skill.
- Enables control of Raspberry Pi GPIO pins remotely using RPC.
- Provides gpio_on(pin) and gpio_off(pin) actions to set GPIO pins HIGH or LOW.
- Requires the pi-agent RPC server running on a Raspberry Pi.
- Restricts operations to predefined GPIO actions for security.
元数据
常见问题
led controler 是什么?
Control Raspberry Pi GPIO pins remotely by setting specified pins HIGH or LOW through RPC calls. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 116 次。
如何安装 led controler?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install led-ctrl」即可一键安装,无需额外配置。
led controler 是免费的吗?
是的,led controler 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
led controler 支持哪些平台?
led controler 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 led controler?
由 YEVladimir(@yevladimir)开发并维护,当前版本 v1.0.1。
推荐 Skills