[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"integration-node-red-contrib-dwd-local-weather\u002F":3},{"_id":4,"categories":5,"author":7,"description":10,"npmOwners":11,"npmScope":13,"name":4,"ffCertified":14,"downloads":15,"version":17,"updatedAt":18,"maintainers":19,"homepage":21,"bugs":22,"repository":24,"time":27,"lastUpdated":18,"created":28,"license":46,"githubOwner":12,"githubRepo":4,"examples":47,"readme":66},"node-red-contrib-dwd-local-weather",[6],"catalogue",{"name":8,"email":9},"Christian Stein","dev@center-tag.net","Node Red node to retrieve local weather forecast from DWD (Germany)",[12],"c5te1n",null,false,{"week":16},11424,"1.0.5","2023-01-15T14:32:44.248Z",[20],{"name":12,"email":9},"https:\u002F\u002Fgithub.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather",{"url":23},"https:\u002F\u002Fgithub.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fissues",{"type":25,"url":26},"git","git+https:\u002F\u002Fgithub.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather.git",{"created":28,"0.1.0":29,"modified":18,"0.1.1":30,"0.1.2":31,"0.1.3":32,"0.1.4":33,"0.1.5":34,"0.1.6":35,"0.1.7":36,"0.1.8":37,"0.1.9":38,"0.1.11":39,"1.0.0":40,"1.0.1":41,"1.0.2":42,"1.0.3":43,"1.0.4":44,"1.0.5":45},"2019-04-27T22:38:10.960Z","2019-04-27T22:38:11.094Z","2019-04-27T23:03:56.776Z","2019-04-28T00:37:24.398Z","2019-04-28T00:44:26.894Z","2019-05-07T19:28:10.709Z","2019-05-10T23:18:59.033Z","2019-06-20T16:33:43.057Z","2019-06-20T16:39:34.817Z","2019-09-13T22:58:50.967Z","2020-04-13T12:10:04.780Z","2020-09-06T20:09:44.978Z","2021-01-01T13:41:31.025Z","2021-01-02T12:40:53.078Z","2021-05-09T21:13:51.710Z","2022-01-16T18:19:30.696Z","2022-09-17T15:21:02.861Z","2023-01-15T14:32:44.135Z","Apache-2.0",[48,54,60],{"name":49,"path":50,"url":51,"downloadUrl":52,"flow":53},"AdditionalFieldsExampleFlow","examples\u002FAdditionalFieldsExampleFlow.json","https:\u002F\u002Fgithub.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fblob\u002Fmaster\u002Fexamples\u002FAdditionalFieldsExampleFlow.json","https:\u002F\u002Fraw.githubusercontent.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fmaster\u002Fexamples\u002FAdditionalFieldsExampleFlow.json","[{\"id\":\"6b9dad75.8e1cfc\",\"type\":\"dwdweather\",\"z\":\"c1f84551.fa0b5\",\"name\":\"Berlin, Alex\",\"mosmixStation\":\"10389\",\"lookAheadHours\":\"0\",\"additionalFields\":\"FX1,SunD1,VV\",\"repeat\":\"0\",\"x\":390,\"y\":1680,\"wires\":[[\"98ed4e40.07d5\",\"e5ef0089.cf48\",\"69ba80bb.54cfc\",\"36980239.12325e\",\"b21cfb33.0eb55\",\"47c88c29.1cea44\",\"5a984276.9804c4\"]]},{\"id\":\"9e5e1177.58e82\",\"type\":\"inject\",\"z\":\"c1f84551.fa0b5\",\"name\":\"\",\"props\":[{\"p\":\"payload\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"str\",\"x\":190,\"y\":1680,\"wires\":[[\"6b9dad75.8e1cfc\"]]},{\"id\":\"98ed4e40.07d5\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"windspeed in m\u002Fs\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.windspeed\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":730,\"y\":1800,\"wires\":[]},{\"id\":\"e5ef0089.cf48\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"wind direction in °\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.winddirection\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":740,\"y\":1860,\"wires\":[]},{\"id\":\"69ba80bb.54cfc\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"max. wind gust last hour\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.FX1\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":760,\"y\":1920,\"wires\":[]},{\"id\":\"47c88c29.1cea44\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"sunshine duration last hour in seconds\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.SunD1\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":810,\"y\":1980,\"wires\":[]},{\"id\":\"b21cfb33.0eb55\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"rel. humidity in %\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.humidity\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":730,\"y\":1740,\"wires\":[]},{\"id\":\"36980239.12325e\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"temperature in °C\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.tempc\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":740,\"y\":1680,\"wires\":[]},{\"id\":\"5a984276.9804c4\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"visibility in m\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.VV\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":720,\"y\":2040,\"wires\":[]}]",{"name":55,"path":56,"url":57,"downloadUrl":58,"flow":59},"BasicExampleFlow","examples\u002FBasicExampleFlow.json","https:\u002F\u002Fgithub.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fblob\u002Fmaster\u002Fexamples\u002FBasicExampleFlow.json","https:\u002F\u002Fraw.githubusercontent.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fmaster\u002Fexamples\u002FBasicExampleFlow.json","[{\"id\":\"c9a4786f.ee8328\",\"type\":\"inject\",\"z\":\"c1f84551.fa0b5\",\"name\":\"\",\"props\":[{\"p\":\"payload\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"str\",\"x\":210,\"y\":1320,\"wires\":[[\"63c7e662.9ec0c8\"]]},{\"id\":\"63c7e662.9ec0c8\",\"type\":\"dwdweather\",\"z\":\"c1f84551.fa0b5\",\"name\":\"Berlin, Alex\",\"mosmixStation\":\"10389\",\"lookAheadHours\":\"0\",\"additionalFields\":\"\",\"repeat\":\"0\",\"x\":390,\"y\":1320,\"wires\":[[\"52b1bc57.f3fe74\",\"7a6b8898.d8d578\"]]},{\"id\":\"52b1bc57.f3fe74\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"Temperatur in °C\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.tempc\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":610,\"y\":1320,\"wires\":[]},{\"id\":\"7a6b8898.d8d578\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"true\",\"targetType\":\"full\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":570,\"y\":1280,\"wires\":[]}]",{"name":61,"path":62,"url":63,"downloadUrl":64,"flow":65},"BasicUsageFlow","examples\u002FBasicUsageFlow.json","https:\u002F\u002Fgithub.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fblob\u002Fmaster\u002Fexamples\u002FBasicUsageFlow.json","https:\u002F\u002Fraw.githubusercontent.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fmaster\u002Fexamples\u002FBasicUsageFlow.json","[{\"id\":\"feb39059.53636\",\"type\":\"dwdweather\",\"z\":\"c1f84551.fa0b5\",\"name\":\"Berlin, Alex\",\"mosmixStation\":\"10389\",\"lookAheadHours\":\"0\",\"additionalFields\":\"\",\"repeat\":\"10\",\"x\":390,\"y\":1460,\"wires\":[[\"8159b22f.3a7f6\"]]},{\"id\":\"8159b22f.3a7f6\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"temperature in °C\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.tempc\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":620,\"y\":1460,\"wires\":[]}]","\u003Ch1 id=\"node-red-contrib-dwd-local-weather\">\u003Ca class=\"header-anchor\" href=\"#node-red-contrib-dwd-local-weather\">node-red-contrib-dwd-local-weather\u003C\u002Fa>\u003C\u002Fh1>\n\u003Cp>A node red node that returns German DWD MOSMIX current \u002F forecasted weather for a given location.\u003C\u002Fp>\n\u003Cp>It gives you the following data:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Temperature in °C (in a 2 m height)\u003C\u002Fli>\n\u003Cli>Relative humidity in %\u003C\u002Fli>\n\u003Cli>Windspeed in m\u002Fs (in a 10 m height)\u003C\u002Fli>\n\u003Cli>Wind direction in degrees\u003C\u002Fli>\n\u003Cli>Rain probability in %\u003C\u002Fli>\n\u003Cli>Expected rain amount (precipitation) for the next 24 hours in kg\u002Fm\u003Csup>2\u003C\u002Fsup>\u003C\u002Fli>\n\u003Cli>Timestamp of the forecast\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fmaster\u002Fimages\u002Fnode-appearance.png\" alt=\"node-appearance\" title=\"Node appearance\" \u002F>\u003Cbr \u002F>\n\u003Cstrong>Fig. 1:\u003C\u002Fstrong> Node appearance\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Remark\u003C\u002Fstrong>: This node is mainly useful if you are interested in weather data for \u003Cstrong>Germany\u003C\u002Fstrong>.   International weather data is available for only a couple of \u003Cstrong>european locations\u003C\u002Fstrong> (see MOSMIX stations below). Examples for international locations are Bergen, London, Dublin, Brussels, Luzern, Lille, Locarno, Le Mans, Madrid, Ibiza, Klagenfurt (and many others).\u003C\u002Fp>\n\u003Cp>The weather data is provided by DWD (Deutscher Wetterdienst, Frankfurter Straße 135, 63067 Offenbach).\u003C\u002Fp>\n\u003Cp>References:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>https:\u002F\u002Fisabel.dwd.de\u002FDE\u002Fleistungen\u002Fopendata\u002Fopendata.html\u003C\u002Fli>\n\u003Cli>https:\u002F\u002Fwww.dwd.de\u002FDE\u002Fleistungen\u002Fmet_verfahren_mosmix\u002Fmet_verfahren_mosmix.html\u003C\u002Fli>\n\u003Cli>https:\u002F\u002Fwww.dwd.de\u002FDE\u002Fleistungen\u002Fmet_verfahren_mosmix\u002Ffaq\u002Ffaq_mosmix_node.html\u003C\u002Fli>\n\u003Cli>https:\u002F\u002Fwww.dwd.de\u002FDE\u002Fleistungen\u002Fopendata\u002Fhelp\u002Fschluessel_datenformate\u002Fkml\u002Fmosmix_elemente_xls.html\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Ca name=\"installation\">\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch2 id=\"installation\">\u003Ca class=\"header-anchor\" href=\"#installation\">Installation\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Ca name=\"installation_in_node-red\">\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch3 id=\"in-node-red-preferred\">\u003Ca class=\"header-anchor\" href=\"#in-node-red-preferred\">In Node-RED (preferred)\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>Via Manage Palette -&gt; Search for \"node-red-contrib-dwd-local-weather\"\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Ca name=\"installation_in_a_shell\">\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch3 id=\"in-a-shell\">\u003Ca class=\"header-anchor\" href=\"#in-a-shell\">In a shell\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>go to the Node-RED installation folder, e.g.: \u003Ccode>~\u002F.node-red\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>run \u003Ccode>npm install node-red-contrib-dwd-local-weather\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Ca name=\"usage\">\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch2 id=\"usage\">\u003Ca class=\"header-anchor\" href=\"#usage\">Usage\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>The easiest usage of the node is using internal triggering:\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fmaster\u002Fimages\u002Fbasic-usage.png\" alt=\"basic-usage\" title=\"Node usage\" \u002F>\u003Cbr \u002F>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fblob\u002Fmaster\u002Fexamples\u002FBasicUsageFlow.json\">\u003Cstrong>BasicUsageFlow.json\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Fig. 2:\u003C\u002Fstrong> Basic node usage\u003C\u002Fp>\n\u003Cp>In this example the node cyclically reads out the DWD data and emits it as an output \u003Ccode>msg\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>\u003Ca name=\"node_configuration\">\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch3 id=\"node-configuration\">\u003Ca class=\"header-anchor\" href=\"#node-configuration\">Node Configuration\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fmaster\u002Fimages\u002Fnode-settings.png\" alt=\"node-settings\" title=\"Node properties\" \u002F>\u003Cbr \u002F>\n\u003Cstrong>Fig. 3:\u003C\u002Fstrong> Node properties\u003C\u002Fp>\n\u003Cp>Node configuration is quite simple. Only setting the property \u003Cem>\u003Cstrong>MOSMIX Station\u003C\u002Fstrong>\u003C\u002Fem> to select the required weather forecast location is mandatory.\u003C\u002Fp>\n\u003Ch4 id=\"mosmix-station\">\u003Ca class=\"header-anchor\" href=\"#mosmix-station\">MOSMIX station\u003C\u002Fa>\u003C\u002Fh4>\n\u003Cp>Set this property to select the weather forecast location.\u003Cbr \u002F>\nThe format is a 5 character \u003Cem>\u003Cstrong>id\u003C\u002Fstrong>\u003C\u002Fem>. Allowed ids are given in the \u003Ca href=\"https:\u002F\u002Fwww.dwd.de\u002FDE\u002Fleistungen\u002Fmet_verfahren_mosmix\u002Fmosmix_stationskatalog.cfg\">stations catalog (in CFG file format)\u003C\u002Fa> of the DWD (german weather service): See coloumn 'id' and search for your location.\u003C\u002Fp>\n\u003Cp>Examples:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>id = \u003Cstrong>10389\u003C\u002Fstrong> for Berlin, Alexanderplatz\u003C\u002Fli>\n\u003Cli>id = \u003Cstrong>K1174\u003C\u002Fstrong> for Heinsberg (NRW)\u003C\u002Fli>\n\u003Cli>id = \u003Cstrong>K4476\u003C\u002Fstrong> for Tirschenreuth (BY)\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch4 id=\"look-ahead-hours\">\u003Ca class=\"header-anchor\" href=\"#look-ahead-hours\">Look ahead Hours\u003C\u002Fa>\u003C\u002Fh4>\n\u003Cp>Hours to look ahead into the future. Use 0 to get actual weather.\u003C\u002Fp>\n\u003Cp>When you set \u003Cem>Look ahead hours\u003C\u002Fem>, the weather data returned will be for x hours in the future. If you look at the temperature for 12 hours ahead for example, you should see a different number returned unless that temperature happens to be exactly the same to the actual temperature.\u003C\u002Fp>\n\u003Cp>Note: This configuration property is superseeded by an input \u003Ccode>msg\u003C\u002Fcode> with a  \u003Ccode>msg.payload.lookAheadHours\u003C\u002Fcode> element (see secion \u003Cem>Input\u003C\u002Fem> below).\u003C\u002Fp>\n\u003Ch4 id=\"omit-message-on-start\">\u003Ca class=\"header-anchor\" href=\"#omit-message-on-start\">Omit message on start\u003C\u002Fa>\u003C\u002Fh4>\n\u003Cp>For compatibility with the openweathermap node, this node emits a message with current weather data immediately once the flow is deployed. If this is not desirable, it can be deactivated here. In any case, the node will emit a message after the repeat cycle in case this is set (see below) or once it is triggered by receiving a message.\u003C\u002Fp>\n\u003Ch4 id=\"repeat\">\u003Ca class=\"header-anchor\" href=\"#repeat\">Repeat\u003C\u002Fa>\u003C\u002Fh4>\n\u003Cp>Automatic cyclic repeat (in seconds). If set to a value &gt; 0, the node automatically repeats the DWD data query and emits a \u003Ccode>msg\u003C\u002Fcode> telegram at its output.\u003C\u002Fp>\n\u003Cp>Hint: Do not set this value too small to avoid unneccesary traffic. Appropriate repeat intervals are several minutes due to the weather data does not change at a higher rate than 15-20 seconds, typically one minute.\u003C\u002Fp>\n\u003Ch4 id=\"additional-fields\">\u003Ca class=\"header-anchor\" href=\"#additional-fields\">Additional fields\u003C\u002Fa>\u003C\u002Fh4>\n\u003Ch5 id=\"basics\">\u003Ca class=\"header-anchor\" href=\"#basics\">Basics\u003C\u002Fa>\u003C\u002Fh5>\n\u003Cp>With the \u003Cem>Additional fields\u003C\u002Fem> property you can add further weather data to \u003Ccode>msg.payload\u003C\u002Fcode>.\u003Cbr \u002F>\nPossible elements can be selected from this \u003Ca href=\"https:\u002F\u002Fwww.dwd.de\u002FDE\u002Fleistungen\u002Fopendata\u002Fhelp\u002Fschluessel_datenformate\u002Fkml\u002Fmosmix_elemente_xls.html\">MOSMIX element list\u003C\u002Fa> from the DWD.\u003Cbr \u002F>\nSeveral elements can be selected and have to be comma-separated.\u003C\u002Fp>\n\u003Ch5 id=\"output-modifiers\">\u003Ca class=\"header-anchor\" href=\"#output-modifiers\">Output modifiers\u003C\u002Fa>\u003C\u002Fh5>\n\u003Cp>The data provided by DWD is on an hourly basis. By default, output values will be linearly interpolated. Some data fields such as \"SunD\" (Yesterdays total sunshine duration) in the below example are only provided once every X hours or even once per day and interpolation does not make sense. With modifiers you can change how the output value is calculated in those cases. When not specifying a modifier, the value for those fields will be 'NaN' in most cases.\u003C\u002Fp>\n\u003Cp>Output modifiers are added as a prefix to the field name. So instead of just using \"SunD\", you would use \"&gt;SunD\" to return today's predicted total sunshine duration.\u003C\u002Fp>\n\u003Cp>Available modifiers:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>&lt;\u003C\u002Fcode> go back in time to find the last value for this field\u003C\u002Fli>\n\u003Cli>\u003Ccode>&gt;\u003C\u002Fcode> go ahead in time to find the next value for this field\u003C\u002Fli>\n\u003Cli>\u003Ccode>°\u003C\u002Fcode> assume the field value is a temperature and convert it from Kelvin to Celsius\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>See also: Node issue \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fissues\u002F18\">\"NaN error with precipitation 24h and 3h\"\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch5 id=\"example\">\u003Ca class=\"header-anchor\" href=\"#example\">Example\u003C\u002Fa>\u003C\u002Fh5>\n\u003Cp>The following figure shows the \u003Ccode>msg.payload\u003C\u002Fcode> structure of an example with \"FF,FX1,&gt;SunD,SunD1,R101,°Td,VV,W1W2,wwTd\":\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fmaster\u002Fimages\u002Fadditional-fields.png\" alt=\"additional-fields\" title=\"Additional fields\" \u002F>\u003Cbr \u002F>\n\u003Cstrong>Fig. 4:\u003C\u002Fstrong> \u003Cem>Additional fields\u003C\u002Fem> example \u003Ccode>msg.payload\u003C\u002Fcode> contents\u003C\u002Fp>\n\u003Ch5 id=\"mosmix-elements-used-by-the-node\">\u003Ca class=\"header-anchor\" href=\"#mosmix-elements-used-by-the-node\">MOSMIX elements used by the node\u003C\u002Fa>\u003C\u002Fh5>\n\u003Cp>The following MOSMIX elements are used as the basis for the node's \u003Ccode>msg.payload\u003C\u002Fcode> values:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>payload.tempc\u003C\u002Fcode>:  \"TTT\"\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.humidity\u003C\u002Fcode>: \"Td\" and \"TTT\"\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.windspeed\u003C\u002Fcode>: \"FF\"\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.winddirection\u003C\u002Fcode>: \"DD\"\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.precipitation_perc\u003C\u002Fcode>: \"wwP\"\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.precipitationNext24h\u003C\u002Fcode>: \"RR1c\"\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch4 id=\"name\">\u003Ca class=\"header-anchor\" href=\"#name\">Name\u003C\u002Fa>\u003C\u002Fh4>\n\u003Cp>A name for the wheather location may be set via this property.\u003C\u002Fp>\n\u003Ch4 id=\"topic\">\u003Ca class=\"header-anchor\" href=\"#topic\">Topic\u003C\u002Fa>\u003C\u002Fh4>\n\u003Cp>Allows to configure the topic for emitted messages.\u003C\u002Fp>\n\u003Ch3 id=\"input\">\u003Ca class=\"header-anchor\" href=\"#input\">Input\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>The node is triggered by any input \u003Ccode>msg\u003C\u002Fcode> with arbitrary contents.\u003C\u002Fp>\n\u003Cp>If the input \u003Ccode>msg\u003C\u002Fcode> contains the element \u003Ccode>msg.payload.lookAheadHours\u003C\u002Fcode> its value superseeds the \u003Cem>Look ahead Hours\u003C\u002Fem> node configuration property.\u003C\u002Fp>\n\u003Ch3 id=\"outputs\">\u003Ca class=\"header-anchor\" href=\"#outputs\">Outputs\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>The node emits a \u003Ccode>msg\u003C\u002Fcode> whenever it is triggered by an input \u003Ccode>msg\u003C\u002Fcode> or at the configured \u003Cem>Repeat\u003C\u002Fem> interval (see node configuration above).\u003C\u002Fp>\n\u003Cp>The default \u003Ccode>msg\u003C\u002Fcode> attributes are:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>payload.station\u003C\u002Fcode> - Description (location) of the station\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.tempc\u003C\u002Fcode> - Temperature in °C\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.humidity\u003C\u002Fcode> -  Relative humidity\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.windspeed\u003C\u002Fcode> - Windspeed in m\u002Fs\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.winddirection\u003C\u002Fcode> - Winddirection in °\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.precipitation_perc\u003C\u002Fcode> - probability of rain in per cent (so a value of 4 means 4%)\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.precipitationNext24h\u003C\u002Fcode> - total precipitation in the next 24 hours in kg\u002Fm2\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.forecast_dt\u003C\u002Fcode> - epoch timestamp of the forecast\u003C\u002Fli>\n\u003Cli>\u003Ccode>payload.precipitation%\u003C\u002Fcode> - DEPRECATED, same as \u003Ccode>payload.precipitation_perc\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>In case of a value set to the node configuration property \u003Cem>Topic\u003C\u002Fem> the output \u003Ccode>msg\u003C\u002Fcode> contains an additional attribute \u003Ccode>msg.topic\u003C\u002Fcode> with the set content in addition to the \u003Ccode>msg.payload\u003C\u002Fcode> object.\u003Cbr \u002F>\nAs an example, if the node configuration property \u003Cem>Topic\u003C\u002Fem> is set to \"myTopic\" the output \u003Ccode>msg\u003C\u002Fcode> looks like this:\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fmaster\u002Fimages\u002Foutput-topic-example.png\" alt=\"output-topic-example\" title=\"Output topic example\" \u002F>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Fig. 5:\u003C\u002Fstrong> Example output \u003Ccode>msg\u003C\u002Fcode> with topic configuration property set to \"myTopic\"\u003C\u002Fp>\n\u003Ch2 id=\"examples\">\u003Ca class=\"header-anchor\" href=\"#examples\">Examples\u003C\u002Fa>\u003C\u002Fh2>\n\u003Chr \u002F>\n\u003Cp>\u003Cstrong>Remark\u003C\u002Fstrong>: Example flows are present in the examples subdirectory. In Node-RED they can be imported via the import function and then selecting \u003Cem>Examples\u003C\u002Fem> in the vertical tab menue.\u003C\u002Fp>\n\u003Chr \u002F>\n\u003Ch3 id=\"basic-example\">\u003Ca class=\"header-anchor\" href=\"#basic-example\">Basic example\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>This example shows how to trigger the node and how to evaluate the \u003Ccode>msg.payload.tempc\u003C\u002Fcode> element.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fmaster\u002Fimages\u002Fbasic-example.png\" alt=\"basic-example\" title=\"Basic example\" \u002F>\u003Cbr \u002F>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fblob\u002Fmaster\u002Fexamples\u002FBasicExampleFlow.json\">\u003Cstrong>BasicExampleFlow.json\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Fig. 6:\u003C\u002Fstrong> Basic example flow\u003C\u002Fp>\n\u003Cdetails>\n  \u003Csummary>Click to expand code snippet of the flow\u003C\u002Fsummary>\n\u003Cpre>\u003Ccode class=\"language-javascript\">[{\"id\":\"c9a4786f.ee8328\",\"type\":\"inject\",\"z\":\"c1f84551.fa0b5\",\"name\":\"\",\"props\":[{\"p\":\"payload\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"str\",\"x\":210,\"y\":1320,\"wires\":[[\"63c7e662.9ec0c8\"]]},{\"id\":\"63c7e662.9ec0c8\",\"type\":\"dwdweather\",\"z\":\"c1f84551.fa0b5\",\"name\":\"Berlin, Alex\",\"mosmixStation\":\"10389\",\"lookAheadHours\":\"0\",\"additionalFields\":\"\",\"repeat\":\"0\",\"x\":390,\"y\":1320,\"wires\":[[\"52b1bc57.f3fe74\",\"7a6b8898.d8d578\"]]},{\"id\":\"52b1bc57.f3fe74\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"Temperatur in °C\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.tempc\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":610,\"y\":1320,\"wires\":[]},{\"id\":\"7a6b8898.d8d578\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"true\",\"targetType\":\"full\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":570,\"y\":1280,\"wires\":[]}]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003C\u002Fdetails>\n\u003Ch3 id=\"example-using-additional-fields\">\u003Ca class=\"header-anchor\" href=\"#example-using-additional-fields\">Example using \u003Cem>Additional fields\u003C\u002Fem>\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>The configuration of the property \u003Cem>Additional fields\u003C\u002Fem> was set to \"FX1,SunD1,VV\". Therefore the elements \u003Ccode>msg.payload.FX1\u003C\u002Fcode> (max. wind gust in the lasts hour), \u003Ccode>msg.payload.SunD1\u003C\u002Fcode> (sunshine duration in the last hour) and \u003Ccode>msg.payload.VV\u003C\u002Fcode> (visibility) appear additionally at the output.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fmaster\u002Fimages\u002Fadditionalfields-example.png\" alt=\"additionalfields-example\" title=\"Additional fields example\" \u002F>\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fc5te1n\u002Fnode-red-contrib-dwd-local-weather\u002Fblob\u002Fmaster\u002Fexamples\u002FAdditionalFieldsExampleFlow.json\">\u003Cstrong>AdditionalFieldsExampleFlow.json\u003C\u002Fstrong>\u003C\u002Fa>\u003Cbr \u002F>\n\u003Cstrong>Fig. 7:\u003C\u002Fstrong> Example with \u003Cem>Additional fields\u003C\u002Fem> flow\u003C\u002Fp>\n\u003Cdetails>\n  \u003Csummary>Click to expand code snippet of the flow\u003C\u002Fsummary>\n\u003Cpre>\u003Ccode class=\"language-javascript\">[{\"id\":\"6b9dad75.8e1cfc\",\"type\":\"dwdweather\",\"z\":\"c1f84551.fa0b5\",\"name\":\"Berlin, Alex\",\"mosmixStation\":\"10389\",\"lookAheadHours\":\"0\",\"additionalFields\":\"FX1,SunD1,VV\",\"repeat\":\"0\",\"x\":390,\"y\":1680,\"wires\":[[\"98ed4e40.07d5\",\"e5ef0089.cf48\",\"69ba80bb.54cfc\",\"36980239.12325e\",\"b21cfb33.0eb55\",\"47c88c29.1cea44\",\"5a984276.9804c4\"]]},{\"id\":\"9e5e1177.58e82\",\"type\":\"inject\",\"z\":\"c1f84551.fa0b5\",\"name\":\"\",\"props\":[{\"p\":\"payload\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"str\",\"x\":190,\"y\":1680,\"wires\":[[\"6b9dad75.8e1cfc\"]]},{\"id\":\"98ed4e40.07d5\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"windspeed in m\u002Fs\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.windspeed\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":730,\"y\":1800,\"wires\":[]},{\"id\":\"e5ef0089.cf48\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"wind direction in °\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.winddirection\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":740,\"y\":1860,\"wires\":[]},{\"id\":\"69ba80bb.54cfc\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"max. wind gust last hour\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.FX1\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":760,\"y\":1920,\"wires\":[]},{\"id\":\"47c88c29.1cea44\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"sunshine duration last hour in seconds\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.SunD1\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":810,\"y\":1980,\"wires\":[]},{\"id\":\"b21cfb33.0eb55\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"rel. humidity in %\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.humidity\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":730,\"y\":1740,\"wires\":[]},{\"id\":\"36980239.12325e\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"temperature in °C\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.tempc\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":740,\"y\":1680,\"wires\":[]},{\"id\":\"5a984276.9804c4\",\"type\":\"debug\",\"z\":\"c1f84551.fa0b5\",\"name\":\"visibility in m\",\"active\":true,\"tosidebar\":false,\"console\":false,\"tostatus\":true,\"complete\":\"payload.VV\",\"targetType\":\"msg\",\"statusVal\":\"payload.windspeed\",\"statusType\":\"auto\",\"x\":720,\"y\":2040,\"wires\":[]}]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003C\u002Fdetails>\n\u003Cbr \u002F>\n\u003Cp>Note that often the values have to be scaled to have more 'handy' values.\u003C\u002Fp>\n\u003Ch2 id=\"license\">\u003Ca class=\"header-anchor\" href=\"#license\">License\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Apache 2.0 (c) Christian Stein\u003C\u002Fp>\n",1784738654148]