# Affichage température CPU

**URL:** <https://community.gladysassistant.com/t/affichage-temperature-cpu/7414>\
**Category:** Demandes livrées\
**Tags:** feature-core, gestion-systeme\
**Created:** [Juillet 4, 2022, 11:50 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414 "2022-07-04T11:50:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [Juillet 4, 2022, 11:50 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/1 "2022-07-04T11:50:37Z")

</div>

**Dans l’onglet paramètres, afficher la température du CPU de l’hôte**  
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 ‹&nbsp;système&nbsp;› ?

 ![Screenshot_20220704_134514_com.android.chrome](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/2/2693554c297ff3a6da48ec8feef54e0a6b89dc23.jpeg)

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [Juillet 4, 2022, 6:16 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/2 "2022-07-04T18:16:54Z")

</div>

Sur le tuto de node red si je ne me trompe pas Pierre Gilles explique comment afficher la température.  
A vérifier.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [Juillet 4, 2022, 6:26 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/3 "2022-07-04T18:26:51Z")

</div>

C’est l’usage cpu mais même principe.

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [Mars 17, 2025, 2:25 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/4 "2025-03-17T14:25:05Z")

</div>

Bonjour @GBoulvin

Je ne sais pas si ça peut t’aider, mais j’avais le même soucis de surchauffe, et j’ai donc ajouté un graphique comme celui-ci :

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/9/b/9bb33f430f3c00b99654d1e36aa5821336cd3b99.png)

C’est basé sur un topic MQTT «&nbsp;virtuel&nbsp;», tel que décrit dans la documentation de Gladys :

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/9/d91add09a5817d7abe82c9b000f3dbcb9ec936e0.png)

Et c’est via un petit script shell lancé toutes les 5 minutes depuis la crontab que l’information remonte vers le broker MQTT :

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/8/2/82cfcfed4f6961771f86193ef1ed4c9f2a14460e.png)

J’espère avoir pu aider 🙂

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juin 20, 2026, 12:31 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/5 "2026-06-20T12:31:03Z")

</div>

@GBoulvin

Voilà ce que je propose:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/3/d/3d09951b2c8aae6e51aafaa648e67d99e68ccd5b.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/9/5/95ebae5cc4766b64642e50b8f7ba3453c4b2a188.png)

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [Juin 20, 2026, 1:43 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/6 "2026-06-20T13:43:37Z")

</div>

Ah oui, c’est top !

Peut-être mettre ‹&nbsp;température CPU&nbsp;› pour éviter tout doute ?

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juin 20, 2026, 3:04 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/7 "2026-06-20T15:04:44Z")

</div>

J’ai essayé mais ca prends trop de place quand on est en affichage etendu.  
Ca passe par contre sur un affichage mobile.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juin 20, 2026, 5:58 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/8 "2026-06-20T17:58:33Z")

</div>

@GBoulvin, voila une image docker si tu veux tester

```auto
willde71/gladys-test:cpu_temperature

```

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Juin 22, 2026, 5:51 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/9 "2026-06-22T05:51:05Z")

</div>

> [@GBoulvin](#):
>
> Peut-être mettre ‹ température CPU › pour éviter tout doute ?

Je suis d’accord ! Dans une interface d’un projet domotique, ça porte à confusion 🙂

> [@Will\_71](#):
>
> J’ai essayé mais ca prends trop de place quand on est en affichage etendu.

Je suis sûr qu’on peut trouver une astuce 🙂

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [Juin 22, 2026, 8:47 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/10 "2026-06-22T08:47:00Z")

</div>

> [@Will\_71](#):
>
> J’ai essayé mais ca prends trop de place quand on est en affichage etendu.

et `T° CPU` pour le mobile, c’est assez compréhensible (en tout cas pour le français) ?  
Pour l’icône, je mettrais un thermomètre si on peut le changer, c’est plus parlant je trouve.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juin 22, 2026, 9:20 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/11 "2026-06-22T09:20:20Z")

</div>

Je ferais des essais ce soir

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Juin 22, 2026, 9:41 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/12 "2026-06-22T09:41:41Z")

</div>

Sur une instance Gladys installé dans une VM donc pas de température visible :

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/1/6/1677fc56b3dd70144da49e6853e256a41ea1ec61.png)

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juin 22, 2026, 10:06 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/13 "2026-06-22T22:06:52Z")

</div>

@prohand, j’ai fait une modif pour essayer de lire la température sur une VM, le cas échant la box ne sera pas affiché. Je met à jour l’image demain, je n’aurais pas le temps ce soir

@mutmut, qu’est ce que tu en pense maintenant?

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/b/0bda1340bc9f2fc9af65aa89b028db7654b3eded.png)

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [Juin 23, 2026, 4:38 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/14 "2026-06-23T16:38:14Z")

</div>

J’aime beaucoup !

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juin 23, 2026, 9:12 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/15 "2026-06-23T21:12:06Z")

</div>

@prohand j’ai pas eu le temps de tester sur une VM mais l’image est à jour

edit: sur un LXC proxmox c’est OK

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/6/d6e19aa1db48e45a5368a36c02b73f1d132fb007.png)

tiens moi au courant pour la VM

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Juin 23, 2026, 10:18 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/16 "2026-06-23T22:18:20Z")

</div>

@Will_71 C’est ok de mon côté sur une VM 🙂

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juin 24, 2026, 9:50 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/17 "2026-06-24T21:50:04Z")

</div>

@pierre-gilles, la PR

> <https://github.com/GladysAssistant/Gladys/pull/2575>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[\] If your changes affect the code, did you write the tests?
> \- \[\] Are tests passing? (\`npm test\` on both front/server)
> \- \[\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[\] If you are adding a new feature/service, did you run the integration comparator? (\`npm run compare-translations\` on front)
> \- \[\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[forum\](https://community.gladysassistant.com/)) for testing before merging.
> \- \[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> https://community.gladysassistant.com/t/affichage-temperature-cpu/7414
> 
> Add CPU temperature in system settings
> 
> \<img width="690" height="105" alt="image" src="https://github.com/user-attachments/assets/0592378e-42a7-4a9d-903a-d6e848f1b7bd" /\>
> 
> 
> 
> \## Summary by CodeRabbit
> 
> \* \*\*New Features\*\*
> \* System settings now shows a CPU temperature card when available, with a label/value and color-coded indicator by temperature thresholds.
> \* System information now refreshes automatically every 30 seconds.
> \* \*\*Bug Fixes\*\*
> \* Improved CPU temperature detection to safely handle missing or unreadable sysfs data and omit the value when unavailable.
> \* \*\*Documentation\*\*
> \* Added multilingual UI translations for the CPU temperature label and \`{{value}} °C\` display format.
> \* \*\*User Experience\*\*
> \* Refreshed responsive layout/styling for system summary cards.
> \* \*\*Tests\*\*
> \* Added unit tests covering CPU temperature parsing and sysfs detection fallbacks.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Juin 26, 2026, 3:07 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/18 "2026-06-26T15:07:02Z")

</div>

@Will_71 Tu feras attention les tests ne passent pas 🙂

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juin 26, 2026, 3:07 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/19 "2026-06-26T15:07:49Z")

</div>

J’ai vu mais je n’ai pas eu le temps de voir pourquoi

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Juin 26, 2026, 3:20 UTC](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414/20 "2026-06-26T15:20:44Z")

</div>

Il y a 303 tests en échec donc à mon avis tu as dû casser quelque chose 😂

[Page suivante](https://community.gladysassistant.com/t/affichage-temperature-cpu/7414.md?page=2)
