Skip to content

Commit

Permalink
Handle foggy
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Feb 6, 2025
1 parent e04700d commit c982df2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ class TransitData:


class WeatherCondition(StrEnum):
SUNNY = auto()
MOSTLY_SUNNY = auto()
RAINY = auto()
CLEAR = auto()
CLEAR_NIGHT = auto()
CLOUDY = auto()
CLOUDY_NIGHT = auto()
CLEAR_NIGHT = auto()
FOG = auto()
MOSTLY_SUNNY = auto()
RAINY = auto()
SNOWY = auto()
SUNNY = auto()
THUNDERSTORM = auto()
CLEAR = auto()
FOG = auto()

@classmethod
def from_weather_code(cls, weather_code: int, *, is_day: bool) -> WeatherCondition:
Expand Down
1 change: 1 addition & 0 deletions src/app/tidbyt_app/trains_and_bikes.star
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ CONDITION_ICONS = {
"clear_night": WEATHER_ICONS["moony.png"],
"cloudy": WEATHER_ICONS["cloudy.png"],
"cloudy_night": WEATHER_ICONS["moony.png"],
"fog": WEATHER_ICONS["foggy.png"],
"mostly_sunny": WEATHER_ICONS["sunnyish.png"],
"rainy": WEATHER_ICONS["rainy.png"],
"snowy": WEATHER_ICONS["snowy.png"],
Expand Down

0 comments on commit c982df2

Please sign in to comment.