فهرست منبع

#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)