weather: Restore darkskyapi through openweathermap
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3449f1a828
commit
b3f79020f4
3 changed files with 258 additions and 195 deletions
6
main.py
6
main.py
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue