[
    {
        "id": "76152aa0c68a5f0a",
        "type": "tab",
        "label": "RUT950",
        "disabled": true,
        "info": "",
        "env": []
    },
    {
        "id": "9f731452ee650682",
        "type": "mqtt in",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "topic": "router/id",
        "qos": "0",
        "datatype": "auto-detect",
        "broker": "081c329f4587743d",
        "nl": false,
        "rap": false,
        "inputs": 0,
        "x": 400,
        "y": 100,
        "wires": [
            [
                "885aac6655c0e7a5"
            ]
        ]
    },
    {
        "id": "885aac6655c0e7a5",
        "type": "debug",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "active": true,
        "tosidebar": false,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 550,
        "y": 100,
        "wires": []
    },
    {
        "id": "029168e00f95fbbc",
        "type": "mqtt out",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "topic": "",
        "qos": "1",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "081c329f4587743d",
        "x": 390,
        "y": 40,
        "wires": []
    },
    {
        "id": "016c2a09d359881a",
        "type": "inject",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": "1",
        "topic": "router/get",
        "payload": "id",
        "payloadType": "str",
        "x": 130,
        "y": 40,
        "wires": [
            [
                "029168e00f95fbbc"
            ]
        ]
    },
    {
        "id": "1374e1758c9e5622",
        "type": "inject",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "3",
        "topic": "router/get",
        "payload": "uptime",
        "payloadType": "str",
        "x": 150,
        "y": 240,
        "wires": [
            [
                "dd69119415feaf79"
            ]
        ]
    },
    {
        "id": "dc8fd43069f2e760",
        "type": "inject",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "2",
        "topic": "router/get",
        "payload": "signal",
        "payloadType": "str",
        "x": 150,
        "y": 200,
        "wires": [
            [
                "dd69119415feaf79"
            ]
        ]
    },
    {
        "id": "4aeb115713ae38aa",
        "type": "inject",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "7",
        "topic": "router/get",
        "payload": "network",
        "payloadType": "str",
        "x": 150,
        "y": 360,
        "wires": [
            [
                "dd69119415feaf79"
            ]
        ]
    },
    {
        "id": "e2a6117fe75b0a16",
        "type": "inject",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "5",
        "topic": "router/get",
        "payload": "operator",
        "payloadType": "str",
        "x": 160,
        "y": 280,
        "wires": [
            [
                "dd69119415feaf79"
            ]
        ]
    },
    {
        "id": "6fd0598d9c1043fe",
        "type": "inject",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "6",
        "topic": "router/get",
        "payload": "connection",
        "payloadType": "str",
        "x": 160,
        "y": 320,
        "wires": [
            [
                "dd69119415feaf79"
            ]
        ]
    },
    {
        "id": "dd69119415feaf79",
        "type": "mqtt out",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "topic": "",
        "qos": "0",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "081c329f4587743d",
        "x": 750,
        "y": 260,
        "wires": []
    },
    {
        "id": "9f643598e2a3f01b",
        "type": "inject",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "1",
        "topic": "router/get",
        "payload": "temperature",
        "payloadType": "str",
        "x": 170,
        "y": 160,
        "wires": [
            [
                "dd69119415feaf79"
            ]
        ]
    },
    {
        "id": "ff6b08c75354c8ba",
        "type": "inject",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": "1",
        "topic": "router/get",
        "payload": "name",
        "payloadType": "str",
        "x": 140,
        "y": 80,
        "wires": [
            [
                "029168e00f95fbbc"
            ]
        ]
    },
    {
        "id": "8233264f4e15760d",
        "type": "mqtt in",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "topic": "router/+/+",
        "qos": "0",
        "datatype": "auto",
        "broker": "081c329f4587743d",
        "nl": false,
        "rap": false,
        "inputs": 0,
        "x": 120,
        "y": 660,
        "wires": [
            [
                "383cf0a83f99e701",
                "679b8b22371fb950"
            ]
        ]
    },
    {
        "id": "383cf0a83f99e701",
        "type": "debug",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 270,
        "y": 620,
        "wires": []
    },
    {
        "id": "679b8b22371fb950",
        "type": "switch",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "property": "topic",
        "propertyType": "msg",
        "rules": [
            {
                "t": "cont",
                "v": "signal",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "temperature",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "operator",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "connection",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "network",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "uptime",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "name",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "wan",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 8,
        "x": 270,
        "y": 700,
        "wires": [
            [
                "a4ca3b0b2d9cbbd1",
                "7d75401213d1569e"
            ],
            [
                "600addddb81e945b"
            ],
            [
                "5c49114fe6fbe892"
            ],
            [
                "caaf7cdd1659ee36"
            ],
            [
                "cea06d47a7e03abf"
            ],
            [
                "3801e2e63661b504"
            ],
            [
                "b72040b01fb2aea4"
            ],
            [
                "ad61bf3a4a7ab540"
            ]
        ]
    },
    {
        "id": "5e0e5338b9f78ddb",
        "type": "ui_text",
        "z": "76152aa0c68a5f0a",
        "group": "d496d47dd75e010d",
        "order": 1,
        "width": "",
        "height": "",
        "name": "",
        "label": "",
        "format": "{{msg.payload}}dB",
        "layout": "",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": "",
        "color": "#000000",
        "x": 390,
        "y": 1100,
        "wires": []
    },
    {
        "id": "475421b73a8b618e",
        "type": "change",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "RSSI",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 230,
        "y": 1100,
        "wires": [
            [
                "5e0e5338b9f78ddb"
            ]
        ]
    },
    {
        "id": "954b93fc8e756a00",
        "type": "switch",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "property": "RSSI",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gt",
                "v": "-65",
                "vt": "num"
            },
            {
                "t": "gt",
                "v": "-75",
                "vt": "num"
            },
            {
                "t": "gt",
                "v": "-85",
                "vt": "num"
            },
            {
                "t": "gt",
                "v": "-95",
                "vt": "num"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "false",
        "repair": false,
        "outputs": 5,
        "x": 210,
        "y": 1220,
        "wires": [
            [
                "e4d28c6fcc93ea5b"
            ],
            [
                "679fbe0f3b6fd170"
            ],
            [
                "67303ad54420b4b5"
            ],
            [
                "95d64faeaf7d4423"
            ],
            [
                "c480e66f789d7ddd"
            ]
        ]
    },
    {
        "id": "e4d28c6fcc93ea5b",
        "type": "change",
        "z": "76152aa0c68a5f0a",
        "name": "Excellent",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Excellent",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 400,
        "y": 1140,
        "wires": [
            [
                "d6c97c4c620b2fa2"
            ]
        ]
    },
    {
        "id": "679fbe0f3b6fd170",
        "type": "change",
        "z": "76152aa0c68a5f0a",
        "name": "Good",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Good",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 390,
        "y": 1180,
        "wires": [
            [
                "d6c97c4c620b2fa2"
            ]
        ]
    },
    {
        "id": "67303ad54420b4b5",
        "type": "change",
        "z": "76152aa0c68a5f0a",
        "name": "Fair",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Fair",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 390,
        "y": 1220,
        "wires": [
            [
                "d6c97c4c620b2fa2"
            ]
        ]
    },
    {
        "id": "95d64faeaf7d4423",
        "type": "change",
        "z": "76152aa0c68a5f0a",
        "name": "Poor",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Poor",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 390,
        "y": 1260,
        "wires": [
            [
                "d6c97c4c620b2fa2"
            ]
        ]
    },
    {
        "id": "c480e66f789d7ddd",
        "type": "change",
        "z": "76152aa0c68a5f0a",
        "name": "No Signal",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "No Signal",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 400,
        "y": 1300,
        "wires": [
            [
                "d6c97c4c620b2fa2"
            ]
        ]
    },
    {
        "id": "a4ca3b0b2d9cbbd1",
        "type": "link out",
        "z": "76152aa0c68a5f0a",
        "name": "RSSI Update",
        "mode": "link",
        "links": [
            "64a2329f583cabe8"
        ],
        "x": 415,
        "y": 600,
        "wires": []
    },
    {
        "id": "64a2329f583cabe8",
        "type": "link in",
        "z": "76152aa0c68a5f0a",
        "name": "RSSI Update",
        "links": [
            "a4ca3b0b2d9cbbd1"
        ],
        "x": 95,
        "y": 1180,
        "wires": [
            [
                "954b93fc8e756a00",
                "475421b73a8b618e"
            ]
        ]
    },
    {
        "id": "d6c97c4c620b2fa2",
        "type": "change",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "signalStrength",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 620,
        "y": 1220,
        "wires": [
            [
                "09efc7fa8d2dbe8b"
            ]
        ]
    },
    {
        "id": "09efc7fa8d2dbe8b",
        "type": "ui_text",
        "z": "76152aa0c68a5f0a",
        "group": "d496d47dd75e010d",
        "order": 2,
        "width": "",
        "height": "",
        "name": "",
        "label": "",
        "format": "{{msg.payload}}",
        "layout": "",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": "",
        "color": "#000000",
        "x": 640,
        "y": 1280,
        "wires": []
    },
    {
        "id": "a9ec2b33f969940c",
        "type": "mqtt out",
        "z": "76152aa0c68a5f0a",
        "name": "Temperatur",
        "topic": "technik/rut950/temperatur",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "081c329f4587743d",
        "x": 730,
        "y": 660,
        "wires": []
    },
    {
        "id": "600addddb81e945b",
        "type": "function",
        "z": "76152aa0c68a5f0a",
        "name": "Temp. umrechnen",
        "func": "msg.payload = Math.round (msg.payload / 10) + \"°C\"\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 530,
        "y": 660,
        "wires": [
            [
                "a9ec2b33f969940c"
            ]
        ]
    },
    {
        "id": "3801e2e63661b504",
        "type": "function",
        "z": "76152aa0c68a5f0a",
        "name": "convUptime",
        "func": "let totalSeconds = parseInt(msg.payload);\n\nif (isNaN(totalSeconds)) return null;\n\nconst d = Math.floor(totalSeconds / 86400);\ntotalSeconds %= 86400;\nconst h = Math.floor(totalSeconds / 3600);\ntotalSeconds %= 3600;\nconst m = Math.floor(totalSeconds / 60);\nconst s = totalSeconds % 60;\n\n// Array für die aktiven Teile erstellen\nlet parts = [];\nif (d > 0) parts.push(`${d}d`);\nif (h > 0) parts.push(`${h}h`);\nif (m > 0) parts.push(`${m}m`);\nif (s > 0 || parts.length === 0) parts.push(`${s}s`); // s zeigen, wenn alles 0 ist\n\nmsg.payload = parts.join(\" \");\nreturn msg;\n\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 490,
        "y": 800,
        "wires": [
            [
                "2853a01d5f85aa7b"
            ]
        ]
    },
    {
        "id": "2853a01d5f85aa7b",
        "type": "mqtt out",
        "z": "76152aa0c68a5f0a",
        "name": "Uptime",
        "topic": "technik/rut950/uptime",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "081c329f4587743d",
        "x": 740,
        "y": 820,
        "wires": []
    },
    {
        "id": "5c49114fe6fbe892",
        "type": "mqtt out",
        "z": "76152aa0c68a5f0a",
        "name": "Operator",
        "topic": "technik/rut950/operator",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "081c329f4587743d",
        "x": 740,
        "y": 700,
        "wires": []
    },
    {
        "id": "caaf7cdd1659ee36",
        "type": "mqtt out",
        "z": "76152aa0c68a5f0a",
        "name": "Verbindung",
        "topic": "technik/rut950/connection",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "081c329f4587743d",
        "x": 730,
        "y": 740,
        "wires": []
    },
    {
        "id": "cea06d47a7e03abf",
        "type": "mqtt out",
        "z": "76152aa0c68a5f0a",
        "name": "Network",
        "topic": "technik/rut950/network",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "081c329f4587743d",
        "x": 740,
        "y": 780,
        "wires": []
    },
    {
        "id": "b72040b01fb2aea4",
        "type": "mqtt out",
        "z": "76152aa0c68a5f0a",
        "name": "Name",
        "topic": "technik/rut950/name",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "081c329f4587743d",
        "x": 750,
        "y": 860,
        "wires": []
    },
    {
        "id": "dbea6cceacbfb9d6",
        "type": "mqtt out",
        "z": "76152aa0c68a5f0a",
        "name": "Signal",
        "topic": "technik/rut950/signal",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "081c329f4587743d",
        "x": 750,
        "y": 620,
        "wires": []
    },
    {
        "id": "7d75401213d1569e",
        "type": "function",
        "z": "76152aa0c68a5f0a",
        "name": "dB",
        "func": "msg.payload = msg.payload + \"dB\"\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 530,
        "y": 620,
        "wires": [
            [
                "dbea6cceacbfb9d6"
            ]
        ]
    },
    {
        "id": "50284106c483673e",
        "type": "inject",
        "z": "76152aa0c68a5f0a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "7",
        "topic": "router/get",
        "payload": "wan",
        "payloadType": "str",
        "x": 140,
        "y": 400,
        "wires": [
            [
                "dd69119415feaf79"
            ]
        ]
    },
    {
        "id": "ad61bf3a4a7ab540",
        "type": "mqtt out",
        "z": "76152aa0c68a5f0a",
        "name": "WAN",
        "topic": "technik/rut950/wan",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "081c329f4587743d",
        "x": 750,
        "y": 900,
        "wires": []
    },
    {
        "id": "081c329f4587743d",
        "type": "mqtt-broker",
        "name": "Mosquitto",
        "broker": "mosquitto",
        "port": 1883,
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": 4,
        "keepalive": 60,
        "cleansession": true,
        "autoUnsubscribe": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthRetain": "false",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closeQos": "0",
        "closeRetain": "false",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willRetain": "false",
        "willPayload": "",
        "willMsg": {},
        "userProps": "",
        "sessionExpiry": ""
    },
    {
        "id": "d496d47dd75e010d",
        "type": "ui_group",
        "name": "Group 1",
        "tab": "6626070738f5e525",
        "order": 1,
        "disp": true,
        "width": 6
    },
    {
        "id": "6626070738f5e525",
        "type": "ui_tab",
        "name": "RUT950",
        "icon": "dashboard",
        "order": 2,
        "disabled": false,
        "hidden": false
    },
    {
        "id": "dbb3f9289d1405b0",
        "type": "global-config",
        "env": [],
        "modules": {
            "node-red-dashboard": "3.6.6"
        }
    }
]