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

Changing gauges to progress bars?

Open C4Wiz opened this issue 3 years ago • 1 comments

im trying to change the cpu usage and cpu temp grom gauges to progress bars, but the progress bar only displays %

here is my temperature.conf (it's messy)

########################################################################
# Extract CPU Temperature information
#  Page: 1
#  Information               Status     Statistics
#  - cpu temperature         - yes      - yes
#
# Note: Rounding temperatures to two digits is done with the
#  post-processiing formula: sprintf("%.2f", $1/1000)
#  It is possible to roud to 1 digit with sprintf("%.1f", $1/1000)
########################################################################
dynamic.12.name=soc_temp
dynamic.12.source=/sys/devices/virtual/thermal/thermal_zone0/temp
dynamic.12.regexp=(.*)
dynamic.12.postprocess=sprintf("%.1f", $1/1000)
dynamic.12.rrd=GAUGE

web.status.1.content.4.name=CPU Temp
web.status.1.content.4.icon=cpu_temp.png
web.status.1.content.4.line.1=ProgressBar(data.soc_temp, 75, 10, 66, 33, "°C")
Screen Shot 2021-04-17 at 8 54 29 AM

C4Wiz avatar Apr 17 '21 12:04 C4Wiz

Hello. I faced the same problem, but you cant remove % without modifying the code, because the % is hardcoded. https://github.com/XavierBerger/RPi-Monitor/blob/d75e752f433ccfd35c1d1ef6482d97691073a6a0/src/usr/share/rpimonitor/web/js/rpimonitor.utils.js#L100

psa-jforestier avatar Aug 25 '21 15:08 psa-jforestier