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