New WeatherAlertsModule

This commit is contained in:
nemunaire 2022-08-11 16:09:01 +02:00
commit e42a4bc1d6
3 changed files with 77 additions and 0 deletions

View file

@ -67,6 +67,11 @@ def main():
from modules.weather import WeeklyWeatherModule
image.paste(WeeklyWeatherModule().draw_module(config, int(480/1.6), 275), (480-int(480/1.6), 305))
# alerts
from modules.weather import WeatherAlertsModule
mod = WeatherAlertsModule().draw_module(config, 480, 200)
image.paste(mod, (0, 580-mod.height-5), mod)
# températures
from modules.weather import WeatherTemperatureModule
image.paste(WeatherTemperatureModule().draw_module(config, 480, 200), (0, 580))