https://github.com/filipnet/nodered-dwd-pollination
Get pollination data from DWD (Deutscher Wetterdienst) extract relevant in Node-RED and publish to MQTT
https://github.com/filipnet/nodered-dwd-pollination
dwd flow node-red pollination weather
Last synced: 4 months ago
JSON representation
Get pollination data from DWD (Deutscher Wetterdienst) extract relevant in Node-RED and publish to MQTT
- Host: GitHub
- URL: https://github.com/filipnet/nodered-dwd-pollination
- Owner: filipnet
- License: bsd-3-clause
- Created: 2020-05-18T10:57:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T06:56:57.000Z (almost 6 years ago)
- Last Synced: 2025-05-17T12:13:31.361Z (about 1 year ago)
- Topics: dwd, flow, node-red, pollination, weather
- Homepage: https://www.filipnet.de
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodered-dwd-pollination
Get pollination data from DWD (Deutscher Wetterdienst) extract relevant in Node-RED and publish to MQTT

To stay informed about the current pollen count in your area, opendata of the Deutscher Wetterdienst can be downloaded here
https://opendata.dwd.de/climate_environment/health/alerts/s31fg.json
The JSON-file is for all of Germany, to get the values that are interesting for you personally you can build a Node-RED flow.
You can find an example in the GitHUB repository: ***flows-pollination.json***
## FEATURES
- Connect to DWD opendata website
- Get JSON-file https://opendata.dwd.de/climate_environment/health/alerts/s31fg.json
- Parse JSON and extract relevant pollination data at region
- Publish values to MQTT
## FUNCTION NODE
```
region = 19; //19 = Rheinland-Pfalz und Saarland, Mittelgebirgsbereich Rheinland-Pfalz
var messagetext = "Hasel: "+ msg.payload.content[region].Pollen.Hasel.today+"\nBirken: " + msg.payload.content[region].Pollen.Birke.today+"\nGräser: " + msg.payload.content[region].Pollen.Graeser.today;
msg.payload = messagetext;
return msg;
```
Legend
- 3 = "high pollination"
- 2-3 = "medium to high pollination"
- 2 = "medium pollination"
- 1-2 = "low to medium pollination"
- 1 = "low pollination"
- 0-1 = "no to low pollination"
- 0 = "no pollination"
### EXAMPLE IN MQTTDASH

## LICENSE
nodered-dwd-pollination and all individual scripts are under the BSD 3-Clause license unless explicitly noted otherwise. Please refer to the LICENSE