grap.sh script modified

This commit is contained in:
Waldek 2021-06-02 16:14:36 +02:00 committed by GitHub
parent 3cd28744cf
commit 8dca33aea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
#=====================================