weather: Restore darkskyapi through openweathermap
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2024-05-13 09:41:45 +02:00
commit b3f79020f4
3 changed files with 258 additions and 195 deletions

View file

@ -104,11 +104,7 @@ def main(only_on_coming_evt=False, ignore_module=[], force_coming_event=True, ex
if occuped_space < 250:
# weekly weather
from modules.weather import WeeklyWeatherModule
shape.append(WidgetPlacement(WeeklyWeatherModule, size=(int(480/1.6), 165), position=(480-int(480/1.6), NEXT_STOP_Y + occuped_space + (5 if occuped_space else 0))))
# air quality
from modules.weather import WeatherAirQualityModule
shape.append(WidgetPlacement(WeatherAirQualityModule, size=(int(480/1.6), 100), position=(480-int(480/1.6), NEXT_STOP_Y + 165 + occuped_space + (5 if occuped_space else 0))))
shape.append(WidgetPlacement(WeeklyWeatherModule, size=(int(480/1.6), 265), position=(480-int(480/1.6), NEXT_STOP_Y + occuped_space + (5 if occuped_space else 0))))
# RATP weather
major_lines = ["M7", "M14", "RB", "TT3A"]