Skip to content

Commit da84a0b

Browse files
committed
Adding missing wind directions
1 parent 3d69a11 commit da84a0b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

custom_components/knmi/const.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Base component constants.
1717
NAME = "KNMI"
1818
DOMAIN = "knmi"
19-
VERSION = "1.0.1"
19+
VERSION = "1.0.2"
2020
ATTRIBUTION = "KNMI Weergegevens via https://weerlive.nl/"
2121

2222
# Icons.
@@ -52,19 +52,24 @@
5252

5353
# Map wind direction from KNMI string to number.
5454
WIND_DIRECTION_MAP = {
55+
"VAR": 0,
5556
"N": 360,
57+
"Noord": 360,
5658
"NNO": 22.5,
5759
"NO": 45,
5860
"ONO": 67.5,
5961
"O": 90,
62+
"Ooost": 90,
6063
"OZO": 112.5,
6164
"ZO": 135,
6265
"ZZO": 157.5,
6366
"Z": 180,
67+
"Zuid": 180,
6468
"ZZW": 202.5,
6569
"ZW": 225,
6670
"WZW": 247.5,
6771
"W": 270,
72+
"West": 270,
6873
"WNW": 292.5,
6974
"NW": 315,
7075
"NNW": 337.5,

custom_components/knmi/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"documentation": "https://github.com/golles/ha-knmi/",
55
"iot_class": "cloud_polling",
66
"issue_tracker": "https://github.com/golles/ha-knmi//issues",
7-
"version": "1.0.1",
7+
"version": "1.0.2",
88
"config_flow": true,
99
"codeowners": [
1010
"@golles"

0 commit comments

Comments
 (0)