UPGRADE IP 9 verfügbar!
Timberwolf VISU jetzt mit NEUEM Layout Editor
Freie Anordnung, Reihenfolge und Größe der Widgets - viele weitere Verbesserungen
Infos im Wiki: https://elabnet.atlassian.net/l/cp/06SeuHRJ

NEU! Insider & Leistungsmerkmale FÜR ALLE freigeschaltet
Damit kann nun jeder das Upgrade vornehmen und VISU & IFTTT testen. Alle Info hier: viewtopic.php?f=8&t=5074

4.5.13 Aus OpenweatherMap Werte an KNX senden

Beschreibung: Einrichten von NodeRED als Container und Openweather auf KNX senden

Kategorie: Docker

Link zu diesem Beitrag: Alles auswählen

[url=https://forum.timberwolf.io/app.php/kb/viewarticle?a=123&sid=c7630f6c125f129cc44c66171083481d]Knowledge Base - 4.5.13 Aus OpenweatherMap Werte an KNX senden[/url]

Hinweis: Installation Node Red auf TWS via Portainer ist hier beschrieben:
app.php/kb/viewarticle?a=124

Wetterdaten von https://openweathermap.org/ für Logiken im TWS verwenden:
Der Zugriff auf die Wetterdaten von owm erfolgt über eine REST-API. Sehr einfach kann diese REST-API über den Node-Red Knoten https://flows.nodered.org/node/node-red ... weathermap erfolgen.

Registrierung bei https://openweathermap.org/
Die Authentifizierung gegenüber der owm REST-API erfolgt über API-Keys. Um einen API-Key zu generieren, ist eine Registrierung unter https://home.openweathermap.org/users/sign_up erforderlich.

Nach erfolgter Registrierung sind unter https://home.openweathermap.org/api_keys die Schlüssel zu erzeugen.
Tipp: Je Aufruf sollte ein Schlüssel erzeugt werden - also ein Schlüssel für die IST-Wetter-Daten und einer für die Vorhersage.
Bild

Import OWM-Node in Node Red
Via Browser auf die den Node Red Editor zugreifen. Bei mir 192.168.1.3:1880

Über das "Hamburger Menü den Eintrag "Palette verwalten" aufrufen:
Bild

Auf dem Tab "Install" nun nach "openweathermap" suchen und den Node installieren
Bild

Flow: openweathermap
Eine generelle Doku ist hier zu finden: http://noderedguide.com/node-red-lectur ... #more-1242 (suche nach openweathermap)
Bild


Mein Flow sieht wie oben dargestellt aus:

Via Menü (oben rechts) --> Import --> Zwischenablage -->STRG+V --> Import könnt ihr den Flow so in euren Node Red-Editor importieren.
Den Ort müsst ihr noch anpassen und der API-Key muss auch noch eingefügt werden.
Der obere Teil enthält die aktuellen Wetterdaten, der untere Teil die Vorhersage.

Besonders elegant ist das Ganze nicht, aber für den Anfang ggf übersichtlicher…

INFO:
Die freie OWM-APi liefert die Vorhersage "nur" alle 3 Stunden und nicht stündlich. Ich habe mich für 6:00, 15:00 und 21:00 entschieden. Sollte das nicht passen, müssen aus dem Array andere Zeilen berücksichtigt werden...

Code: Alles auswählen


 
[
    {
        "id": "d406ac94.b651b",
        "type": "tab",
        "label": "OpenWeatherMap.org",
        "disabled": false,
        "info": ""
    },
    {
        "id": "af430b40.e89898",
        "type": "openweathermap",
        "z": "d406ac94.b651b",
        "name": "OWM: Bad Salzuflen - aktuelles Wetter",
        "wtype": "current",
        "lon": "",
        "lat": "",
        "city": "Bad Salzuflen",
        "country": "Deutschland",
        "language": "de",
        "x": 605.3828582763672,
        "y": 440.37109565734863,
        "wires": [
            [
                "42492af2.f940a4",
                "17fbb628.21ef9a",
                "72839c45.d22044",
                "f1b402ef.253ca",
                "53ef998a.06c478",
                "b6dfc852.89f7b8",
                "3fb97b7d.47c214",
                "98274ac0.f47f58",
                "e22411c8.43c6d",
                "71222449.c8315c",
                "4f971ddc.9b2bf4"
            ]
        ]
    },
    {
        "id": "7c2348bc.f09a38",
        "type": "openweathermap",
        "z": "d406ac94.b651b",
        "name": "Bad Salzuflen 5 Tage Vorhersage",
        "wtype": "forecast",
        "lon": "",
        "lat": "",
        "city": "Bad Salzuflen",
        "country": "Deutschland",
        "language": "de",
        "x": 619.8490829467773,
        "y": 720.3670682907104,
        "wires": [
            [
                "32aea83d.541698",
                "ddbe1aa7.75df58",
                "b401a9f1.37d2f8",
                "9a1a89ea.026d68",
                "bc91432a.0aad3",
                "c5c09f5.d370a6",
                "d20f44c5.b29da8",
                "bca18ef9.f7873",
                "be0054cf.ad5628"
            ]
        ]
    },
    {
        "id": "44e7e259.c8a5dc",
        "type": "inject",
        "z": "d406ac94.b651b",
        "name": "Polling 15min",
        "topic": "Polling ",
        "payload": "",
        "payloadType": "date",
        "repeat": "900",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 502.3945617675781,
        "y": 608.9570407867432,
        "wires": [
            [
                "af430b40.e89898",
                "7c2348bc.f09a38"
            ]
        ]
    },
    {
        "id": "42492af2.f940a4",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "OWM Luftdruck (hPa)",
        "func": "\nvar unix = {payload: msg.payload.pressure};\nmsg.payload = unix;\nreturn msg.payload;",
        "outputs": 1,
        "noerr": 0,
        "x": 1005.2926177978516,
        "y": 468.4772357940674,
        "wires": [
            [
                "dacf7760.b6f9f8"
            ]
        ]
    },
    {
        "id": "4f971ddc.9b2bf4",
        "type": "debug",
        "z": "d406ac94.b651b",
        "name": "OWM",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "x": 836.2837333679199,
        "y": 53.616397857666016,
        "wires": []
    },
    {
        "id": "17fbb628.21ef9a",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "OWM: Wetter Icon",
        "func": "\nvar unix = {payload: msg.payload.icon};\nmsg.payload = unix;\nreturn msg.payload;",
        "outputs": 1,
        "noerr": 0,
        "x": 994.2869415283203,
        "y": 187.48005199432373,
        "wires": [
            [
                "85f43aa4.61f268",
                "ce71ee3.c821e1"
            ]
        ]
    },
    {
        "id": "85f43aa4.61f268",
        "type": "template",
        "z": "d406ac94.b651b",
        "name": "OWM: Wetter Icon - URL",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "http://openweathermap.org/img/wn/{{payload}}@2x.png\n",
        "output": "str",
        "x": 1237.0142211914062,
        "y": 216.92605209350586,
        "wires": [
            []
        ]
    },
    {
        "id": "72839c45.d22044",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "OWM: Temperatur (aktuell)",
        "func": "\nvar unix = {payload: msg.payload.tempc};\nmsg.payload = unix;\nreturn msg.payload;",
        "outputs": 1,
        "noerr": 0,
        "x": 1025.014259338379,
        "y": 305.00560569763184,
        "wires": [
            [
                "30225269.09c89e"
            ]
        ]
    },
    {
        "id": "f1b402ef.253ca",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "OWM: Temperatur (max)",
        "func": "\nvar unix = {payload: msg.payload.temp_maxc};\nmsg.payload = unix;\nreturn msg.payload;",
        "outputs": 1,
        "noerr": 0,
        "x": 1016.0142135620117,
        "y": 348.0056266784668,
        "wires": [
            [
                "43efc53a.ee0ebc"
            ]
        ]
    },
    {
        "id": "53ef998a.06c478",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "OWM: Temperatur (min)",
        "func": "\nvar unix = {payload: msg.payload.temp_minc};\nmsg.payload = unix;\nreturn msg.payload;",
        "outputs": 1,
        "noerr": 0,
        "x": 1014.0142059326172,
        "y": 389.0056266784668,
        "wires": [
            [
                "c05fa627.66fb18"
            ]
        ]
    },
    {
        "id": "b6dfc852.89f7b8",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "OWM: Luftfeuchtigkeit(%)",
        "func": "\nvar unix = {payload: msg.payload.humidity};\nmsg.payload = unix;\nreturn msg.payload;",
        "outputs": 1,
        "noerr": 0,
        "x": 1014.0142135620117,
        "y": 428.00563049316406,
        "wires": [
            [
                "7b88f78d.fd5dc8"
            ]
        ]
    },
    {
        "id": "3fb97b7d.47c214",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "OWM Windgeschwindigkeit (m/s)",
        "func": "\nvar unix = {payload: msg.payload.windspeed};\nmsg.payload = unix;\nreturn msg.payload;",
        "outputs": 1,
        "noerr": 0,
        "x": 1044.0142288208008,
        "y": 515.0056438446045,
        "wires": [
            [
                "7507b6fb.0f8de8"
            ]
        ]
    },
    {
        "id": "98274ac0.f47f58",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "OWM Windrichtung (°)",
        "func": "\nvar unix = {payload: msg.payload.winddirection};\nmsg.payload = unix;\nreturn msg.payload;",
        "outputs": 1,
        "noerr": 0,
        "x": 1006.0142135620117,
        "y": 561.0056419372559,
        "wires": [
            [
                "209a6728.990c08"
            ]
        ]
    },
    {
        "id": "e22411c8.43c6d",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "OWM Sonnenaufgang (UTC)",
        "func": "var unix_timestamp = msg.payload.sunrise;\n\ndateObj = new Date(unix_timestamp * 1000); // timestamp in  ms\n\nreturn {payload: dateObj.toLocaleTimeString('de-DE',\n{hour: '2-digit', hour12: false,\nminute: '2-digit',\nsecond: '2-digit',\ntimeZone: 'Europe/Berlin'})}\n",
        "outputs": 1,
        "noerr": 0,
        "x": 1030.0142135620117,
        "y": 608.005651473999,
        "wires": [
            [
                "3127528.c11e9ae",
                "ad6c775f.0dd988"
            ]
        ]
    },
    {
        "id": "71222449.c8315c",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "OWM Sonnenuntergang (UTC)",
        "func": "\nvar unix_timestamp = msg.payload.sunset;\n\ndateObj = new Date(unix_timestamp * 1000); // timestamp in  ms\n\nreturn {payload: dateObj.toLocaleTimeString('de-DE',\n{hour: '2-digit', hour12: false,\nminute: '2-digit',\nsecond: '2-digit',\ntimeZone: 'Europe/Berlin'})}\n\n\n\n\n\n",
        "outputs": 1,
        "noerr": 0,
        "x": 1045.014175415039,
        "y": 656.0056629180908,
        "wires": [
            [
                "cc3b2de4.1d1a3",
                "ad6c775f.0dd988"
            ]
        ]
    },
    {
        "id": "ddbe1aa7.75df58",
        "type": "debug",
        "z": "d406ac94.b651b",
        "name": "OWM Forecast",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "x": 1437.2840042114258,
        "y": 752.8039226531982,
        "wires": []
    },
    {
        "id": "32aea83d.541698",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "Vorhersage +1 Tag - 6:00",
        "func": "var preview_1_600 = { payload:msg.payload[3].main.temp };\nreturn preview_1_600;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 906.2840423583984,
        "y": 789.4800796508789,
        "wires": [
            [
                "ee51c455.f34df8"
            ]
        ]
    },
    {
        "id": "b401a9f1.37d2f8",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "Vorhersage +1 Tag - 15:00",
        "func": "var preview_1_1500 = { payload:msg.payload[6].main.temp };\nreturn preview_1_1500;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 916.650505065918,
        "y": 825.9148645401001,
        "wires": [
            [
                "9677d9b4.d6e298"
            ]
        ]
    },
    {
        "id": "9a1a89ea.026d68",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "Vorhersage +1 Tag - 21:00",
        "func": "var preview_1_2100 = { payload:msg.payload[8].main.temp };\nreturn preview_1_2100;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 917.6505088806152,
        "y": 859.9147853851318,
        "wires": [
            [
                "94aee2dd.8b892"
            ]
        ]
    },
    {
        "id": "bc91432a.0aad3",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "Vorhersage +2 Tag - 6:00",
        "func": "var preview_2_600 = { payload:msg.payload[11].main.temp };\nreturn preview_2_600;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 906.6505432128906,
        "y": 910.9148721694946,
        "wires": [
            [
                "bc909f7c.d6ba1"
            ]
        ]
    },
    {
        "id": "c5c09f5.d370a6",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "Vorhersage +2 Tag - 15:00",
        "func": "var preview_2_1500 = { payload:msg.payload[14].main.temp };\nreturn preview_2_1500;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 918.0170059204102,
        "y": 946.3496189117432,
        "wires": [
            [
                "8db4a74b.87e908"
            ]
        ]
    },
    {
        "id": "d20f44c5.b29da8",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "Vorhersage +2 Tag - 21:00",
        "func": "var preview_2_2100 = { payload:msg.payload[16].main.temp };\nreturn preview_2_2100;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 921.0170631408691,
        "y": 981.3494834899902,
        "wires": [
            [
                "ff43651b.bb6638"
            ]
        ]
    },
    {
        "id": "bca18ef9.f7873",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "Vorhersage +3 Tag - 6:00",
        "func": "var preview_3_600 = { payload:msg.payload[19].main.temp };\nreturn preview_3_600;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 909.6505737304688,
        "y": 1035.8238525390625,
        "wires": [
            [
                "6769512c.286e8"
            ]
        ]
    },
    {
        "id": "be0054cf.ad5628",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "Vorhersage +3 Tag - 15:00",
        "func": "var preview_3_1500 = { payload:msg.payload[22].main.temp };\nreturn preview_3_1500;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 921.0170364379883,
        "y": 1071.258599281311,
        "wires": [
            [
                "8ae35575.cfc7d8"
            ]
        ]
    },
    {
        "id": "4fd13c9b.91fe64",
        "type": "function",
        "z": "d406ac94.b651b",
        "name": "Vorhersage +2 Tag - 21:00",
        "func": "var preview_3_2100 = { payload:msg.payload[24].main.temp };\nreturn preview_3_2100;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 924.0170936584473,
        "y": 1106.258463859558,
        "wires": [
            [
                "589b1676.4fb2b8"
            ]
        ]
    },
    {
        "id": "ce71ee3.c821e1",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/1",
        "dpt": "16.000",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Wettericon",
        "outputtype": "write",
        "outputRBE": false,
        "inputRBE": false,
        "x": 1367.0084686279297,
        "y": 166.7528305053711,
        "wires": [
            []
        ]
    },
    {
        "id": "30225269.09c89e",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/2",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Temperatur IST",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1304.0112762451172,
        "y": 297.76136016845703,
        "wires": [
            []
        ]
    },
    {
        "id": "43efc53a.ee0ebc",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/3",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Temperatur max",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1290.7414245605469,
        "y": 345.00565338134766,
        "wires": [
            []
        ]
    },
    {
        "id": "c05fa627.66fb18",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/4",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Temperatur min",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1292.7414245605469,
        "y": 388.0056610107422,
        "wires": [
            []
        ]
    },
    {
        "id": "7b88f78d.fd5dc8",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/5",
        "dpt": "9.007",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Luftfeuchtigkeit %",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1293.7414093017578,
        "y": 424.00565910339355,
        "wires": [
            []
        ]
    },
    {
        "id": "dacf7760.b6f9f8",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/6",
        "dpt": "9.006",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Luftdruck hPA",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1280.7413787841797,
        "y": 461.00565910339355,
        "wires": [
            []
        ]
    },
    {
        "id": "7507b6fb.0f8de8",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/7",
        "dpt": "9.005",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Windgeschwindigkeit",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1334.7414245605469,
        "y": 507.0056791305542,
        "wires": [
            []
        ]
    },
    {
        "id": "209a6728.990c08",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/8",
        "dpt": "8.011",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Windrichtung",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1300.741455078125,
        "y": 562.0056438446045,
        "wires": [
            []
        ]
    },
    {
        "id": "3127528.c11e9ae",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/9",
        "dpt": "10.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Sonnenaufgang",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1306.7414245605469,
        "y": 602.0056667327881,
        "wires": [
            []
        ]
    },
    {
        "id": "cc3b2de4.1d1a3",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/10",
        "dpt": "10.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Sonnenuntergang",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1319.7416915893555,
        "y": 660.0059261322021,
        "wires": [
            []
        ]
    },
    {
        "id": "ee51c455.f34df8",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/11",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Vorhersage +1Tag 06:00",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1277.5176696777344,
        "y": 783.8707218170166,
        "wires": [
            []
        ]
    },
    {
        "id": "9677d9b4.d6e298",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/12",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Vorhersage +1Tag 15:00",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1273.767677307129,
        "y": 818.870717048645,
        "wires": [
            []
        ]
    },
    {
        "id": "94aee2dd.8b892",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/13",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Vorhersage +1Tag 21:00",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1272.517677307129,
        "y": 855.1207160949707,
        "wires": [
            []
        ]
    },
    {
        "id": "bc909f7c.d6ba1",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/14",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Vorhersage +2Tage 06:00",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1275.0176696777344,
        "y": 915.1207151412964,
        "wires": [
            []
        ]
    },
    {
        "id": "8db4a74b.87e908",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/15",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Vorhersage +2Tage 15:00",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1268.7676696777344,
        "y": 952.6207122802734,
        "wires": [
            []
        ]
    },
    {
        "id": "ff43651b.bb6638",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/16",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Vorhersage +2Tage 21:00",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1265.017677307129,
        "y": 987.620710849762,
        "wires": [
            []
        ]
    },
    {
        "id": "6769512c.286e8",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/17",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Vorhersage +3Tage 06:00",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1263.7676696777344,
        "y": 1045.1207075119019,
        "wires": [
            []
        ]
    },
    {
        "id": "8ae35575.cfc7d8",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/18",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Vorhersage +3Tage 15:00",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1265.017677307129,
        "y": 1087.6207122802734,
        "wires": [
            []
        ]
    },
    {
        "id": "589b1676.4fb2b8",
        "type": "knxUltimate",
        "z": "d406ac94.b651b",
        "server": "480e7e63.50483",
        "topic": "10/2/19",
        "dpt": "9.001",
        "initialread": false,
        "notifyreadrequest": false,
        "notifyresponse": false,
        "notifywrite": true,
        "notifyreadrequestalsorespondtobus": false,
        "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
        "listenallga": false,
        "name": "OWM Vorhersage +3Tage 21:00",
        "outputtype": "write",
        "outputRBE": true,
        "inputRBE": false,
        "x": 1266.2676696777344,
        "y": 1127.6207103729248,
        "wires": [
            []
        ]
    },
    {
        "id": "ad6c775f.0dd988",
        "type": "debug",
        "z": "d406ac94.b651b",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "x": 1636.7986602783203,
        "y": 647.5625381469727,
        "wires": []
    },
    {
        "id": "480e7e63.50483",
        "type": "knxUltimate-config",
        "z": "",
        "host": "192.168.1.20",
        "port": "3700",
        "physAddr": "15.15.22",
        "suppressACKRequest": false,
        "KNXEthInterface": "Auto",
        "KNXEthInterfaceManuallyInput": "",
        "statusDisplayLastUpdate": true,
        "statusDisplayDeviceNameWhenALL": true,
        "statusDisplayDataPoint": false
    }
]

Eine zusätzliche Regenvorschau kann mit folgendem Code ausgelesen werden. Einfach einen entsprechenden Function-Node+KNX-Node an den OWM-Node anhängen:

Code: Alles auswählen

// path to rain: payload[1].rain["3h"]
// sum for next 24h
var rainTotal = 0;
for (var i = 0; i < msg.payload.length; i++) {
if (i < 9 && msg.payload[i].hasOwnProperty("rain")) {
rainTotal += msg.payload[i].rain["3h"];
} 
}
 return {payload:rainTotal};