Skip to content

Instantly share code, notes, and snippets.

@pravic
Created July 13, 2023 13:39
Show Gist options
  • Save pravic/ea7f5c72e391669c70ccd48afb07da37 to your computer and use it in GitHub Desktop.
Save pravic/ea7f5c72e391669c70ccd48afb07da37 to your computer and use it in GitHub Desktop.
RPi-Monitor temperature sensors for Orange PI 5 Plus
########################################################################
# Orange Pi 5+ Temperature sensors information
# Page: 1
# Information Status Statistics
# - SOC temperature - yes - yes
# - bigcore0 temperature - yes - yes
# - bitcore1 temperature - yes - yes
# - littlecore temperature - yes - yes
# - center temperature - no - yes
# - GPU temperature - yes - yes
# - NPU 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.1.name=soc_temp
dynamic.1.source=/sys/devices/virtual/thermal/thermal_zone0/temp
dynamic.1.regexp=(.*)
dynamic.1.postprocess=sprintf("%.1f", $1/1000)
dynamic.1.rrd=GAUGE
dynamic.2.name=bigcore0
dynamic.2.source=/sys/devices/virtual/thermal/thermal_zone1/temp
dynamic.2.regexp=(.*)
dynamic.2.postprocess=sprintf("%.1f", $1/1000)
dynamic.2.rrd=GAUGE
dynamic.3.name=bigcore1
dynamic.3.source=/sys/devices/virtual/thermal/thermal_zone2/temp
dynamic.3.regexp=(.*)
dynamic.3.postprocess=sprintf("%.1f", $1/1000)
dynamic.3.rrd=GAUGE
dynamic.4.name=littlecore
dynamic.4.source=/sys/devices/virtual/thermal/thermal_zone3/temp
dynamic.4.regexp=(.*)
dynamic.4.postprocess=sprintf("%.1f", $1/1000)
dynamic.4.rrd=GAUGE
dynamic.5.name=center
dynamic.5.source=/sys/devices/virtual/thermal/thermal_zone4/temp
dynamic.5.regexp=(.*)
dynamic.5.postprocess=sprintf("%.1f", $1/1000)
dynamic.5.rrd=GAUGE
dynamic.6.name=gpu
dynamic.6.source=/sys/devices/virtual/thermal/thermal_zone5/temp
dynamic.6.regexp=(.*)
dynamic.6.postprocess=sprintf("%.1f", $1/1000)
dynamic.6.rrd=GAUGE
dynamic.7.name=npu
dynamic.7.source=/sys/devices/virtual/thermal/thermal_zone6/temp
dynamic.7.regexp=(.*)
dynamic.7.postprocess=sprintf("%.1f", $1/1000)
dynamic.7.rrd=GAUGE
web.status.1.content.4.name=Temperature
web.status.1.content.4.icon=cpu_temp.png
web.status.1.content.4.line.1=JustGageBar("CPU 0 Temperature", data.bigcore0+"°C", 20, data.bigcore0, 80, 100, 80)+" "+JustGageBar("CPU 1 Temperature", data.bigcore1+"°C", 20, data.bigcore1, 80, 100, 80)+" "+JustGageBar("CPU 2 Temperature", data.littlecore+"°C", 20, data.littlecore, 80, 100, 80)
web.status.1.content.4.line.2=JustGageBar("GPU Temperature", data.gpu+"°C", 20, data.gpu, 80, 100, 80)+" "+JustGageBar("NPU Temperature", data.npu+"°C", 20, data.npu, 80, 100, 80)+" "+JustGageBar("SOC Temperature", data.soc_temp+"°C", 20, data.soc_temp, 80, 100, 80)
web.statistics.1.content.8.name=Temperature
web.statistics.1.content.8.graph.1=soc_temp
web.statistics.1.content.8.graph.2=bigcore0
web.statistics.1.content.8.graph.3=bigcore1
web.statistics.1.content.8.graph.4=littlecore
web.statistics.1.content.8.graph.5=center
web.statistics.1.content.8.graph.6=gpu
web.statistics.1.content.8.graph.7=npu
web.statistics.1.content.8.ds_graph_options.soc_temp.label=SOC temperature (°C)
web.statistics.1.content.8.ds_graph_options.bigcore0.label=CPU 0 temperature (°C)
web.statistics.1.content.8.ds_graph_options.bigcore1.label=CPU 1 temperature (°C)
web.statistics.1.content.8.ds_graph_options.littlecore.label=CPU 2 temperature (°C)
web.statistics.1.content.8.ds_graph_options.center.label=Center temperature (°C)
web.statistics.1.content.8.ds_graph_options.gpu.label=GPU temperature (°C)
web.statistics.1.content.8.ds_graph_options.npu.label=NPU temperature (°C)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment