This solution comprises four main components:
-
The following three components are running in Docker containers:
-
Desktop Client: A WPF application presenting temperature and humidity data. Requires .NET Core 6.0 runtime.
-
Mobile Client: A MAUI app, still in development.
This solution is compatible with the following sensors:
To implement this solution, you will need:
- Raspberry Pi: (Tested on Pi3 & Zero; one hosts API, Agent, and DB, and the other hosts only Agent).
- DHT 22 Sensors: Available for purchase on eBay for approximately £3 each.
The easiest way to set up this solution is as follows:
-
Connect DHT Sensor to Raspberry Pi GPIO:
-
Install Docker.
-
Run Docker Compose:
- Execute 'docker-compose -f docker-compose.yml up'. This will spin up the API, Agent, and DB.
-
Monitoring Multiple Rooms:
- If monitoring multiple rooms (using additional Raspberry Pi's with DHT sensors), run another Agent and connect it to send data to the API. For example:
docker run --privileged -e API_URL={API_IP}:80 -e ROOM_NAME=demo_room -e SENSOR_MODEL=22 -e GPIO_PIN=17 -e INTERVAL_SEC=60 mcopjan/raspberry-hum-temp-agent:latest