Skip to content

DWD Pollenflug Binding ​

The "Deutsche Wetterdienst" (DWD) reports the current pollen count index for Germany on a daily base and a forecast for tomorrow and the day after tomorrow. This binding allows you to retrieve this data for your region or partregion. You can find a map of the data in the DWD Pollenflug map

Supported Things ​

This binding supports a bridge thing (bridge), which polls the dataset for Germany in an adjustable interval. And it supports a region thing (region), representing the data for all pollen types of a region or partregion.

Discovery ​

This binding adds a default bridge thing to the Inbox. This can be used for region things you may add manually.

Thing Configuration ​

Bridge ​

ParameterDefaultRequiredDescription
refresh30noDefine the interval for polling the data from DWD in minutes. Minimum is 15 minutes.

Region ​

ParameterDefaultRequiredDescription
regionID-yesThe id of the region. The available options are in the table below.

Manual region or partregion selection ​

The region ID is the partregion_id or if there is no partregion the region_id from the DWD pollenflug JSON data. You can refer to the following table.

regionIDRegionPartregion
11Schleswig-Holstein und HamburgInseln und Marschen
12Schleswig-Holstein und HamburgGeest, Schleswig-Holstein und Hamburg
20Mecklenburg-Vorpommern-
31Niedersachsen und BremenWestl. Niedersachsen/Bremen
32Niedersachsen und BremenÖstl. Niedersachsen
41Nordrhein-WestfalenRhein.-Westfäl. Tiefland
42Nordrhein-WestfalenOstwestfalen
43Nordrhein-WestfalenMittelgebirge NRW
50Brandenburg und Berlin-
61Sachsen-AnhaltTiefland Sachsen-Anhalt
62Sachsen-AnhaltHarz
71ThüringenTiefland Thüringen
72ThüringenMittelgebirge Thüringen
81SachsenTiefland Sachsen
82SachsenMittelgebirge Sachsen
91HessenNordhessen und hess. Mittelgebirge
92HessenRhein-Main
101Rheinland-Pfalz und SaarlandRhein, Pfalz, Nahe und Mosel
102Rheinland-Pfalz und SaarlandMittelgebirgsbereich Rheinland-Pfalz
103Rheinland-Pfalz und SaarlandSaarland
111Baden-WürttembergOberrhein und unteres Neckartal
112Baden-WürttembergHohenlohe/mittlerer Neckar/Oberschwaben
113Baden-WürttembergMittelgebirge Baden-Württemberg
121BayernAllgäu/Oberbayern/Bay. Wald
122BayernDonauniederungen
123BayernBayern n. der Donau, o. Bayr. Wald, o. Mainfranken
124BayernMainfranken

Channels ​

The bridge thing has following channels:

channeldescription
updates#refreshedHold the time of the bridge's last refresh
updates#last_updateThe time when data was last updated by DWD
updates#next_updateThe time when data will be updated next by DWD

For each of the eight pollen types reported by DWD the region thing has three channels for today, tomorrow and the day after tomorrow.

channelspollen typegerman name
alder#todayalderErle
alder#tomorrow
alder#dayafter_to
ambrosia#todayambrosiaAmbrosia
ambrosia#tomorrow
ambrosia#dayafter_to
ash#todayash-treeEsche
ash#tomorrow
ash#dayafter_to
birch#todaybirchBirke
birch#tomorrow
birch#dayafter_to
grasses#todaygrassesGräser
grasses#tomorrow
grasses#dayafter_to
hazel#todayhazelHasel
hazel#tomorrow
hazel#dayafter_to
mugwort#todaymugwortBeifuß
mugwort#tomorrow
mugwort#dayafter_to
rye#todayryeRoggen
rye#tomorrow
rye#dayafter_to

There are the following possible string values:

valuedescription
-1not specified
0no pollen pollution
0-1no to low pollen count
1low pollen count
1-2low to medium pollen count
2medium pollen count
2-3medium to high pollen count
3high pollen count

Full Example ​

Things file for region "Brandenburg und Berlin" and partregion "Bayern - Mainfranken" ​

dsl
Bridge dwdpollenflug:bridge:dwd "DWD pollen count Bridge" [refresh="15"] {
    Thing region region50 "DWD pollen count region" @ "APIS" [regionID="50"]
    Thing region partregion124 "DWD pollen count partregion" @ "APIS" [regionID="124"]
}

Items example for region "Brandenburg und Berlin" and pollen type ash-tree ​

java
String pollenTodayEsche
    "Esche [MAP(pollen.map):%s]"
    {channel="dwdpollenflug:region:dwd:region50:ash#today"}

String pollenTomorrowEsche
    "Esche morgen [MAP(pollen.map):%s]"
    {channel="dwdpollenflug:region:dwd:region50:ash#tomorrow"}

String pollenDayAfterTomorrowEsche
    "Esche übermorgen [MAP(pollen.map):%s]"
    {channel="dwdpollenflug:region:dwd:region50:ash#dayafter_to"}

Transform map file pollen.map ​

text
0=keine (0)
0-1=keine bis gering (0-1)
1=gering (1)
1-2=gering bis mittel (1-2)
2=mittel (2)
2-3=mittel bis hoch (2-3)
3=hoch (3)
-1=keine Daten
-=keine Daten
NULL=keine Daten

Sitemap example for region "Brandenburg und Berlin" and pollen type ash-tree ​

dsl
Text label="Pollenflugindex" {
    Frame {
        Text item=pollenTodayEsche
            valuecolor=[=="3"="#f00014",
                        =="2-3"="#f00014",
                        =="2"="#ff9900",
                        =="1-2"="#ff9900",
                        =="1"="#ffff00",
                        =="0-1"="#00c83c"] {
            Frame {
                Text item=pollenTodayEsche
                    valuecolor=[=="3"="#f00014",
                                =="2-3"="#f00014",
                                =="2"="#ff9900",
                                =="1-2"="#ff9900",
                                =="1"="#ffff00",
                                =="0-1"="#00c83c"]

                Text item=pollenTomorrowEsche
                    valuecolor=[=="3"="#f00014",
                                =="2-3"="#f00014",
                                =="2"="#ff9900",
                                =="1-2"="#ff9900",
                                =="1"="#ffff00",
                                =="0-1"="#00c83c"]

                Text item=pollenDayAfterTomorrowEsche
                    valuecolor=[=="3"="#f00014",
                                =="2-3"="#f00014",
                                =="2"="#ff9900",
                                =="1-2"="#ff9900",
                                =="1"="#ffff00",
                                =="0-1"="#00c83c"]
            }
        }
    }
}