← 返回 Skills 市场
173
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install usb-light-sensor-reader
功能描述
Read light intensity from USB sensors with real-time monitoring, filtering, and threshold detection.
安全使用建议
This skill appears to do exactly what it claims: read a local USB light sensor via a serial port. Before installing, ensure you: (1) run on a Linux machine and have python3 and pyserial installed, (2) add the user to the dialout group or otherwise grant access to /dev/ttyUSB0, and (3) review whether you'll also install the separate 'control-usb-relay' skill—combining sensor+relay lets an AI agent control hardware, so grant that capability only to agents you trust. Note: some documentation examples show agent configs with API keys for external agent software; those are for the agent platform (e.g., NanoBot) and are not required by this sensor skill itself.
功能分析
Type: OpenClaw Skill
Name: usb-light-sensor-reader
Version: 1.0.2
The skill is a standard implementation for reading light intensity from a USB serial sensor. The core logic in `sensor.py` uses the `pyserial` library to interface with `/dev/ttyUSB0`, employing a moving average filter for data stability and regex for parsing sensor output. The documentation (SKILL.md, README.md, and USAGE-GUIDE.md) is consistent with the code's functionality, providing clear instructions for hardware setup and AI agent integration without any signs of malicious intent, data exfiltration, or suspicious execution patterns.
能力评估
Purpose & Capability
Name/description match the implementation: sensor.py reads /dev/ttyUSB0, provides moving-average filtering and threshold checks. Declared binary (python3) and requirement (pyserial in requirements.txt) are appropriate and proportional.
Instruction Scope
SKILL.md stays on-topic (check /dev/ttyUSB0, connect, read, disconnect). The broader USAGE-GUIDE references other skills (control-usb-relay) and example agent configs (showing a model API key) — those are documentation for integrating with external agent frameworks, not requirements of this skill. That could confuse non-technical users but does not change the skill's behavior.
Install Mechanism
No install spec (instruction-only) and only local Python code and a small requirements.txt referencing pyserial; no external downloads or archive extraction. Low install risk.
Credentials
The skill does not request environment variables or credentials. Example docs include an agent config with an API key for third-party agents — that is unrelated to this skill and optional when integrating with agent software.
Persistence & Privilege
always is false, no special persistence requested, and the code does not modify other skills or system-wide configuration. It only opens and closes the serial port it is configured to use.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install usb-light-sensor-reader - 安装完成后,直接呼叫该 Skill 的名称或使用
/usb-light-sensor-reader触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Added USAGE-GUIDE.md to provide more detailed usage instructions.
- Updated version to 1.0.2 in metadata and documentation.
- No changes to core functionality or security notes.
v1.0.1
- Added README.md with usage and setup documentation.
- Updated SKILL.md and metadata for improved clarity and accuracy.
v1.0.0
Initial release of USB Light Sensor Reader.
- Reads light intensity (lux) in real-time from USB-connected sensors at /dev/ttyUSB0
- Provides moving average filtering and raw value access
- Includes default threshold detection for dark (<100 lux) and bright (>500 lux) environments
- Requires user in dialout group and hardware initialization/disconnect steps
- No persistent data storage; works directly from serial port
元数据
常见问题
Usb Light Sensor Reader 是什么?
Read light intensity from USB sensors with real-time monitoring, filtering, and threshold detection. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 173 次。
如何安装 Usb Light Sensor Reader?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install usb-light-sensor-reader」即可一键安装,无需额外配置。
Usb Light Sensor Reader 是免费的吗?
是的,Usb Light Sensor Reader 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Usb Light Sensor Reader 支持哪些平台?
Usb Light Sensor Reader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux)。
谁开发了 Usb Light Sensor Reader?
由 jiahaoli(@lj-hao)开发并维护,当前版本 v1.0.2。
推荐 Skills