Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "67b46672db338c88",
- "type": "tab",
- "label": "Open-DTU-1-WR-1",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "a7d81fce6977777b",
- "type": "mqtt in",
- "z": "67b46672db338c88",
- "name": "",
- "topic": "/home/JW/solar/#",
- "qos": "2",
- "datatype": "auto-detect",
- "broker": "1aee3213a7893e0e",
- "nl": false,
- "rap": true,
- "rh": 0,
- "inputs": 0,
- "x": 140,
- "y": 380,
- "wires": [
- [
- "7735ef1888d288bb",
- "731d9e4919b5d353",
- "a357d504ee519fca"
- ]
- ]
- },
- {
- "id": "07621bc29bdd8cde",
- "type": "switch",
- "z": "67b46672db338c88",
- "name": "Wechselspannungsseite: BKW 1",
- "property": "topic",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "/0/current",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/0/efficiency",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/0/frequency",
- "vt": "str"
- },
- {
- "t": "regex",
- "v": "/0/power$",
- "vt": "str",
- "case": false
- },
- {
- "t": "cont",
- "v": "/0/powerdc",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/0/powerfactor",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/0/reactivepower",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/0/temperature",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/0/voltage",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/0/yieldday",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/0/yieldtotal",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 11,
- "x": 830,
- "y": 1500,
- "wires": [
- [],
- [],
- [],
- [
- "e13d6c236e06609a",
- "eb0cb62d875d9e34"
- ],
- [],
- [],
- [],
- [],
- [],
- [
- "c50f6485785730c1"
- ],
- [
- "708616d4e74aa85e"
- ]
- ]
- },
- {
- "id": "2b52c2a59e9c8f0b",
- "type": "switch",
- "z": "67b46672db338c88",
- "name": "Moduldaten: BKW 1",
- "property": "topic",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "/1/current",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/1/power",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/1/voltage",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/1/yieldday",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/1/yieldtotal",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/2/current",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/2/power",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/2/voltage",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/2/yieldday",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/2/yieldtotal",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/3/current",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/3/power",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/3/voltage",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/3/yieldday",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/3/yieldtotal",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/4/current",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/4/power",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/4/voltage",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/4/yieldday",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/4/yieldtotal",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 20,
- "x": 840,
- "y": 720,
- "wires": [
- [
- "f2888baf32f9757e"
- ],
- [
- "eca0027d19a10001"
- ],
- [
- "02cf87cead824b86"
- ],
- [
- "5067959f63aef55b"
- ],
- [],
- [
- "1e3fefcb16c2a580"
- ],
- [
- "e81221ad5770f1f1"
- ],
- [
- "dfb38b3d0a716c38"
- ],
- [
- "d0607948bb69ef79"
- ],
- [],
- [
- "3b5754dfd699b1ea"
- ],
- [
- "1d313db997788c54"
- ],
- [
- "59f0b16502b687bc"
- ],
- [
- "41559b22ee47d5ce"
- ],
- [],
- [
- "f6a3e3e155f0684f"
- ],
- [
- "8059a3b5b4265775"
- ],
- [
- "85a670d34e40b084"
- ],
- [
- "4777aa1e61a119e3"
- ],
- []
- ]
- },
- {
- "id": "a357d504ee519fca",
- "type": "switch",
- "z": "67b46672db338c88",
- "name": "DTU-Daten",
- "property": "topic",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "/ip",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/hostname",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/rssi",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/uptime",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 4,
- "x": 770,
- "y": 360,
- "wires": [
- [
- "33c62c6a178ea499"
- ],
- [
- "61341a44a869d262"
- ],
- [
- "458d77308b829c5a"
- ],
- [
- "81fd6527fef968bd"
- ]
- ]
- },
- {
- "id": "49067a2d23f31022",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "459aaa63cf88a451",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "Gesamtproduktion",
- "format": "{{msg.payload}} kWh",
- "layout": "row-spread",
- "className": "",
- "x": 1230,
- "y": 1580,
- "wires": []
- },
- {
- "id": "e13d6c236e06609a",
- "type": "ui_gauge",
- "z": "67b46672db338c88",
- "name": "",
- "group": "459aaa63cf88a451",
- "order": 1,
- "width": "0",
- "height": "0",
- "gtype": "gage",
- "title": "Momentanleistung",
- "label": "W",
- "format": "{{value}}",
- "min": 0,
- "max": "2000",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "className": "",
- "x": 1230,
- "y": 1420,
- "wires": []
- },
- {
- "id": "c50f6485785730c1",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "459aaa63cf88a451",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "Tagesproduktion",
- "format": "{{msg.payload}} Wh",
- "layout": "row-spread",
- "className": "",
- "x": 1220,
- "y": 1540,
- "wires": []
- },
- {
- "id": "eca0027d19a10001",
- "type": "ui_gauge",
- "z": "67b46672db338c88",
- "name": "Panel 1: Momentanleistung",
- "group": "110d22d6abec3911",
- "order": 1,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "Momentanleistung P1",
- "label": "Watt",
- "format": "{{value}}",
- "min": 0,
- "max": "400",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "className": "",
- "x": 1260,
- "y": 500,
- "wires": []
- },
- {
- "id": "02cf87cead824b86",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "110d22d6abec3911",
- "order": 2,
- "width": 0,
- "height": 0,
- "name": "Panel 1: Spannung",
- "label": "Spannung",
- "format": "{{msg.payload}} Volt",
- "layout": "row-spread",
- "className": "",
- "x": 1230,
- "y": 580,
- "wires": []
- },
- {
- "id": "f2888baf32f9757e",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "110d22d6abec3911",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "Panel 1: Strom",
- "label": "Strom",
- "format": "{{msg.payload}} Ampere",
- "layout": "row-spread",
- "className": "",
- "x": 1220,
- "y": 460,
- "wires": []
- },
- {
- "id": "e81221ad5770f1f1",
- "type": "ui_gauge",
- "z": "67b46672db338c88",
- "name": "Panel 2: Momentanleistung",
- "group": "110d22d6abec3911",
- "order": 6,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "Momentanleistung P2",
- "label": "Watt",
- "format": "{{value}}",
- "min": 0,
- "max": "400",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "className": "",
- "x": 1260,
- "y": 720,
- "wires": []
- },
- {
- "id": "dfb38b3d0a716c38",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "110d22d6abec3911",
- "order": 7,
- "width": 0,
- "height": 0,
- "name": "Panel 2: Spannung",
- "label": "Spannung",
- "format": "{{msg.payload}} Volt",
- "layout": "row-spread",
- "className": "",
- "x": 1230,
- "y": 800,
- "wires": []
- },
- {
- "id": "1e3fefcb16c2a580",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "110d22d6abec3911",
- "order": 8,
- "width": 0,
- "height": 0,
- "name": "Panel 2: Strom",
- "label": "Strom",
- "format": "{{msg.payload}} Ampere",
- "layout": "row-spread",
- "className": "",
- "x": 1220,
- "y": 680,
- "wires": []
- },
- {
- "id": "5067959f63aef55b",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "110d22d6abec3911",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "Panel 1: Tagesproduktion",
- "label": "Tagesproduktion",
- "format": "{{msg.payload}} Wh",
- "layout": "row-spread",
- "className": "",
- "x": 1250,
- "y": 620,
- "wires": []
- },
- {
- "id": "d0607948bb69ef79",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "110d22d6abec3911",
- "order": 9,
- "width": 0,
- "height": 0,
- "name": "Panel 2: Tagesproduktion",
- "label": "Tagesproduktion",
- "format": "{{msg.payload}} Wh",
- "layout": "row-spread",
- "className": "",
- "x": 1250,
- "y": 840,
- "wires": []
- },
- {
- "id": "eb0cb62d875d9e34",
- "type": "ui_chart",
- "z": "67b46672db338c88",
- "name": "",
- "group": "459aaa63cf88a451",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "Leistungsverlauf",
- "chartType": "line",
- "legend": "false",
- "xformat": "HH:mm:ss",
- "interpolate": "linear",
- "nodata": "",
- "dot": false,
- "ymin": "0",
- "ymax": "2000",
- "removeOlder": "12",
- "removeOlderPoints": "",
- "removeOlderUnit": "3600",
- "cutout": 0,
- "useOneColor": false,
- "useUTC": false,
- "colors": [
- "#1f77b4",
- "#aec7e8",
- "#ff7f0e",
- "#2ca02c",
- "#98df8a",
- "#d62728",
- "#ff9896",
- "#9467bd",
- "#c5b0d5"
- ],
- "outputs": 1,
- "useDifferentColor": false,
- "className": "",
- "x": 1220,
- "y": 1460,
- "wires": [
- []
- ]
- },
- {
- "id": "61341a44a869d262",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "8a2b7e69bc92a27a",
- "order": 2,
- "width": "0",
- "height": "0",
- "name": "Hostname",
- "label": "Hostname",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "className": "",
- "x": 1210,
- "y": 320,
- "wires": []
- },
- {
- "id": "33c62c6a178ea499",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "8a2b7e69bc92a27a",
- "order": 3,
- "width": "0",
- "height": "0",
- "name": "IP-Adresse",
- "label": "IP-Adresse",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "className": "",
- "x": 1210,
- "y": 280,
- "wires": []
- },
- {
- "id": "7735ef1888d288bb",
- "type": "switch",
- "z": "67b46672db338c88",
- "name": "WR-Namen",
- "property": "topic",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "/name",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 770,
- "y": 300,
- "wires": [
- [
- "f35d012dc5b68713"
- ]
- ]
- },
- {
- "id": "458d77308b829c5a",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "8a2b7e69bc92a27a",
- "order": 4,
- "width": "0",
- "height": "0",
- "name": "WLAN-Signalstärke",
- "label": "WLAN-Signalstärke",
- "format": "{{msg.payload}} dBm",
- "layout": "row-spread",
- "className": "",
- "x": 1230,
- "y": 360,
- "wires": []
- },
- {
- "id": "f35d012dc5b68713",
- "type": "join",
- "z": "67b46672db338c88",
- "name": "Namen zusammenfügen",
- "mode": "custom",
- "build": "string",
- "property": "payload",
- "propertyType": "msg",
- "key": "topic",
- "joiner": ", ",
- "joinerType": "str",
- "accumulate": false,
- "timeout": "1",
- "count": "",
- "reduceRight": false,
- "reduceExp": "",
- "reduceInit": "",
- "reduceInitType": "",
- "reduceFixup": "",
- "x": 810,
- "y": 240,
- "wires": [
- [
- "a91e9ebe137a015a"
- ]
- ]
- },
- {
- "id": "a91e9ebe137a015a",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "d": true,
- "group": "8a2b7e69bc92a27a",
- "order": 5,
- "width": 0,
- "height": 0,
- "name": "Bediente Wechselrichter",
- "label": "Bediente Wechselrichter",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "className": "",
- "x": 1250,
- "y": 240,
- "wires": []
- },
- {
- "id": "731d9e4919b5d353",
- "type": "switch",
- "z": "67b46672db338c88",
- "name": "Wechselrichter-Seriennummer",
- "property": "topic",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "116162810751",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "116183924145",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 450,
- "y": 820,
- "wires": [
- [
- "2b52c2a59e9c8f0b",
- "07621bc29bdd8cde",
- "dd36e82b2c28f357",
- "8654a9845731a2a8"
- ],
- [
- "bf81db276f9dc887",
- "8235fbcdd150b8c9"
- ]
- ]
- },
- {
- "id": "1d313db997788c54",
- "type": "ui_gauge",
- "z": "67b46672db338c88",
- "name": "Panel 3: Momentanleistung",
- "group": "ce3549f1898bdf0b",
- "order": 1,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "Momentanleistung P3",
- "label": "Watt",
- "format": "{{value}}",
- "min": 0,
- "max": "400",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "className": "",
- "x": 1260,
- "y": 940,
- "wires": []
- },
- {
- "id": "59f0b16502b687bc",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "ce3549f1898bdf0b",
- "order": 2,
- "width": 0,
- "height": 0,
- "name": "Panel 3: Spannung",
- "label": "Spannung",
- "format": "{{msg.payload}} Volt",
- "layout": "row-spread",
- "className": "",
- "x": 1230,
- "y": 1020,
- "wires": []
- },
- {
- "id": "3b5754dfd699b1ea",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "ce3549f1898bdf0b",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "Panel 3: Strom",
- "label": "Strom",
- "format": "{{msg.payload}} Ampere",
- "layout": "row-spread",
- "className": "",
- "x": 1220,
- "y": 900,
- "wires": []
- },
- {
- "id": "41559b22ee47d5ce",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "ce3549f1898bdf0b",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "Panel 3: Tagesproduktion",
- "label": "Tagesproduktion",
- "format": "{{msg.payload}} Wh",
- "layout": "row-spread",
- "className": "",
- "x": 1250,
- "y": 1060,
- "wires": []
- },
- {
- "id": "8059a3b5b4265775",
- "type": "ui_gauge",
- "z": "67b46672db338c88",
- "name": "Panel 4: Momentanleistung",
- "group": "ce3549f1898bdf0b",
- "order": 5,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "Momentanleistung P4",
- "label": "Watt",
- "format": "{{value}}",
- "min": 0,
- "max": "400",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "className": "",
- "x": 1260,
- "y": 1160,
- "wires": []
- },
- {
- "id": "85a670d34e40b084",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "ce3549f1898bdf0b",
- "order": 6,
- "width": 0,
- "height": 0,
- "name": "Panel 4: Spannung",
- "label": "Spannung",
- "format": "{{msg.payload}} Volt",
- "layout": "row-spread",
- "className": "",
- "x": 1230,
- "y": 1240,
- "wires": []
- },
- {
- "id": "f6a3e3e155f0684f",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "ce3549f1898bdf0b",
- "order": 7,
- "width": 0,
- "height": 0,
- "name": "Panel 4: Strom",
- "label": "Strom",
- "format": "{{msg.payload}} Ampere",
- "layout": "row-spread",
- "className": "",
- "x": 1220,
- "y": 1120,
- "wires": []
- },
- {
- "id": "4777aa1e61a119e3",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "ce3549f1898bdf0b",
- "order": 8,
- "width": 0,
- "height": 0,
- "name": "Panel 4: Tagesproduktion",
- "label": "Tagesproduktion",
- "format": "{{msg.payload}} Wh",
- "layout": "row-spread",
- "className": "",
- "x": 1250,
- "y": 1280,
- "wires": []
- },
- {
- "id": "774ddfbab4253231",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "8a2b7e69bc92a27a",
- "order": 1,
- "width": "0",
- "height": "0",
- "name": "",
- "label": "Uptime: ",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "className": "",
- "x": 1200,
- "y": 400,
- "wires": []
- },
- {
- "id": "dd36e82b2c28f357",
- "type": "switch",
- "z": "67b46672db338c88",
- "name": "Status Display",
- "property": "topic",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "/reachable",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/producing",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "/last_update",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 3,
- "x": 780,
- "y": 1780,
- "wires": [
- [
- "9a055110d5a0a95e"
- ],
- [
- "be479ffc4936d189",
- "153723416ff79191"
- ],
- [
- "af7e46b147d1da2a"
- ]
- ]
- },
- {
- "id": "9a055110d5a0a95e",
- "type": "ui_led",
- "z": "67b46672db338c88",
- "order": 2,
- "group": "2a952f6bd293d8ca",
- "width": "0",
- "height": "0",
- "label": "Reachable",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "#ff0000",
- "value": "0",
- "valueType": "num"
- },
- {
- "color": "#008000",
- "value": "1",
- "valueType": "num"
- }
- ],
- "allowColorForValueInMessage": false,
- "shape": "square",
- "showGlow": true,
- "name": "Reachable",
- "x": 1210,
- "y": 1660,
- "wires": [],
- "icon": "node-red/light.svg"
- },
- {
- "id": "be479ffc4936d189",
- "type": "ui_led",
- "z": "67b46672db338c88",
- "order": 1,
- "group": "2a952f6bd293d8ca",
- "width": "0",
- "height": "0",
- "label": "Producing",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "#ff0000",
- "value": "0",
- "valueType": "num"
- },
- {
- "color": "#008000",
- "value": "1",
- "valueType": "num"
- }
- ],
- "allowColorForValueInMessage": false,
- "shape": "square",
- "showGlow": true,
- "name": "Producing",
- "x": 1200,
- "y": 1760,
- "wires": [],
- "icon": "node-red/alert.svg"
- },
- {
- "id": "f2a7318464db2f10",
- "type": "debug",
- "z": "67b46672db338c88",
- "name": "",
- "active": true,
- "tosidebar": false,
- "console": false,
- "tostatus": true,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "payload",
- "statusType": "auto",
- "x": 1210,
- "y": 1880,
- "wires": []
- },
- {
- "id": "551d18d5e0a9f085",
- "type": "moment",
- "z": "67b46672db338c88",
- "name": "",
- "topic": "",
- "input": "payload",
- "inputType": "msg",
- "inTz": "ETC/GMT",
- "adjAmount": "0",
- "adjType": "hours",
- "adjDir": "subtract",
- "format": "dd DD. MMMM YYYY HH:mm:ss ",
- "locale": "de_DE",
- "output": "",
- "outputType": "msg",
- "outTz": "Europe/Berlin",
- "x": 1160,
- "y": 1840,
- "wires": [
- [
- "f2a7318464db2f10",
- "9d372935bfd1ab7a"
- ]
- ]
- },
- {
- "id": "9d372935bfd1ab7a",
- "type": "ui_text",
- "z": "67b46672db338c88",
- "group": "2a952f6bd293d8ca",
- "order": 4,
- "width": "4",
- "height": 2,
- "name": "Last Update",
- "label": "last update",
- "format": "{{msg.payload}}",
- "layout": "col-center",
- "className": "",
- "x": 1210,
- "y": 1800,
- "wires": []
- },
- {
- "id": "af7e46b147d1da2a",
- "type": "function",
- "z": "67b46672db338c88",
- "name": "Convert to ms",
- "func": "var DateTime = msg.payload * 1000;\nreturn {payload:DateTime};",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 960,
- "y": 1840,
- "wires": [
- [
- "551d18d5e0a9f085"
- ]
- ]
- },
- {
- "id": "81fd6527fef968bd",
- "type": "function",
- "z": "67b46672db338c88",
- "name": "Convert to \"h m s\"",
- "func": "var seconds = msg.payload;\nvar h = Math.floor(seconds / (60 * 60));\nvar m = Math.floor(seconds % (60 * 60) / 60);\nvar s = Math.floor(seconds % 60 / 1);\nvar hms = h + \"h \" + m + \"m \" + s + \"s\";\n\nnode.status({\n fill: \"blue\", shape: \"ring\", text: \"Uptime: \" + hms\n});\n\nreturn {payload:hms};",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 1030,
- "y": 400,
- "wires": [
- [
- "774ddfbab4253231"
- ]
- ]
- },
- {
- "id": "708616d4e74aa85e",
- "type": "function",
- "z": "67b46672db338c88",
- "name": "round up",
- "func": "var kWh = msg.payload;\nvar kWh1 = parseFloat(kWh.toFixed(1));\nreturn {payload:kWh1};",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 1080,
- "y": 1620,
- "wires": [
- [
- "49067a2d23f31022"
- ]
- ]
- },
- {
- "id": "a41f365b540aab2e",
- "type": "comment",
- "z": "67b46672db338c88",
- "name": "Dashboard DTU 1: GS",
- "info": "",
- "x": 160,
- "y": 200,
- "wires": []
- },
- {
- "id": "3ed472415d59252f",
- "type": "comment",
- "z": "67b46672db338c88",
- "name": "Dashboard Panel 1 - 4",
- "info": "",
- "x": 160,
- "y": 580,
- "wires": []
- },
- {
- "id": "288b23a279db5e93",
- "type": "comment",
- "z": "67b46672db338c88",
- "name": "Dashboard BKW1: HM-1500 GS",
- "info": "",
- "x": 170,
- "y": 1520,
- "wires": []
- },
- {
- "id": "9b311c3f11b2edab",
- "type": "comment",
- "z": "67b46672db338c88",
- "name": "Dashboard WR-Status",
- "info": "",
- "x": 160,
- "y": 1720,
- "wires": []
- },
- {
- "id": "bf81db276f9dc887",
- "type": "link out",
- "z": "67b46672db338c88",
- "name": "Open-DTU-WR-2-Out",
- "mode": "link",
- "links": [
- "2b68ad87487c88dc"
- ],
- "x": 685,
- "y": 900,
- "wires": []
- },
- {
- "id": "17a4c555694b5d00",
- "type": "join",
- "z": "67b46672db338c88",
- "name": "",
- "mode": "custom",
- "build": "object",
- "property": "payload",
- "propertyType": "msg",
- "key": "topic",
- "joiner": "\\n",
- "joinerType": "str",
- "accumulate": false,
- "timeout": "3",
- "count": "",
- "reduceRight": false,
- "reduceExp": "",
- "reduceInit": "",
- "reduceInitType": "",
- "reduceFixup": "",
- "x": 270,
- "y": 1120,
- "wires": [
- [
- "4a876dd3052e804d",
- "ee70914d74c5b307"
- ]
- ]
- },
- {
- "id": "4de39906772d3736",
- "type": "function",
- "z": "67b46672db338c88",
- "name": "function 2",
- "func": "// /home/JW/solar/116162810751/0/yieldtotal -> 0yieldtotal\n// /home/JW/solar/116162810751/4/power -> 4power\nvar words = msg.topic.split('/');\nvar Serial = (words[4]);\nvar Panel = (words[5]);\nvar FieldName = (words[6]);\nFieldName = FieldName + Panel ;\nmsg.topic=FieldName;\nmsg.Serial= Serial;\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 260,
- "y": 1060,
- "wires": [
- [
- "17a4c555694b5d00",
- "b7d52756a7f01d12"
- ]
- ]
- },
- {
- "id": "4a876dd3052e804d",
- "type": "function",
- "z": "67b46672db338c88",
- "name": "function 3",
- "func": "var Serial = msg.Serial;\n\nvar power0 = msg.payload.power0;\nvar power1 = msg.payload.power1;\nvar power2 = msg.payload.power2;\nvar power3 = msg.payload.power3;\nvar power4 = msg.payload.power4;\n\nvar yieldday0 = msg.payload.yieldday0;\nvar yieldday1 = msg.payload.yieldday1;\nvar yieldday2 = msg.payload.yieldday2;\nvar yieldday3 = msg.payload.yieldday3;\nvar yieldday4 = msg.payload.yieldday4;\n\nvar yieldtotal0 = msg.payload.yieldtotal0;\nvar yieldtotal1 = msg.payload.yieldtotal1;\nvar yieldtotal2 = msg.payload.yieldtotal2;\nvar yieldtotal3 = msg.payload.yieldtotal3;\nvar yieldtotal4 = msg.payload.yieldtotal4;\n\nvar voltage0 = msg.payload.voltage0;\nvar voltage1 = msg.payload.voltage1;\nvar voltage2 = msg.payload.voltage2;\nvar voltage3 = msg.payload.voltage3;\nvar voltage4 = msg.payload.voltage4;\n\nvar current0 = msg.payload.current0;\nvar current1 = msg.payload.current1;\nvar current2 = msg.payload.current2;\nvar current3 = msg.payload.current3;\nvar current4 = msg.payload.current4;\n\n// Values from WR only (output to Grid)\nvar Temp = msg.payload.temperature0;\nvar Voltage = msg.payload.voltage0;\nvar Freq = msg.payload.frequency0;\n\nvar Influx = [{\n Serial: Serial,\n\n Power0: power0,\n Power1: power1,\n Power2: power2,\n Power3: power3,\n Power4: power4,\n\n YieldDay0: yieldday0,\n YieldDay1: yieldday1,\n YieldDay2: yieldday2,\n YieldDay3: yieldday3,\n YieldDay4: yieldday4,\n\n YieldTotal0: yieldtotal0,\n YieldTotal1: yieldtotal1,\n YieldTotal2: yieldtotal2,\n YieldTotal3: yieldtotal3,\n YieldTotal4: yieldtotal4,\n\n Voltage0: voltage0,\n Voltage1: voltage1,\n Voltage2: voltage2,\n Voltage3: voltage3,\n Voltage4: voltage4,\n\n Current0: current0,\n Current1: current1,\n Current2: current2,\n Current3: current3,\n Current4: current4,\n\n Temp: Temp,\n Voltage: Voltage,\n Freq: Freq\n\n}]\n\nnode.status({\n fill: \"blue\", shape: \"ring\", text: Serial + \" \"\n});\n\nvar Influx1 = { payload: Influx };\nvar time = Date.now();\nvar Time1 = { payload: time };\n\nreturn [Influx1, Time1];\n\n",
- "outputs": 2,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 260,
- "y": 1180,
- "wires": [
- [
- "0e5a2761cc02ce2f",
- "021a0677dc11cef7"
- ],
- [
- "fd4f2368225e8e13"
- ]
- ]
- },
- {
- "id": "0e5a2761cc02ce2f",
- "type": "debug",
- "z": "67b46672db338c88",
- "name": "debug 16",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "statusVal": "",
- "statusType": "auto",
- "x": 460,
- "y": 1160,
- "wires": []
- },
- {
- "id": "021a0677dc11cef7",
- "type": "link out",
- "z": "67b46672db338c88",
- "name": "WR-1-Influx-Out",
- "mode": "link",
- "links": [
- "33ccdd9af5d41741"
- ],
- "x": 415,
- "y": 1200,
- "wires": []
- },
- {
- "id": "b7d52756a7f01d12",
- "type": "debug",
- "z": "67b46672db338c88",
- "name": "debug 17",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "statusVal": "",
- "statusType": "auto",
- "x": 460,
- "y": 1000,
- "wires": []
- },
- {
- "id": "ee70914d74c5b307",
- "type": "debug",
- "z": "67b46672db338c88",
- "name": "debug 18",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 460,
- "y": 1080,
- "wires": []
- },
- {
- "id": "1dd479370234a46e",
- "type": "join",
- "z": "67b46672db338c88",
- "name": "",
- "mode": "custom",
- "build": "object",
- "property": "payload",
- "propertyType": "msg",
- "key": "topic",
- "joiner": "\\n",
- "joinerType": "str",
- "accumulate": false,
- "timeout": "3",
- "count": "",
- "reduceRight": false,
- "reduceExp": "",
- "reduceInit": "",
- "reduceInitType": "",
- "reduceFixup": "",
- "x": 750,
- "y": 1120,
- "wires": [
- [
- "43c6426e3b12901c",
- "6a469cbaba841203"
- ]
- ]
- },
- {
- "id": "d03113ef9277bbcc",
- "type": "function",
- "z": "67b46672db338c88",
- "name": "function 4",
- "func": "// /home/JW/solar/116162810751/0/yieldtotal -> 0yieldtotal\n// /home/JW/solar/116162810751/4/power -> 4power\nvar words = msg.topic.split('/');\nvar Serial = (words[4]);\nvar Panel = (words[5]);\nvar FieldName = (words[6]);\nFieldName = FieldName + Panel;\nmsg.topic = FieldName;\nmsg.Serial = Serial;\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 740,
- "y": 1060,
- "wires": [
- [
- "1dd479370234a46e",
- "490bccec8509d8b8"
- ]
- ]
- },
- {
- "id": "43c6426e3b12901c",
- "type": "function",
- "z": "67b46672db338c88",
- "name": "function 5",
- "func": "var Serial = msg.Serial;\n\nvar power0 = msg.payload.power0;\nvar power1 = msg.payload.power1;\nvar power2 = msg.payload.power2;\nvar power3 = msg.payload.power3;\nvar power4 = msg.payload.power4;\n\nvar yieldday0 = msg.payload.yieldday0;\nvar yieldday1 = msg.payload.yieldday1;\nvar yieldday2 = msg.payload.yieldday2;\nvar yieldday3 = msg.payload.yieldday3;\nvar yieldday4 = msg.payload.yieldday4;\n\nvar yieldtotal0 = msg.payload.yieldtotal0;\nvar yieldtotal1 = msg.payload.yieldtotal1;\nvar yieldtotal2 = msg.payload.yieldtotal2;\nvar yieldtotal3 = msg.payload.yieldtotal3;\nvar yieldtotal4 = msg.payload.yieldtotal4;\n\nvar voltage0 = msg.payload.voltage0;\nvar voltage1 = msg.payload.voltage1;\nvar voltage2 = msg.payload.voltage2;\nvar voltage3 = msg.payload.voltage3;\nvar voltage4 = msg.payload.voltage4;\n\nvar current0 = msg.payload.current0;\nvar current1 = msg.payload.current1;\nvar current2 = msg.payload.current2;\nvar current3 = msg.payload.current3;\nvar current4 = msg.payload.current4;\n\n// Values from WR only (output to Grid)\nvar Temp = msg.payload.temperature0;\nvar Voltage = msg.payload.voltage0;\nvar Freq = msg.payload.frequency0;\n\nvar Influx = [{\n Serial: Serial,\n\n Power0: power0,\n Power1: power1,\n Power2: power2,\n Power3: power3,\n Power4: power4,\n\n YieldDay0: yieldday0,\n YieldDay1: yieldday1,\n YieldDay2: yieldday2,\n YieldDay3: yieldday3,\n YieldDay4: yieldday4,\n\n YieldTotal0: yieldtotal0,\n YieldTotal1: yieldtotal1,\n YieldTotal2: yieldtotal2,\n YieldTotal3: yieldtotal3,\n YieldTotal4: yieldtotal4,\n\n Voltage0: voltage0,\n Voltage1: voltage1,\n Voltage2: voltage2,\n Voltage3: voltage3,\n Voltage4: voltage4,\n\n Current0: current0,\n Current1: current1,\n Current2: current2,\n Current3: current3,\n Current4: current4,\n\n Temp: Temp,\n Voltage: Voltage,\n Freq: Freq\n\n}]\n\nnode.status({\n fill: \"blue\", shape: \"ring\", text: Serial + \" \"\n});\n\nvar Influx1 = { payload: Influx };\nvar time = Date.now();\nvar Time1 = { payload: time };\n\nreturn [Influx1, Time1];\n\n",
- "outputs": 2,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 740,
- "y": 1180,
- "wires": [
- [
- "173bc3bef4216221",
- "02bc127bc7371a0f"
- ],
- [
- "4dd518daec4282be"
- ]
- ]
- },
- {
- "id": "173bc3bef4216221",
- "type": "debug",
- "z": "67b46672db338c88",
- "name": "Influx-DB-Out",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 940,
- "y": 1160,
- "wires": []
- },
- {
- "id": "02bc127bc7371a0f",
- "type": "link out",
- "z": "67b46672db338c88",
- "name": "WR-2-Influx-Out",
- "mode": "link",
- "links": [
- "33ccdd9af5d41741"
- ],
- "x": 885,
- "y": 1200,
- "wires": []
- },
- {
- "id": "490bccec8509d8b8",
- "type": "debug",
- "z": "67b46672db338c88",
- "name": "debug 20",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "statusVal": "",
- "statusType": "auto",
- "x": 920,
- "y": 1020,
- "wires": []
- },
- {
- "id": "6a469cbaba841203",
- "type": "debug",
- "z": "67b46672db338c88",
- "name": "debug 21",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "statusVal": "",
- "statusType": "auto",
- "x": 920,
- "y": 1080,
- "wires": []
- },
- {
- "id": "153723416ff79191",
- "type": "function",
- "z": "67b46672db338c88",
- "name": "Store \"Producing\" as Global Variable",
- "func": "var Producing = msg.payload;\nglobal.set(\"WR1-Producing\", Producing)\n\nnode.status({\n fill: \"blue\", shape: \"ring\", text: \"Producing: \"+ Producing\n});\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 1290,
- "y": 1700,
- "wires": [
- []
- ]
- },
- {
- "id": "8654a9845731a2a8",
- "type": "switch",
- "z": "67b46672db338c88",
- "name": "",
- "property": "WR1-Producing",
- "propertyType": "global",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "num"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 270,
- "y": 1000,
- "wires": [
- [
- "4de39906772d3736"
- ]
- ]
- },
- {
- "id": "8235fbcdd150b8c9",
- "type": "switch",
- "z": "67b46672db338c88",
- "name": "",
- "property": "WR1-Producing",
- "propertyType": "global",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 730,
- "y": 1000,
- "wires": [
- [
- "d03113ef9277bbcc"
- ]
- ]
- },
- {
- "id": "fd4f2368225e8e13",
- "type": "moment",
- "z": "67b46672db338c88",
- "name": "",
- "topic": "",
- "input": "payload",
- "inputType": "msg",
- "inTz": "ETC/GMT",
- "adjAmount": "0",
- "adjType": "hours",
- "adjDir": "subtract",
- "format": "dd DD. MMMM YYYY HH:mm:ss ",
- "locale": "de_DE",
- "output": "",
- "outputType": "msg",
- "outTz": "Europe/Berlin",
- "x": 500,
- "y": 1240,
- "wires": [
- [
- "24c162118cc9b596"
- ]
- ]
- },
- {
- "id": "24c162118cc9b596",
- "type": "debug",
- "z": "67b46672db338c88",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": true,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "payload",
- "statusType": "auto",
- "x": 470,
- "y": 1280,
- "wires": []
- },
- {
- "id": "4dd518daec4282be",
- "type": "moment",
- "z": "67b46672db338c88",
- "name": "",
- "topic": "",
- "input": "payload",
- "inputType": "msg",
- "inTz": "ETC/GMT",
- "adjAmount": "0",
- "adjType": "hours",
- "adjDir": "subtract",
- "format": "dd DD. MMMM YYYY HH:mm:ss ",
- "locale": "de_DE",
- "output": "",
- "outputType": "msg",
- "outTz": "Europe/Berlin",
- "x": 960,
- "y": 1240,
- "wires": [
- [
- "f756a4e84b28890f"
- ]
- ]
- },
- {
- "id": "f756a4e84b28890f",
- "type": "debug",
- "z": "67b46672db338c88",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": true,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "payload",
- "statusType": "auto",
- "x": 930,
- "y": 1280,
- "wires": []
- },
- {
- "id": "7c9e67f106d6c33f",
- "type": "influxdb out",
- "z": "67b46672db338c88",
- "influxdb": "5eb30425.ba7dbc",
- "name": "JW (local)",
- "measurement": "Werte",
- "precision": "",
- "retentionPolicy": "",
- "database": "",
- "retentionPolicyV18Flux": "",
- "org": "",
- "bucket": "",
- "x": 820,
- "y": 60,
- "wires": []
- },
- {
- "id": "33ccdd9af5d41741",
- "type": "link in",
- "z": "67b46672db338c88",
- "name": "Influx-All-In",
- "links": [
- "e9ebc005ec9d3a49",
- "6df4b532721b259e",
- "3b2fe42d8352705c",
- "b57b6d6933cc9b82",
- "15deadbca4d5b209",
- "021a0677dc11cef7",
- "02bc127bc7371a0f"
- ],
- "x": 605,
- "y": 60,
- "wires": [
- [
- "7c9e67f106d6c33f"
- ]
- ]
- },
- {
- "id": "706f124bcaf5c0ad",
- "type": "comment",
- "z": "67b46672db338c88",
- "name": "write to Influx DB",
- "info": "",
- "x": 140,
- "y": 60,
- "wires": []
- },
- {
- "id": "1aee3213a7893e0e",
- "type": "mqtt-broker",
- "name": "",
- "broker": "192.168.123.16",
- "port": "1883",
- "clientid": "",
- "autoConnect": true,
- "usetls": false,
- "protocolVersion": "4",
- "keepalive": "60",
- "cleansession": true,
- "autoUnsubscribe": true,
- "birthTopic": "",
- "birthQos": "0",
- "birthPayload": "",
- "birthMsg": {},
- "closeTopic": "",
- "closeQos": "0",
- "closePayload": "",
- "closeMsg": {},
- "willTopic": "",
- "willQos": "0",
- "willPayload": "",
- "willMsg": {},
- "userProps": "",
- "sessionExpiry": ""
- },
- {
- "id": "459aaa63cf88a451",
- "type": "ui_group",
- "name": "BKW: HM-1500 GS-WR-1",
- "tab": "e7a466ecbe93e634",
- "order": 3,
- "disp": true,
- "width": "5",
- "collapse": false,
- "className": ""
- },
- {
- "id": "110d22d6abec3911",
- "type": "ui_group",
- "name": "Panel 1 + 2-WR-1",
- "tab": "e7a466ecbe93e634",
- "order": 4,
- "disp": true,
- "width": "4",
- "collapse": false,
- "className": ""
- },
- {
- "id": "8a2b7e69bc92a27a",
- "type": "ui_group",
- "name": "DTU: GS-WR-1",
- "tab": "e7a466ecbe93e634",
- "order": 1,
- "disp": true,
- "width": "5",
- "collapse": false,
- "className": ""
- },
- {
- "id": "ce3549f1898bdf0b",
- "type": "ui_group",
- "name": "Panel 3 + 4-WR-1",
- "tab": "e7a466ecbe93e634",
- "order": 5,
- "disp": true,
- "width": "4",
- "collapse": false,
- "className": ""
- },
- {
- "id": "2a952f6bd293d8ca",
- "type": "ui_group",
- "name": "WR-Status-WR-1",
- "tab": "e7a466ecbe93e634",
- "order": 2,
- "disp": true,
- "width": "4",
- "collapse": false,
- "className": ""
- },
- {
- "id": "5eb30425.ba7dbc",
- "type": "influxdb",
- "hostname": "192.168.178.4",
- "port": "8086",
- "protocol": "http",
- "database": "JW01",
- "name": "JW01",
- "usetls": false,
- "tls": "",
- "influxdbVersion": "1.x",
- "url": "",
- "rejectUnauthorized": false
- },
- {
- "id": "e7a466ecbe93e634",
- "type": "ui_tab",
- "name": "Solardaten WR-1",
- "icon": "dashboard",
- "order": 1,
- "disabled": false,
- "hidden": false
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement