mirror of
https://github.com/ShaYmez/HBMonv2.git
synced 2025-05-29 12:42:26 -04:00
grap.sh script modified
This commit is contained in:
parent
3cd28744cf
commit
8dca33aea0
@ -9,7 +9,7 @@ WEB_PATH='/var/www/html/'
|
|||||||
|
|
||||||
# Disable = false or enable = true create graph fortemperature CPU
|
# Disable = false or enable = true create graph fortemperature CPU
|
||||||
|
|
||||||
tempcpu=true
|
tempcpu=false
|
||||||
|
|
||||||
# Setup temperature for CPU ============
|
# Setup temperature for CPU ============
|
||||||
|
|
||||||
@ -26,8 +26,9 @@ fi
|
|||||||
# 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