Fix weather alerts with empty phenomena
[khatus.git] / bin / khatus_controller
index c67e640..da1c84d 100755 (executable)
     db["mpd_status_percent"] = $3
 }
 
-/^OK in:WEATHER/\
+/^OK in:WEATHER temperature/\
 {
+    shift()
     shift()
     shift()
     db["weather_temperature"] = $0
 }
 
+/^OK in:WEATHER phenomenon/\
+{
+    shift()
+    shift()
+    shift()
+    alert_trigger_low("weather_phenomenon", "WeatherPhenomenon", $0)
+}
+
 /^OK in:DATE_TIME/\
 {
     shift()
This page took 0.028876 seconds and 4 git commands to generate.