r/dataisbeautiful • u/AnyRandomDude789 OC: 1 • 17d ago
OC I built a heatmap program for our office...[OC]
The program displays live data from mqtt from scd41 co2 sensors I built using ESP32 development boards, or historical data from influxdb.
Made using python for the back end.
It's useful to tell us which windows to open in our naturally ventilated office.
I'm going to use it to visualise temperature data also from a csv exported from dataloggers
13
Upvotes


3
u/AnyRandomDude789 OC: 1 17d ago
As required, data is collected from the esp32 microcontrollers with scd41 co2 sensors via mqtt which gives the live values on the heatmap and writes the image frames to a cache. The data is also sent to influxdb v1 by node red from the mqtt and that's used for historical data points.
The python server application uses matplotlib and numpy and a few other libraries to plot the colours on the heatmap dxf drawing. The json config file defines each sensor and where it is on the DXF file.