roger, wenn ich ein debug node setze dann sieht das so aus.
Jungs das ist ein Wiki.
Irgendwie leer…
ähm, stelle ich zu viele Fragen? Wenn ja sorry. Ich vermute ich habe irgendwas einfaches Übersehen.
@SteffenTM hier der gesamte Flow den ich von dir haben. Besten Dank schonmal, aber irgendwas habe ich übersehen
[
{
"id": "17dbcaef.01b335",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "a58fc7e9.d67488",
"type": "http request",
"z": "17dbcaef.01b335",
"name": "Wunderground",
"method": "GET",
"ret": "txt",
"paytoqs": false,
"url": "https://api.weather.com/v2/pws/observations/current?stationId=xxx&format=json&units=m&apiKey=xxx",
"tls": "",
"proxy": "",
"authType": "basic",
"x": 678.3333129882812,
"y": 274,
"wires": [
[
"124d8f6b.e146c1"
]
]
},
{
"id": "3566a6f8.ecc4ca",
"type": "inject",
"z": "17dbcaef.01b335",
"name": "Start Wetterdaten",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "60",
"crontab": "",
"once": true,
"onceDelay": "",
"x": 688.3333129882812,
"y": 234,
"wires": [
[
"a58fc7e9.d67488"
]
]
},
{
"id": "9252b005.e4e02",
"type": "json",
"z": "17dbcaef.01b335",
"name": "Konvertieren zu Objekt",
"property": "payload",
"action": "",
"pretty": false,
"x": 698.3333129882812,
"y": 354,
"wires": [
[
"7342774f.1e75d8",
"5874981a.010cb8",
"84032879.7d48f8",
"73c00b3a.064a24",
"6ca14ff7.b54d4",
"26fc7aed.3e4fd6",
"9792c427.c1e598",
"68c45846.ca81a8",
"9fbdb80b.686048",
"1d720d27.852853",
"6f0cc656.776948",
"764c2e12.3a261"
]
]
},
{
"id": "124d8f6b.e146c1",
"type": "delay",
"z": "17dbcaef.01b335",
"name": "",
"pauseType": "delay",
"timeout": "3",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 678.3333129882812,
"y": 314,
"wires": [
[
"9252b005.e4e02"
]
]
},
{
"id": "f390c4e7.2be638",
"type": "ui_gauge",
"z": "17dbcaef.01b335",
"name": "",
"group": "47897e6f.26b96",
"order": 1,
"width": 8,
"height": 5,
"gtype": "gage",
"title": "Sonnenstrahlung",
"label": "W/m²",
"format": "{{value}}",
"min": 0,
"max": "1000",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 1248.3333129882812,
"y": 94,
"wires": []
},
{
"id": "279a058d.66e39a",
"type": "ui_gauge",
"z": "17dbcaef.01b335",
"name": "",
"group": "3afd6b02.b10174",
"order": 2,
"width": 8,
"height": 5,
"gtype": "gage",
"title": "Regenmenge total",
"label": "",
"format": "{{value}} mm",
"min": 0,
"max": "100",
"colors": [
"#006bb5",
"#0045b5",
"#000fb5"
],
"seg1": "",
"seg2": "",
"x": 1248.3333129882812,
"y": 494,
"wires": []
},
{
"id": "7342774f.1e75d8",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Regenmenge total",
"func": "msg.payload=msg.payload.observations[0].metric.precipTotal;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1008.3333129882812,
"y": 494,
"wires": [
[
"279a058d.66e39a"
]
]
},
{
"id": "5874981a.010cb8",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Windrichtung",
"func": "msg.payload=msg.payload.observations[0].winddir;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 988.3333129882812,
"y": 294,
"wires": [
[
"d3fd83f1.c2f4d"
]
]
},
{
"id": "d3fd83f1.c2f4d",
"type": "ui_gauge",
"z": "17dbcaef.01b335",
"name": "",
"group": "46926e78.85f8e",
"order": 1,
"width": 8,
"height": 5,
"gtype": "compass",
"title": "Windrichtung",
"label": "",
"format": "{{value}} °",
"min": 0,
"max": "360",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 1268.3333129882812,
"y": 294,
"wires": []
},
{
"id": "6b7e51c2.82a16",
"type": "ui_chart",
"z": "17dbcaef.01b335",
"name": "",
"group": "5cf19841.e05488",
"order": 3,
"width": "35",
"height": "6",
"label": "Sonnenstrahlung",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "1000",
"removeOlder": "16",
"removeOlderPoints": "",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 1248.3333129882812,
"y": 134,
"wires": [
[]
]
},
{
"id": "84032879.7d48f8",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Sonnenstrahlung",
"func": "msg.payload=msg.payload.observations[0].solarRadiation;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1008.3333129882812,
"y": 114,
"wires": [
[
"f390c4e7.2be638",
"6b7e51c2.82a16",
"119ebf0b.f20281"
]
]
},
{
"id": "73c00b3a.064a24",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Temperatur",
"func": "msg.payload=msg.payload.observations[0].metric.temp;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 988.3333129882812,
"y": 194,
"wires": [
[
"381dd5a0.84fc6a",
"597e9f61.702da"
]
]
},
{
"id": "381dd5a0.84fc6a",
"type": "ui_gauge",
"z": "17dbcaef.01b335",
"name": "",
"group": "4e8c2aaa.911744",
"order": 1,
"width": 8,
"height": 5,
"gtype": "gage",
"title": "Temperatur",
"label": "",
"format": "{{value}} °C",
"min": "-20",
"max": "40",
"colors": [
"#001fb5",
"#02d600",
"#ca3838"
],
"seg1": "0",
"seg2": "25",
"x": 1268.3333129882812,
"y": 174,
"wires": []
},
{
"id": "68c45846.ca81a8",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Regenmenge aktuell",
"func": "msg.payload=msg.payload.observations[0].metric.precipRate;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1018.3333129882812,
"y": 434,
"wires": [
[
"fff5ab5e.582838",
"919b679c.ce9d38"
]
]
},
{
"id": "fff5ab5e.582838",
"type": "ui_gauge",
"z": "17dbcaef.01b335",
"name": "",
"group": "3afd6b02.b10174",
"order": 1,
"width": 8,
"height": 5,
"gtype": "gage",
"title": "Regenmenge aktuell",
"label": "",
"format": "{{value}} mm",
"min": 0,
"max": "75",
"colors": [
"#0045b5",
"#0045b5",
"#000fb5"
],
"seg1": "",
"seg2": "",
"x": 1238.3333129882812,
"y": 414,
"wires": []
},
{
"id": "6ca14ff7.b54d4",
"type": "function",
"z": "17dbcaef.01b335",
"name": "UV-Index",
"func": "msg.payload=msg.payload.observations[0].uv;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 978.3333129882812,
"y": 594,
"wires": [
[
"3c6fbb5f.39bcc4",
"ba29d8e.6f63b28"
]
]
},
{
"id": "3c6fbb5f.39bcc4",
"type": "ui_gauge",
"z": "17dbcaef.01b335",
"name": "",
"group": "47897e6f.26b96",
"order": 2,
"width": 8,
"height": 5,
"gtype": "gage",
"title": "UV-Index",
"label": "",
"format": "{{value}}",
"min": 0,
"max": "10",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 1278.3333129882812,
"y": 574,
"wires": []
},
{
"id": "26fc7aed.3e4fd6",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Luftfeuchte",
"func": "msg.payload=msg.payload.observations[0].humidity;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 988.3333129882812,
"y": 254,
"wires": [
[
"b1ab4f56.bf5bf"
]
]
},
{
"id": "b1ab4f56.bf5bf",
"type": "ui_gauge",
"z": "17dbcaef.01b335",
"name": "",
"group": "4e8c2aaa.911744",
"order": 2,
"width": 8,
"height": 5,
"gtype": "gage",
"title": "Luftfeuchte",
"label": "",
"format": "{{value}} %",
"min": "0",
"max": "100",
"colors": [
"#00b500",
"#00b500",
"#00b500"
],
"seg1": "",
"seg2": "",
"x": 1268.3333129882812,
"y": 254,
"wires": []
},
{
"id": "597e9f61.702da",
"type": "ui_chart",
"z": "17dbcaef.01b335",
"name": "",
"group": "5cf19841.e05488",
"order": 1,
"width": "35",
"height": "6",
"label": "Temperatur",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "-20",
"ymax": "40",
"removeOlder": "16",
"removeOlderPoints": "",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 1268.3333129882812,
"y": 214,
"wires": [
[]
]
},
{
"id": "9792c427.c1e598",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Windgeschwindigkeit",
"func": "msg.payload=msg.payload.observations[0].metric.windSpeed;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1018.3333129882812,
"y": 354,
"wires": [
[
"32f4b9c.83bfc46",
"5c841f91.1730c"
]
]
},
{
"id": "32f4b9c.83bfc46",
"type": "ui_gauge",
"z": "17dbcaef.01b335",
"name": "",
"group": "46926e78.85f8e",
"order": 2,
"width": 8,
"height": 5,
"gtype": "gage",
"title": "Windgeschwindigkeit",
"label": "",
"format": "{{value}} km/h",
"min": 0,
"max": "50",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 1238.3333129882812,
"y": 334,
"wires": []
},
{
"id": "5c841f91.1730c",
"type": "ui_chart",
"z": "17dbcaef.01b335",
"name": "",
"group": "5cf19841.e05488",
"order": 2,
"width": "35",
"height": "6",
"label": "Windgeschwindigkeit",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "50",
"removeOlder": "16",
"removeOlderPoints": "",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 1238.3333129882812,
"y": 374,
"wires": [
[]
]
},
{
"id": "919b679c.ce9d38",
"type": "ui_chart",
"z": "17dbcaef.01b335",
"name": "",
"group": "5cf19841.e05488",
"order": 4,
"width": "35",
"height": "6",
"label": "Regenmenge aktuell",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "75",
"removeOlder": "16",
"removeOlderPoints": "",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 1238.3333129882812,
"y": 454,
"wires": [
[]
]
},
{
"id": "ba29d8e.6f63b28",
"type": "ui_chart",
"z": "17dbcaef.01b335",
"name": "",
"group": "5cf19841.e05488",
"order": 6,
"width": "35",
"height": "6",
"label": "UV-Index",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "10",
"removeOlder": "16",
"removeOlderPoints": "",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 1278.3333129882812,
"y": 614,
"wires": [
[]
]
},
{
"id": "9fbdb80b.686048",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Temperatur, Luftfeuchtigkeit",
"func": "var temp = msg.payload.observations[0].metric.temp;\nvar hum = msg.payload.observations[0].humidity;\nvar message = {\"meta\":{\"eep\":\"a5-13-01\",\"channel\":5,\"type\":\"data\",\"status\":1},\"data\":{\"TMP\":temp,\"HUM\":hum}};\nmsg.payload = message;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1478.3333129882812,
"y": 194,
"wires": [
[]
]
},
{
"id": "119ebf0b.f20281",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Sonnenstrahlung",
"func": "var ill = msg.payload;\nvar message = {\"meta\":{\"eep\":\"a5-13-01\",\"channel\":5,\"type\":\"data\"},\"data\":{\"ILL\":ill}};\nmsg.payload = message;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1508.3333129882812,
"y": 114,
"wires": [
[]
]
},
{
"id": "1d720d27.852853",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Luftdruck",
"func": "msg.payload=msg.payload.observations[0].metric.pressure;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 978.3333129882812,
"y": 654,
"wires": [
[
"af04ff48.21913"
]
]
},
{
"id": "af04ff48.21913",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Luftdruck",
"func": "var bar = msg.payload;\nvar message = {\"meta\":{\"eep\":\"a5-13-01\",\"channel\":5,\"type\":\"data\"},\"data\":{\"BAR\":bar}};\nmsg.payload = message;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1538.3333129882812,
"y": 654,
"wires": [
[]
]
},
{
"id": "96ced19f.59731",
"type": "inject",
"z": "17dbcaef.01b335",
"name": "Wetterstation CH5",
"topic": "",
"payload": "{\"meta\":{\"eep\":\"a5-13-01\",\"channel\":5,\"type\":\"teach-in\"},\"teach-in\":{\"type\":\"4BS\"},\"data\":{\"LRN\":0}}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 754,
"y": 882,
"wires": [
[
"17733f2b.28e281",
"964b09e3.70ef28"
]
]
},
{
"id": "16f1b352.4138cd",
"type": "inject",
"z": "17dbcaef.01b335",
"name": "Wetterstation werte setzen",
"topic": "",
"payload": "{\"meta\":{\"eep\":\"a5-13-01\",\"channel\":5,\"type\":\"data\",\"status\":1},\"data\":{\"DWS\":5,\"ID\":1,\"TMP\":5,\"WND\":10,\"RAN\":1}}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 787.0000152587891,
"y": 983.0001106262207,
"wires": [
[
"17733f2b.28e281",
"d3b4d674.3c22d8"
]
]
},
{
"id": "17733f2b.28e281",
"type": "enocean-out",
"z": "17dbcaef.01b335",
"serialport": "583494b1.c6f0ac",
"name": "enocean",
"logOutput": true,
"x": 1797.6667175292969,
"y": 803.0000238418579,
"wires": [
[
"a2f9f281.4d4aa"
]
]
},
{
"id": "a2f9f281.4d4aa",
"type": "debug",
"z": "17dbcaef.01b335",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 2012.6667232513428,
"y": 534.0000152587891,
"wires": []
},
{
"id": "7ff840b6.80833",
"type": "debug",
"z": "17dbcaef.01b335",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 1796.666748046875,
"y": 191,
"wires": []
},
{
"id": "964b09e3.70ef28",
"type": "debug",
"z": "17dbcaef.01b335",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 929.666748046875,
"y": 807,
"wires": []
},
{
"id": "d3b4d674.3c22d8",
"type": "debug",
"z": "17dbcaef.01b335",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 976.666748046875,
"y": 1010,
"wires": []
},
{
"id": "6f0cc656.776948",
"type": "debug",
"z": "17dbcaef.01b335",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 776.6666870117188,
"y": 481,
"wires": []
},
{
"id": "764c2e12.3a261",
"type": "function",
"z": "17dbcaef.01b335",
"name": "Temperatur",
"func": "var temp = msg.payload.observations[0].metric.temp;\nvar message = {\"meta\":{\"eep\":\"a5-13-01\",\"channel\":5,\"type\":\"data\",\"status\":1},\"data\":{\"TMP\":temp}};\nmsg.payload = message;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1503.0000381469727,
"y": 259.00000762939453,
"wires": [
[
"7ff840b6.80833",
"17733f2b.28e281"
]
]
},
{
"id": "47897e6f.26b96",
"type": "ui_group",
"z": "",
"name": "Sonne aktuell",
"tab": "bdc9bd5f.aa437",
"order": 5,
"disp": true,
"width": 8,
"collapse": false
},
{
"id": "3afd6b02.b10174",
"type": "ui_group",
"z": "",
"name": "Regen aktuell",
"tab": "bdc9bd5f.aa437",
"order": 4,
"disp": true,
"width": 8,
"collapse": false
},
{
"id": "46926e78.85f8e",
"type": "ui_group",
"z": "",
"name": "Wind aktuell",
"tab": "bdc9bd5f.aa437",
"order": 3,
"disp": true,
"width": 8,
"collapse": false
},
{
"id": "5cf19841.e05488",
"type": "ui_group",
"z": "",
"name": "Charts",
"tab": "ecf8503f.8e843",
"order": 1,
"disp": false,
"width": "35",
"collapse": false
},
{
"id": "4e8c2aaa.911744",
"type": "ui_group",
"z": "",
"name": "Temperatur aktuell",
"tab": "bdc9bd5f.aa437",
"order": 2,
"disp": true,
"width": 8,
"collapse": false
},
{
"id": "583494b1.c6f0ac",
"type": "enocean-config-node",
"z": "",
"serialport": "/dev/ttyUSB0"
},
{
"id": "bdc9bd5f.aa437",
"type": "ui_tab",
"z": "",
"name": "Wetterdaten aktuell",
"icon": "wb_sunny",
"order": 5,
"disabled": false,
"hidden": false
},
{
"id": "ecf8503f.8e843",
"type": "ui_tab",
"z": "",
"name": "Wetterdaten Charts",
"icon": "fa-line-chart",
"order": 7,
"disabled": false,
"hidden": false
}
]
Könnte das ein Mod ( @hblaschka @Kappezkopp @coffeelover @Wildsparrow) mal in ein separates Thema packen ? Danke
Ab Beitrag 110
Passt das?
Perfekt danke
Nochmal die Frage was du hinter dem Konvertierungs-Node für Daten erhältst? Wenn da nix ankommt, dann funktioniert deine API nicht.
Hi also nach der Konfertierung kommt folgendes:
softwareType: “EasyWeatherV1.2.0”
country: “DE”
solarRadiation: 0
lon: 9.9862957
realtimeFrequency: null
epoch: 1571422735
lat: 53.71312714
uv: 0
winddir: 151
humidity: 86
qcStatus: 1
metric: object
temp: 11
heatIndex: 11
dewpt: 9
windChill: 11
windSpeed: 2
windGust: 4
pressure: 1005.42
precipRate: 0
precipTotal: 3.81
elev: 35
Die Node für Temperatur und Luftfeuchte funktioniert nun auch in schickt die Werte aus Wunderground in das Homee Gerät:
var temp = msg.payload.observations[0].metric.temp;
var hum = msg.payload.observations[0].humidity;
var message = {“meta”:{“eep”:“a5-04-03”,“channel”:6,“type”:“data”,“status”:1},“data”:{“TMP”:temp,“HUM”:hum}};
msg.payload = message;
return msg;
Was nicht geht sind “Sonnenstrahlung”: var ill = msg.payload;
var message = {“meta”:{“eep”:“a5-06-03”,“channel”:7,“type”:“data”,“status”:1},“data”:{“ILL”:ill}};
msg.payload = message;
return msg;
und “Luftdruck”:
var bar = msg.payload;
var message = {“meta”:{“eep”:“a5-05-01”,“channel”:8,“type”:“data”,“status”:1},“data”:{“BAR”:bar}};
msg.payload = message;
return msg;
ich habe quasi 3 separate Geräte in homee. Ist das bei dir auch so?
Es gibt eine Wetterstation A5-13-01, Jedoch gibts hier nur 4 Werte und z.B. keinen Luftdruck…
Ist bei mir auch so, habe Temperatur und Luftfeuchte auf einem Gerät, Sonnenstrahlung und Luftdruck auf zwei weiteren.
Den Function-Node zum filtern der solarRadiation hast du?
“msg.payload=msg.payload.observations[0].solarRadiation;
return msg;”
Du musst da auch auf Groß- bzw. Kleinschreibung achten.
ich prüfe das gleich nochmal. Habe jedoch deinen Flow komplett kopiert und nix geändert.
Schau doch mal hinter dem Function-Node, welcher den Wert für die Sonnenstrahlung filtert, was der msg.payload sagt. Sollte ja ein Zahlenwert sein.