Collect data from DHT11 sensors via docker container
Main technologies used in the Docker image
Main technologies used in Raspberry Pi 3/4
- Raspberry Pi OS (64 bit)
- Docker
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
The docker image can be found here.
This project is under the MIT license.
Made with ♥ by Elton Lazzarin 👋 Get in touch!