-
Notifications
You must be signed in to change notification settings - Fork 7
/
scrape.yaml
129 lines (129 loc) · 4.37 KB
/
scrape.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Thanks NetWitch!
# https://community.home-assistant.io/t/help-request-pollen-sensor-dutch-hooikoortsradar-nl/524633/20
- resource: https://www.kleenex.nl/api/sitecore/Pollen/GetPollenContentCity
method: POST
payload: !secret pollen_city
headers:
User-Agent: Home Assistant
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
scan_interval: 3600
sensor:
- name: Pollen (gras)
select: "li.day-container:nth-child(1) > button"
attribute: "data-grass-count"
unique_id: pollen_gras
unit_of_measurement: ppm
value_template: >-
{{ value.split(" ")[0] }}
- name: Pollen (Poaceae)
select: "li.day-container:nth-child(1) > button"
attribute: "data-grass-detail"
unique_id: pollen_poaceae
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[1] }}
- name: Pollen (kruiden)
select: "li.day-container:nth-child(1) > button"
attribute: "data-weeds-count"
unique_id: pollen_kruiden
unit_of_measurement: ppm
value_template: >-
{{ value.split(" ")[0] }}
- name: Pollen (Bijvoet)
select: "li.day-container:nth-child(1) > button"
attribute: "data-weed-detail"
unique_id: pollen_bijvoet
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[1] }}
- name: Pollen (Ganzevoet)
select: "li.day-container:nth-child(1) > button"
attribute: "data-weed-detail"
unique_id: pollen_ganzevoet
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[3] }}
- name: Pollen (Ambrosia)
select: "li.day-container:nth-child(1) > button"
attribute: "data-weed-detail"
unique_id: pollen_ambrosia
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[5] }}
- name: Pollen (Brandnetel)
select: "li.day-container:nth-child(1) > button"
attribute: "data-weed-detail"
unique_id: pollen_brandnetel
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[7] }}
- name: Pollen (bomen)
select: "li.day-container:nth-child(1) > button"
attribute: "data-trees-count"
unique_id: pollen_bomen
unit_of_measurement: ppm
value_template: >-
{{ value.split(" ")[0] }}
- name: Pollen (Hazelaar)
select: "li.day-container:nth-child(1) > button"
attribute: "data-tree-detail"
unique_id: pollen_hazelaar
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[1] }}
- name: Pollen (Iep)
select: "li.day-container:nth-child(1) > button"
attribute: "data-tree-detail"
unique_id: pollen_iep
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[3] }}
- name: Pollen (Pijnboom)
select: "li.day-container:nth-child(1) > button"
attribute: "data-tree-detail"
unique_id: pollen_pijnboom
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[5] }}
- name: Pollen (Els)
select: "li.day-container:nth-child(1) > button"
attribute: "data-tree-detail"
unique_id: pollen_els
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[7] }}
- name: Pollen (Populier)
select: "li.day-container:nth-child(1) > button"
attribute: "data-tree-detail"
unique_id: pollen_populier
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[9] }}
- name: Pollen (Eik)
select: "li.day-container:nth-child(1) > button"
attribute: "data-tree-detail"
unique_id: pollen_eik
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[11] }}
- name: Pollen (Plataan)
select: "li.day-container:nth-child(1) > button"
attribute: "data-tree-detail"
unique_id: pollen_plataan
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[13] }}
- name: Pollen (Berk)
select: "li.day-container:nth-child(1) > button"
attribute: "data-tree-detail"
unique_id: pollen_berk
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[15] }}
- name: Pollen (Cipres)
select: "li.day-container:nth-child(1) > button"
attribute: "data-tree-detail"
unique_id: pollen_cipres
unit_of_measurement: ppm
value_template: >-
{{ value.split(",")[17] }}