Collect data from DHT11 sensors via docker container
192
Collect data from DHT11 sensors via docker container
Main technologies used in the Docker image
Main technologies used in Raspberry Pi 3/4
Hint with commands to install
sudo apt update
sudo apt upgrade
sudo apt install raspberrypi-kernel raspberrypi-kernel-headers
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker <device-user>
sudo reboot
To use this image on the Raspberry Pi 3/4 assemble your electronic circuit as shown below
git clone https://github.com/eltonlazzarin/rpi-dht11-api-docker.git
To build run:
cd rpi-dht11-api-docker && docker image build --tag elazzar/rpi-dht11-api-docker -f Dockerfile .
To run the container:
docker compose up -d
http://<your-device-ip>:5000
http://<your-device-ip>:5000/temperature
http://<your-device-ip>:5000/humidity
This project is under the MIT license.
The source code can be found here.
Made with ♥ by Elton Lazzarin Get in touch!
docker pull elazzar/rpi-dht11-api-docker:latest