This commit is contained in:
parent
8ad97bfca3
commit
c9b94560ed
@ -215,11 +215,14 @@ class WeatherRainModule:
|
||||
icon_path = "wi-snowflake-cold.png"
|
||||
elif thisdayweather["daily_chance_of_rain"] > 0:
|
||||
gauge.add('Pluie', [{'value': thisdayweather["daily_chance_of_rain"] + 1}])
|
||||
icon_path = "wi-umbrella.png"
|
||||
if thisdayweather["gust_kph"] > 45:
|
||||
icon_path = "wi-wind-beaufort-6.png"
|
||||
else:
|
||||
icon_path = "wi-umbrella.png"
|
||||
elif thisdayweather["uv"] > 4:
|
||||
gauge.add('Index UV', [{'value': thisdayweather["uv"] * 10}])
|
||||
icon_path = "wi-hot.png"
|
||||
elif thisdayweather["maxwind_kph"] > 50:
|
||||
elif thisdayweather["maxwind_kph"] > 40:
|
||||
gauge.add('Vent', [{'value': thisdayweather["maxwind_kph"], 'color': '#999'}])
|
||||
icon_path = "wi-strong-wind.png"
|
||||
elif thisdayweather["avgvis_km"] < 10:
|
||||
|
Loading…
Reference in New Issue
Block a user