Преглед на файлове

#5 only report precipitation if >0

Martin преди 9 години
родител
ревизия
09fb03f8f4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      voice_control/services/weather.py

+ 1 - 1
voice_control/services/weather.py

@@ -99,5 +99,5 @@ class Weather(base.BaseService):
         
         if 'precipitation' in forecast:
             v = float(forecast['precipitation']['@value'])
-            if v > -1:
+            if v > 0:
                 output.tts('precipitation: %.1f' % v)