mirror of
https://github.com/ShaYmez/HBMonv2.git
synced 2025-09-05 06:37:52 -04:00
Update graph.sh
This commit is contained in:
parent
7dbeb215b8
commit
2a418affba
@ -5,6 +5,7 @@
|
|||||||
# Temperature CPU (not working for VPS)
|
# Temperature CPU (not working for VPS)
|
||||||
|
|
||||||
# Disable = false or enable = true create graph fortemperature CPU
|
# Disable = false or enable = true create graph fortemperature CPU
|
||||||
|
# set "false" for VPS
|
||||||
|
|
||||||
tempcpu=true
|
tempcpu=true
|
||||||
|
|
||||||
@ -17,14 +18,16 @@ if [[ -f "$FILE" ]]; then
|
|||||||
tempC=`cat /sys/class/thermal/thermal_zone0/temp |awk '{printf("%.1f",$1)}'`
|
tempC=`cat /sys/class/thermal/thermal_zone0/temp |awk '{printf("%.1f",$1)}'`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# For compuers not like Raspberry PI install package
|
|
||||||
|
# For platform not like Raspberry PI install package
|
||||||
# apt install lm-sensors
|
# apt install lm-sensors
|
||||||
# and run: sensors-detect
|
# and run: sensors-detect
|
||||||
# after this check result run command: sensors to see temperature CPU, if no set above tempcpu=false
|
# after this check result run command: sensors to see temperature CPU, if no set above tempcpu=false
|
||||||
|
|
||||||
# Remove when use for Raspberry PI (see above)
|
# Remove when use for Raspberry PI (see above)
|
||||||
|
if $tempcpu == "True" ; then
|
||||||
tempC=`sensors | grep -i "Core 0" | grep "$1" | sed -re "s/.*:[^+]*?[+]([.0-9]+)[ °]C.*/\1/g"`
|
tempC=`sensors | grep -i "Core 0" | grep "$1" | sed -re "s/.*:[^+]*?[+]([.0-9]+)[ °]C.*/\1/g"`
|
||||||
|
fi
|
||||||
|
|
||||||
#=====================================
|
#=====================================
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user