CPU temperature display

In the settings tab, display the host CPU temperature
Vu le retour des températures estivales, j’ai constaté quelques plantages aléatoires.
Après investigation, j’ai pu constater que c’était une surchauffe du RPi.
Je lui ai donc ajouté un petit ventilateur qui semble avoir résolu le problème.
Toutefois, plutôt que d’aller en SSH (vcgencmd measure_temp) pour contrôler ça, serait-il possible d’afficher la température directement dans l’onglet ‹ système › ?

On the Node-RED tutorial, if I’m not mistaken, Pierre Gilles explains how to display the temperature.
To be confirmed.

It’s CPU usage, but the same principle.

Hello @GBoulvin

I don’t know if this can help you, but I had the same overheating issue, so

@GBoulvin

Here’s what I propose:

Oh yes, that’s great!

Maybe put ‹ CPU temperature › to avoid any doubt?

I tried but it takes up too much space when in extended display.
It works on a mobile display, though.

@GBoulvin, here is a Docker image if you want to test it

willde71/gladys-test:cpu_temperature

I agree! In a home automation project interface, it’s confusing :slight_smile:

I’m sure we can find a workaround :slight_smile:

And for mobile, is T° CPU understandable enough (at least in French)?
For the icon, I would use a thermometer if we can change it, I find it more descriptive.

I’ll do some tests tonight

On a Gladys instance installed in a VM, so no temperature visible:

@prohand, I made a change to try reading the temperature on a VM, in which case the box won’t be displayed. I’ll update the image tomorrow, I won’t have time tonight

@mutmut, what do you think about it now?

I love it!

@prohand I didn’t have time to test on a VM, but the image is up to date

edit: it’s OK on a Proxmox LXC

Keep me posted about the VM

@Will_71 It’s okay on my end on a VM :slight_smile:

@pierre-gilles, the PR

@Will_71 You’ll be careful, the tests aren’t passing :slight_smile:

I saw it but I didn’t have time to see why

There are 303 failing tests, so in my opinion you must have broken something :joy: