Skip to content

Commit 6b2c548

Browse files
authored
Merge pull request #62 from TheFinalJoke/fix_weather_key_error
Fixed conditions
2 parents 5dbc884 + 99a7c83 commit 6b2c548

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

matrix/weathermatrix.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def render_icon(self, api: Weather) -> None:
6464
# Snow Class
6565
owm_icon = 600
6666
color: Tuple[int] = (255,255,255)
67+
elif owm_wxcode in range(700, 780):
68+
owm_icon = 711
69+
color: Tuple[int] = (192, 192, 192)
6770
elif owm_wxcode == 800:
6871
# Sunny
6972
if api.get_sunset > datetime.now():

0 commit comments

Comments
 (0)