schmupu / ioBroker.pollenflug

Pollen risk index from DWD
MIT License
6 stars 4 forks source link
dwd iobroker pollen pollen-identification pollenflug

Logo

Pollen risk index

Travis CI Build Status AppVeyor Build Status Number of Installations Number of Installations NPM version Downloads

NPM

DWDLogo

The German Weather Service DWD prepares daily forecasts of the pollen risk index. The pollen species are predicted: hazel, alder, ash, birch, grass, rye, mugwort and ambrosia for today and tomorrow, on Friday also for the day after tomorrow (Sunday). Updated daily in the morning. Information on the pollen counties can be found at: https://www.dwd.de/pollenflug Copyright of used pollen data: © Deutscher Wetterdienst (Quelle: Deutscher Wetterdienst)

Install & Configuration

Requires node.js 8.0 or higher and Admin v3! Select the county in the ioBroker adapter configuration. You will get the pollen risk index for this county. The index will be updated once the day, around 11 o'clock. In the objects info.today, info.tomorrow and info.dayaftertomorrow the validity period will be shown. It can possible that for example today is friday but in the object info.today the day ist thursday. That is correct, because the DWD data are still from thursday and not updated till now. The update will be at 11 o'clock normaly.

Provided German counties:

ioBroker1

The original DWD risk index 0, 0-1, 1, 1-2, 2, 2-3 and 3 are changed to 0, 1, 2, 3, 4, 5 and 6. This format can more simply used in ioBroker.

Index DWD Index description
-1 -1 no data available
0 0 none pollen concentration
1 0-1 none to low pollen concentration
2 1 low pollen concentration
3 1-2 low to medium pollen concentration
4 2 average pollen concentration
5 2-3 medium to high pollen concentration
6 3 high pollen concentration

Pollen flight example: ioBroker2

ioBroker3

URL addess of the pollen images from DWD

ioBroker4

Example

If new data from DWD arrived (the today date will change), the script will show the pollen risk index for Hasel and Erle.

on({id: "pollenflug.0.info.today"/*Today*/, change: "ne"}, (obj) => {
    let hasel = getState("pollenflug.0.region#12.Hasel.text_today"/*today*/).val;
    let erle  = getState("pollenflug.0.region#12.Erle.text_today"/*today*/).val;
    console.log("Haselnuss Belastung " + hasel);
    console.log("Erle Belastung " + erle);
});

Changelog

1.0.6 (03.05.2019)

1.0.5 (29.04.2019)

1.0.4 (19.10.2019)

1.0.3 (12.04.2019)

1.0.2 (12.03.2019)

1.0.1 (11.03.2019)

1.0.0 (10.03.2019)

0.1.9 (25.02.2019)

0.1.8 (24.02.2019)

0.1.6 (20.02.2019)

License

The MIT License (MIT)

Copyright (c) 2020 Thorsten Stueben thorsten@stueben.de / https://github.com/schmupu

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.