Display the CPU temperature of the raspberry pi card on qt
-
Hi all ,
I am working on the raspberry pi 4 card with the qt I used a lot of sensors so I'm afraid that the card heats up so I would like to display the CPU temperature of the raspberry pi card on qt, j did a search on the internet but found nothing.
can you help me please -
Hi all ,
I am working on the raspberry pi 4 card with the qt I used a lot of sensors so I'm afraid that the card heats up so I would like to display the CPU temperature of the raspberry pi card on qt, j did a search on the internet but found nothing.
can you help me please@julie546 said in Display the temperature of the raspberry pi card on qt:
temperature of the raspberry pi card
What would that be? CPU temperature?
-
If you mean CPU temperature, it can be read from:
"/sys/class/thermal/thermal_zone0/temp"
. It returns temperature in C * 1000. So53069
means 53.069 degrees Celsius. -
If you mean CPU temperature, it can be read from:
"/sys/class/thermal/thermal_zone0/temp"
. It returns temperature in C * 1000. So53069
means 53.069 degrees Celsius. -
@sierdzio yes CPU temperature, theres any exemple please, i would like to display that on the QT
@julie546 You simply read the file /sys/class/thermal/thermal_zone0/temp
https://doc.qt.io/qt-5/qfile.html