syntaktische Fehler behoben

This commit is contained in:
Patrick Schindelmann 2022-02-10 20:05:00 +00:00
parent 21cb7cf026
commit e9a65fbbd6
1 changed files with 7 additions and 0 deletions

View File

@ -208,9 +208,16 @@ STATUS_CRITICAL=0
STATUS_WARNING=0
STATUS_OK=0
for sensor in $SENSORS
do
echo
done
for wert in $($DIGITEMP_EXEC -c "$CONFIG_PATH" -a -o"%s;%R;%.0C;%.0F" -q)
do
#Ausgabe aller Sensoren als Nummer und Hex
#grep "^ROM " .digitemprc | sed -e 's/ 0x/;/' -e 's/ROM //' -e 's/ 0x//g'
sensor_id=$(echo "$wert" | cut -d ";" -f 1)
sensor_hex=$(echo "$wert" | cut -d ";" -f 2)
celsius=$(echo "$wert" | cut -d ";" -f 3)