Skip to content

Commit

Permalink
fix: Inverted wind directions (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyKh authored Oct 23, 2024
1 parent 5b40296 commit 2cb3590
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions custom_components/ims/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,23 +140,23 @@
# Based on https://ims.gov.il/en/wind_directions
WIND_DIRECTIONS = {
0: None,
1: float(180),
2: float(203),
3: float(225),
4: float(248),
5: float(270),
6: float(293),
7: float(315),
8: float(338),
9: float(360),
10: float(23),
11: float(45),
12: float(68),
13: float(90),
14: float(113),
15: float(135),
16: float(158),
17: float(180),
1: float(360),
2: float(23),
3: float(45),
4: float(68),
5: float(90),
6: float(113),
7: float(135),
8: float(150),
9: float(180),
10: float(203),
11: float(225),
12: float(248),
13: float(270),
14: float(293),
15: float(315),
16: float(338),
17: float(0),
}

# Based on https://ims.gov.il/en/weather_codes
Expand Down Expand Up @@ -217,4 +217,4 @@
"1570": "mdi:weather-dust",
"1580": "mdi:weather-sunny-alert",
"1590": "mdi:snowflake-alert",
}
}

0 comments on commit 2cb3590

Please sign in to comment.