This flow reads the CPU temperature of the Raspberry Pi.
I use the Sense HAT on Raspberry Pi to get environment data of the room. The problem of getting the room temperature with Sense HAT is the temperature of the Raspberry Pi itself, because it influences the measurement.
By reading the CPU temperature of the Raspberry Pi, I can calculate the real temperature by using the formula temp = (cpu_temp - sensor_temp) / factor
. To calibrate the data you need to estimate the factor for the formula by comparing the real room temperature with the sensor measurements.
System command: vcgencmd measure_temp
- Raspberry Pi (I've tested 3B+ on Raspbian)
- Sense HAT (directly mounted on the Raspi)
An extended version of this node that allows the collection of other data from the vgencmd would be very useful. Perhaps pass in the parameter required via the payload.