Skip to content

citizen-stig/rpi-dht22-mqtt-client

Repository files navigation

Description

Simple MQTT client for DHT22 temperature and humidity sensor

MQTT client is configured with specific to AWS IoT Broker

How to start

Install dependencies

pip3 install -r requirements.txt

Adjust configuration, specify DHT22 pin, broker configuration and other options

cp config.ini.example config.ini

Configure daemon. copy service description and adjust execution command

cp dht22_mqtt.service.example dht22_mqtt.service

Make adjustments and then install service:

cp dht22_mqtt.service /etc/systemd/system/
sudo systemctl enable dht22_mqtt
sudo systemctl daemon-reload
sudo systemctl start dht22_mqtt.service
sudo systemctl status dht22_mqtt.service

About

Sends data from dht22 to mqtt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages