Fix weather alerts with empty phenomena
[khatus.git] / bin / khatus_parse_metar_d_output
index 760ecd9..b228390 100755 (executable)
@@ -38,7 +38,10 @@ END {
         temp_fahrenheit = (temp_celsius * (9 / 5)) + 32
         print "temperature " temp_fahrenheit "°F"
         for (i=first["Phenomena"]; i<=last["Phenomena"]; i++) {
-            print "phenomena " values[i]
+            phenomenon = values[i]
+            if (phenomenon) {
+                print "phenomenon " phenomenon
+            }
         }
     }
 }
This page took 0.027601 seconds and 4 git commands to generate.