mirror of
https://github.com/ShaYmez/HBMonv2.git
synced 2024-12-14 13:36:35 -05: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
|
||||
|
||||
tempcpu=true
|
||||
tempcpu=false
|
||||
|
||||
# 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
|
||||
|
||||
# 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"`
|
||||
fi
|
||||
|
||||
#=====================================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user