Change wind scale
continuous-integration/drone/push Build is passing Details

This commit is contained in:
nemunaire 2023-11-02 09:26:46 +01:00
parent 8ad97bfca3
commit c9b94560ed
1 changed files with 5 additions and 2 deletions

View File

@ -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: