스킬로 돌아가기
dht11-temp
noahseeger 제작
Smart Home & IoT—아직 평가 없음
내 평가
요약
Read temperature and humidity from DHT11 sensor.
설명
이 스킬이 하는 일
Reads temperature and humidity from a DHT11 sensor connected to a Raspberry Pi. The GPIO pin is configurable via CLI argument or environment variable, defaulting to pin 19.
Supports both CLI argument and environment variable pin configuration, making it easy to use in automated scripts without editing code.
사용 시점
- Logging greenhouse temperature every 30 minutes via cron
- Monitoring humidity in a server room or basement
- Building a home weather station with a Pi
- Alerting when humidity exceeds a threshold in a script
- Capturing sensor data to a file for later analysis
예시 워크플로
입력
User asks: read the current temperature and humidity from the DHT11 on GPIO 4
에이전트
- 1
Sets DHT_PIN=4 or passes 4 as a CLI argument
- 2
Runs sudo python3 scripts/dht/main.py 4
- 3
Captures stdout output
- 4
Parses line 1 as temperature in Celsius and line 2 as humidity percentage
출력
Temperature: 22.5°C, Humidity: 58%
요구 사항
- Raspberry Pi with GPIO pins
- DHT11 sensor and 10K pull-up resistor (hardware)
- RPi.GPIO Python package (pip3 install RPi.GPIO)
설치
clawhub install noahseeger/dht11-tempCLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.