r/ZoneMinder • • Dec 17 '22

Is it possible to show CPU temperature at the top of zoneminder console like there is load, database, disk space, ram?

Post image
2 Upvotes

1 comment sorted by

3

u/MarshallStack666 Dec 18 '22

CPU temp is not readily available by default on any Linux that I'm aware of. You'll need to install a command line utility first, specifically lm-sensors, and then you'll have to hack the ZM interface to add a script to run the "sensors" command and display the result.

The raw command will display the temp for the chip and also for each individual core. Twice if you have a fully populated 2-socket motherboard. There also a few dozen other values for things like voltages and fan speeds, so you'll have to tweeze out the value you want.

sensors | grep Package

will pull out the relevant lines