Add air quality indicators
This commit is contained in:
parent
7b0a3dd5ac
commit
e8fd423e5f
2 changed files with 77 additions and 1 deletions
6
main.py
6
main.py
|
@ -98,7 +98,11 @@ 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), 275), position=(480-int(480/1.6), NEXT_STOP_Y + occuped_space + (5 if occuped_space else 0))))
|
||||
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))))
|
||||
|
||||
# RATP weather
|
||||
major_lines = ["M7", "M14", "RB", "TT3A"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue