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
Next revisionBoth sides next revision
check_mk_meteohub_linux [2014/06/30 18:34] – [Check_MK - Meteohub script] admincheck_mk_meteohub_linux [2014/06/30 19:02] admin
Line 25: Line 25:
       ;;       ;;
      th1)      th1)
-      echo "0 sensor-$th1 temp=${arr[2]};30;35;10;40|hum=${arr[3]};;;0;100|dew=${arr[4]} Temp: ${arr[2]} deg. Celcius"+      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" 
 +      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" 
 +      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" 
 +      fi
       ;;       ;;
      thb0)      thb0)
check_mk_meteohub_linux.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1