Alert on reported weather phenomena
[khatus.git] / bin / khatus_controller
index c67e640..587e37c 100755 (executable)
     db["mpd_status_percent"] = $3
 }
 
-/^OK in:WEATHER/\
+/^OK in:WEATHER temperature/\
 {
+    shift()
     shift()
     shift()
     db["weather_temperature"] = $0
 }
 
+/^OK in:WEATHER phenomena/\
+{
+    shift()
+    shift()
+    shift()
+    alert_trigger_low("weather_phenomena", "WeatherPhenomena", $0)
+}
+
 /^OK in:DATE_TIME/\
 {
     shift()
This page took 0.019114 seconds and 4 git commands to generate.