← 返回 Skills 市场
685
总下载
2
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install dht11-temp
功能描述
Read temperature and humidity from DHT11 sensor. Supports custom GPIO pins via CLI argument or environment variable.
使用说明 (SKILL.md)
DHT11 Temperature & Humidity Sensor
Read temperature and humidity from a DHT11 sensor.
Hardware Setup
Wiring (adjust pin as needed):
DHT11 Pinout:
─────────────
1. VCC → 5V (Pin 2 oder 4)
2. DATA → GPIO \x3CPIN> + 10K Pull-Up Widerstand → 5V
3. GND → GND (Pin 6)
Important: The 10K pull-up resistor must be connected between DATA and VCC (5V)!
Installation
# Install dependencies
pip3 install RPi.GPIO
Usage
Read Sensor (default pin 19)
sudo python3 scripts/dht/main.py
Read Sensor (custom pin)
sudo python3 scripts/dht/main.py 4 # Uses GPIO 4
Using Environment Variable
export DHT_PIN=4
sudo python3 scripts/dht/main.py
Output
- Line 1: Temperature (°C)
- Line 2: Humidity (%)
Customization
| Variable | Default | Description |
|---|---|---|
| DHT_PIN | 19 | GPIO pin number |
Example crontab entry
# Read every 30 minutes
*/30 * * * * sudo python3 ~/scripts/dht/main.py >> /var/log/dht.log 2>&1
安全使用建议
This skill appears to do exactly what it says: read a DHT11 sensor on a Raspberry Pi. Before installing, verify the script path (SKILL.md examples reference scripts/dht/main.py but the file is scripts/main.py), and update cron/examples accordingly. Install RPi.GPIO with pip3 as instructed and run with sudo (GPIO access commonly requires root). Note there is a minor bug: the script's return and the variable names in main may swap temperature/humidity output — test it once interactively to confirm output order. There is no network or credential access in the code, so there are no obvious exfiltration concerns.
功能分析
Type: OpenClaw Skill
Name: dht11-temp
Version: 1.0.0
The OpenClaw skill bundle is designed to read temperature and humidity from a DHT11 sensor. It requires `sudo` privileges to access GPIO pins, which is a necessary and explicitly stated requirement for hardware interaction on Raspberry Pi. The `SKILL.md` instructions are clear and do not contain any prompt injection attempts. The `scripts/main.py` code correctly implements the DHT11 protocol, safely parses input arguments, and does not exhibit any malicious behaviors such as data exfiltration, unauthorized execution, or persistence mechanisms beyond the stated purpose of logging sensor data.
能力评估
Purpose & Capability
The name/description (read DHT11 on GPIO) match the included Python script which uses RPi.GPIO and reads a GPIO pin. Minor inconsistencies: SKILL.md lists RPi.GPIO among required 'bins' (RPi.GPIO is a Python module, not a binary) and examples refer to scripts/dht/main.py while the repository file is scripts/main.py.
Instruction Scope
Instructions only tell the agent to install RPi.GPIO and run the script (with sudo or via DHT_PIN env/CLI arg). They do not attempt to read unrelated files, contact external endpoints, or harvest credentials. The SKILL.md references an incorrect script path (scripts/dht/main.py) which is inconsistent with the actual file (scripts/main.py).
Install Mechanism
No automated install spec is provided (instruction-only). SKILL.md recommends pip3 install RPi.GPIO, which is proportionate and expected. Nothing is downloaded from arbitrary URLs or written by an install step.
Credentials
No credentials or sensitive environment variables are requested. The optional DHT_PIN env var is appropriate for GPIO pin configuration. No unrelated secrets or config paths are required.
Persistence & Privilege
The skill is not always-enabled and does not request elevated persistent privileges beyond the normal need to run GPIO access as root (usage shows sudo). It does not modify other skills or system-wide configs.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dht11-temp - 安装完成后,直接呼叫该 Skill 的名称或使用
/dht11-temp触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of dht11-temp.
- Read temperature and humidity from a DHT11 sensor via command line.
- Supports specifying custom GPIO pins using CLI arguments or the DHT_PIN environment variable.
- Output includes temperature (°C) and humidity (%) on separate lines.
- Setup and usage instructions provided for Raspberry Pi with RPi.GPIO.
元数据
常见问题
Dht11 Temp 是什么?
Read temperature and humidity from DHT11 sensor. Supports custom GPIO pins via CLI argument or environment variable. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 685 次。
如何安装 Dht11 Temp?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dht11-temp」即可一键安装,无需额外配置。
Dht11 Temp 是免费的吗?
是的,Dht11 Temp 完全免费(开源免费),可自由下载、安装和使用。
Dht11 Temp 支持哪些平台?
Dht11 Temp 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Dht11 Temp?
由 Noah(@noahseeger)开发并维护,当前版本 v1.0.0。
推荐 Skills