{"library":"node-red-contrib-dwd-local-weather","title":"DWD Local Weather for Node-RED","description":"The `node-red-contrib-dwd-local-weather` package provides a Node-RED node for retrieving current and forecasted weather data from the Deutscher Wetterdienst (DWD), Germany's national meteorological service. Currently at version 1.0.5, this node is primarily designed for locations within Germany and a select number of European cities, leveraging the DWD's MOSMIX forecast model. It offers granular data points including temperature, relative humidity, wind speed and direction, rain probability, and expected precipitation, along with the forecast timestamp. Release cadence for Node-RED contributions like this is typically event-driven, responding to bug fixes, feature requests, or DWD API changes, rather than a fixed schedule. Its key differentiator is direct integration with DWD data, making it a specialized tool for users requiring official German weather information within their Node-RED automation flows, unlike more generalized weather APIs.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install node-red-contrib-dwd-local-weather"],"cli":null},"imports":["// Install via Node-RED Palette Manager or in Node-RED's user directory: npm install node-red-contrib-dwd-local-weather","// Drag and drop the 'DWD Local Weather' node from the Node-RED palette into your flow.","// In a subsequent function node, access data via: const temperature = msg.payload.temperature;"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Example Node-RED flow snippet (simplified JSON representation for conceptual understanding)\n// This is not executable JavaScript, but represents a Node-RED node configuration.\nconst flowConfiguration = [\n  {\n    id: 'dwd-weather-node-1', // Unique ID for the node instance\n    type: 'dwd-local-weather', // The type of the DWD weather node\n    name: 'Berlin Weather Forecast',\n    mosmixStation: '10389', // Example: Berlin, Alexanderplatz ID from DWD catalog\n    lookAheadHours: 0, // 0 for current weather, or a positive integer for future forecast\n    omitMsgOnStart: false, // Emit initial message on flow deploy\n    repeat: 3600, // Automatically repeat query every 3600 seconds (1 hour)\n    wires: [\n      ['debug-node-id'] // Connects the DWD node's output to a debug node\n    ]\n  },\n  {\n    id: 'debug-node-id',\n    type: 'debug',\n    name: 'Weather Output',\n    topic: 'DWD Data',\n    payloadType: 'msg',\n    outputType: 'json',\n    ui: true, // Display output in the Node-RED debug sidebar\n    console: false // Do not log to Node-RED console\n  }\n];\n\nconsole.log(\"This conceptual flow snippet configures a DWD weather node to fetch Berlin's current weather every hour and sends it to a debug node.\");\n// In a live Node-RED environment, this setup would automatically provide weather data.\n","lang":"javascript","description":"Demonstrates a basic Node-RED flow configuration for the DWD Local Weather node, setting a station ID and repeat interval, with output directed to a debug node.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}