From 8dca33aea09b28720d934336affc5b7cbbb65cd8 Mon Sep 17 00:00:00 2001 From: Waldek Date: Wed, 2 Jun 2021 16:14:36 +0200 Subject: [PATCH] grap.sh script modified --- sysinfo/graph.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sysinfo/graph.sh b/sysinfo/graph.sh index 94edf43..32693b2 100755 --- a/sysinfo/graph.sh +++ b/sysinfo/graph.sh @@ -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 #=====================================