RPi-Monitor icon indicating copy to clipboard operation
RPi-Monitor copied to clipboard

CPU Temperature range: How to start from 0C rather than 40C

Open spxak1 opened this issue 3 years ago • 4 comments

Currently the CPU temperature range is 40-80C and I can see why, however at lower temperatures the gauge doesn't show anything visual.

What is a way to change the range of that gauge to go from 0C to 80C? I appreciate that 0C is not realistic, but it will offer a better scale to that gauge, that will put 40ish C right in the middle, with lower temperatures than 40C visually shown as less than half, and more than 40C more than half. An easy way to tell what's happening with one look.

Thank you.

spxak1 avatar Feb 18 '21 09:02 spxak1

edit this file: /etc/rpimonitor/template/temperature.conf

find this line: web.status.1.content.1.line.1=JustGageBar("CPU Temperature", data.soc_temp+"°C", 40, data.soc_temp, 80, 100, 80)

to: web.status.1.content.1.line.1=JustGageBar("CPU Temperature", data.soc_temp+"°C", 0, data.soc_temp, 100, 100, 80)

https://xavierberger.github.io/RPi-Monitor-docs/24_web.html

telemaxx avatar Feb 18 '21 18:02 telemaxx

don't forget to restart service or complete PI

telemaxx avatar Feb 18 '21 18:02 telemaxx

edit this file: /etc/rpimonitor/template/temperature.conf

find this line: web.status.1.content.1.line.1=JustGageBar("CPU Temperature", data.soc_temp+"°C", 40, data.soc_temp, 80, 100, 80)

to: web.status.1.content.1.line.1=JustGageBar("CPU Temperature", data.soc_temp+"°C", 0, data.soc_temp, 100, 100, 80)

https://xavierberger.github.io/RPi-Monitor-docs/24_web.html

Worked like a dream. Many thanks!!!

spxak1 avatar Feb 18 '21 18:02 spxak1

You're welcome

telemaxx avatar Feb 18 '21 19:02 telemaxx