Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


check_mk_meteohub_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
check_mk_meteohub_linux [2014/06/30 19:02] admincheck_mk_meteohub_linux [2014/06/30 19:03] admin
Line 27: Line 27:
       if [ $(echo "${arr[2]} < 30" | bc)  -eq 1 ]; then       if [ $(echo "${arr[2]} < 30" | bc)  -eq 1 ]; then
         echo "0 sensor-$th1 temp=${arr[2]};30;35;10;40|hum=${arr[3]};;;0;100|dew=${arr[4]} Temp: ${arr[2]} deg. Celcius"         echo "0 sensor-$th1 temp=${arr[2]};30;35;10;40|hum=${arr[3]};;;0;100|dew=${arr[4]} Temp: ${arr[2]} deg. Celcius"
-      elif [ $(echo "${arr[2]} >=  30" | bc) -eq 1 -a $(echo "${arr[2]} <35" | bc) -eq 1 ]; then+      elif [ $(echo "${arr[2]} >=  30" | bc) -eq 1 -a $(echo "${arr[2]} < 35" | bc) -eq 1 ]; then
         echo "1 sensor-$th1 temp=${arr[2]};30;35;10;40|hum=${arr[3]};;;0;100|dew=${arr[4]} Temp: ${arr[2]} deg. Celcius"         echo "1 sensor-$th1 temp=${arr[2]};30;35;10;40|hum=${arr[3]};;;0;100|dew=${arr[4]} Temp: ${arr[2]} deg. Celcius"
-      elif [ $(echo "${arr[2]} > 35" | bc) -eq 1 ]; then+      elif [ $(echo "${arr[2]} >35" | bc) -eq 1 ]; then
         echo "2 sensor-$th1 temp=${arr[2]};30;35;10;40|hum=${arr[3]};;;0;100|dew=${arr[4]} Temp: ${arr[2]} deg. Celcius"         echo "2 sensor-$th1 temp=${arr[2]};30;35;10;40|hum=${arr[3]};;;0;100|dew=${arr[4]} Temp: ${arr[2]} deg. Celcius"
       fi       fi
check_mk_meteohub_linux.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1