[
    {
        "id": "e8549b7a9b231f1d",
        "type": "tab",
        "label": "Etherline Guard",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "a43e26aeebe2464f",
        "type": "inject",
        "z": "e8549b7a9b231f1d",
        "name": "Inject Login Data",
        "props": [
            {
                "p": "payload.username",
                "v": "admin",
                "vt": "str"
            },
            {
                "p": "payload.password",
                "v": "12345678",
                "vt": "str"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 230,
        "y": 180,
        "wires": [
            [
                "57924eddec806731"
            ]
        ]
    },
    {
        "id": "57924eddec806731",
        "type": "http request",
        "z": "e8549b7a9b231f1d",
        "name": "HTTPS Login",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "https://192.168.1.2/login",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": true,
        "headers": [
            {
                "keyType": "Content-Type",
                "keyValue": "",
                "valueType": "other",
                "valueValue": "application/x-www-form-urlencoded"
            }
        ],
        "x": 440,
        "y": 180,
        "wires": [
            [
                "a6aded4666c96739"
            ]
        ]
    },
    {
        "id": "1f52b84f9a7fe0e9",
        "type": "http request",
        "z": "e8549b7a9b231f1d",
        "name": "HTTP Request Status",
        "method": "GET",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "https://192.168.1.2/status",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 860,
        "y": 180,
        "wires": [
            [
                "85c42b33058c9741",
                "4d925c5cd31a9e9f",
                "465e52b056560677",
                "8d153ac24126c0c1",
                "1daeb5c27ed13a07",
                "a42633ae8cfcabf8",
                "f11d51c6d0b1ddb2"
            ]
        ]
    },
    {
        "id": "a6aded4666c96739",
        "type": "change",
        "z": "e8549b7a9b231f1d",
        "name": "Set Cookie",
        "rules": [
            {
                "t": "set",
                "p": "cookies",
                "pt": "msg",
                "to": "redirectList[0]['cookies']",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 630,
        "y": 180,
        "wires": [
            [
                "1f52b84f9a7fe0e9"
            ]
        ]
    },
    {
        "id": "85c42b33058c9741",
        "type": "function",
        "z": "e8549b7a9b231f1d",
        "name": "Cable Status",
        "func": "msg.payload = msg.payload.CableStatus;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1090,
        "y": 180,
        "wires": [
            [
                "b7970a45ca943968",
                "1bcc1bc5f875e6bb"
            ]
        ]
    },
    {
        "id": "4d925c5cd31a9e9f",
        "type": "function",
        "z": "e8549b7a9b231f1d",
        "name": "Uptime",
        "func": "msg.payload = msg.payload.Uptime;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1080,
        "y": 300,
        "wires": [
            [
                "8fbb6dbc900b23c6"
            ]
        ]
    },
    {
        "id": "8fbb6dbc900b23c6",
        "type": "ui_text",
        "z": "e8549b7a9b231f1d",
        "group": "5c7f6f881fced4ac",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Uptime",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 1340,
        "y": 300,
        "wires": []
    },
    {
        "id": "465e52b056560677",
        "type": "function",
        "z": "e8549b7a9b231f1d",
        "name": "LinkToControl",
        "func": "msg.payload = msg.payload.LinkToControl;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1100,
        "y": 400,
        "wires": [
            [
                "16077c596a1e0ec4"
            ]
        ]
    },
    {
        "id": "8d153ac24126c0c1",
        "type": "function",
        "z": "e8549b7a9b231f1d",
        "name": "LinkToApplication",
        "func": "msg.payload = msg.payload.LinkToApplication;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1110,
        "y": 460,
        "wires": [
            [
                "ec1f92c1c995e1ad"
            ]
        ]
    },
    {
        "id": "16077c596a1e0ec4",
        "type": "ui_text",
        "z": "e8549b7a9b231f1d",
        "group": "f2ba94aa289a45ad",
        "order": 2,
        "width": 1,
        "height": 1,
        "name": "",
        "label": "LinkToControl",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 1360,
        "y": 400,
        "wires": []
    },
    {
        "id": "ec1f92c1c995e1ad",
        "type": "ui_text",
        "z": "e8549b7a9b231f1d",
        "group": "f2ba94aa289a45ad",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "LinkToApplication",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 1370,
        "y": 460,
        "wires": []
    },
    {
        "id": "b7970a45ca943968",
        "type": "ui_chart",
        "z": "e8549b7a9b231f1d",
        "name": "Cable Status Graph",
        "group": "5c7f6f881fced4ac",
        "order": 1,
        "width": 0,
        "height": 0,
        "label": "Cable Status Graph",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "0",
        "ymax": "100",
        "removeOlder": "10",
        "removeOlderPoints": "",
        "removeOlderUnit": "3600",
        "cutout": 0,
        "useOneColor": false,
        "useUTC": false,
        "colors": [
            "#008040",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "outputs": 1,
        "useDifferentColor": false,
        "className": "",
        "x": 1370,
        "y": 180,
        "wires": [
            []
        ]
    },
    {
        "id": "1daeb5c27ed13a07",
        "type": "function",
        "z": "e8549b7a9b231f1d",
        "name": "Notification\t",
        "func": "msg.payload = msg.payload.Notification;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1090,
        "y": 560,
        "wires": [
            [
                "36644334531614c6"
            ]
        ]
    },
    {
        "id": "a42633ae8cfcabf8",
        "type": "function",
        "z": "e8549b7a9b231f1d",
        "name": "TeachInActive",
        "func": "msg.payload = msg.payload.TeachInActive;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1100,
        "y": 620,
        "wires": [
            [
                "9389af3379a7d108"
            ]
        ]
    },
    {
        "id": "f11d51c6d0b1ddb2",
        "type": "function",
        "z": "e8549b7a9b231f1d",
        "name": "DeviceStatus",
        "func": "var device_status = msg.payload.DeviceStatus\nif (device_status == 1){\n    msg.payload = \"active\"; \n}else{\n    msg.payload = \"error\";\n}\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1090,
        "y": 680,
        "wires": [
            [
                "12edfaad9127fa32"
            ]
        ]
    },
    {
        "id": "1bcc1bc5f875e6bb",
        "type": "ui_text",
        "z": "e8549b7a9b231f1d",
        "group": "5c7f6f881fced4ac",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "CableStatus",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 1350,
        "y": 240,
        "wires": []
    },
    {
        "id": "36644334531614c6",
        "type": "ui_text",
        "z": "e8549b7a9b231f1d",
        "group": "460aeba27eb18533",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "",
        "format": "{{msg.payload}}",
        "layout": "row-left",
        "className": "",
        "x": 1330,
        "y": 560,
        "wires": []
    },
    {
        "id": "9389af3379a7d108",
        "type": "ui_text",
        "z": "e8549b7a9b231f1d",
        "group": "f2ba94aa289a45ad",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "TeachInActive",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 1360,
        "y": 620,
        "wires": []
    },
    {
        "id": "12edfaad9127fa32",
        "type": "ui_text",
        "z": "e8549b7a9b231f1d",
        "group": "f2ba94aa289a45ad",
        "order": 6,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "DeviceStatus",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 1350,
        "y": 680,
        "wires": []
    },
    {
        "id": "0349ffc840f1ed76",
        "type": "ui_spacer",
        "z": "e8549b7a9b231f1d",
        "name": "spacer",
        "group": "f2ba94aa289a45ad",
        "order": 1,
        "width": 1,
        "height": 1
    },
    {
        "id": "99d1383b48857dbc",
        "type": "ui_spacer",
        "z": "e8549b7a9b231f1d",
        "name": "spacer",
        "group": "f2ba94aa289a45ad",
        "order": 4,
        "width": 1,
        "height": 1
    },
    {
        "id": "5c7f6f881fced4ac",
        "type": "ui_group",
        "name": "Cable Status",
        "tab": "b87b34977026bd1a",
        "order": 3,
        "disp": false,
        "width": "4",
        "collapse": false,
        "className": ""
    },
    {
        "id": "f2ba94aa289a45ad",
        "type": "ui_group",
        "name": "Information",
        "tab": "b87b34977026bd1a",
        "order": 1,
        "disp": true,
        "width": "1",
        "collapse": false,
        "className": ""
    },
    {
        "id": "460aeba27eb18533",
        "type": "ui_group",
        "name": "Notification",
        "tab": "b87b34977026bd1a",
        "order": 2,
        "disp": true,
        "width": "3",
        "collapse": false,
        "className": ""
    },
    {
        "id": "b87b34977026bd1a",
        "type": "ui_tab",
        "name": "Etherline Guard",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]