Ben Stienstra

Linux, Unix, network, radio and more...

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 revision Previous revision
check_mk_meteohub_linux [2014/06/30 21:02]
admin
check_mk_meteohub_linux [2014/06/30 21:03] (current)
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: 2014/06/30 21:03 by admin