[
    {
        "id": "0a5f33fa823d5eb6",
        "type": "tab",
        "label": "Flow 3",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "7de0dbbcf357cb7e",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "if (msg.payload == \"on\") {\nmsg.payload = {\"operate_mode\": \"OPERATE\"}\n} else if (msg.payload == \"off\") {\nmsg.payload = {\"operate_mode\": \"STANDBY\"}\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 600,
        "y": 880,
        "wires": [
            [
                "e391f4c411405218",
                "12e73dc3e1f35448"
            ]
        ]
    },
    {
        "id": "e391f4c411405218",
        "type": "http request",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "method": "PUT",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://10.0.0.120:8080/operate-mode",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 810,
        "y": 880,
        "wires": [
            [
                "19ca3ad3ccc5f7a2"
            ]
        ]
    },
    {
        "id": "2d2a00c92eb13935",
        "type": "inject",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 340,
        "y": 880,
        "wires": [
            [
                "7de0dbbcf357cb7e"
            ]
        ]
    },
    {
        "id": "8cd5fbc66a941f65",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "var mode = flow.get(\"mode\")\n//var state = msg.payload\n\n\nif (mode == \"STAND\") {\n    msg.background = \"linear-gradient(180deg, #828282, #363636)\";\n    msg.state = \"STANDBY\";\n    msg.label = \"STANDBY\";\n   \n} else if (mode == \"OPERA\") {\n    msg.background = \"linear-gradient(180deg, #3bb143, #0b6623)\";\n    msg.state = \"OPERA\";\n    msg.label = \"OPERATE\";\n  \n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 340,
        "y": 980,
        "wires": [
            [
                "7eca6ed4064fe2ab"
            ]
        ]
    },
    {
        "id": "7eca6ed4064fe2ab",
        "type": "ui_template",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "name": "OPER/STBY",
        "order": 2,
        "width": 4,
        "height": 1,
        "format": "\n<md-button class=\"vibrate filled touched bigfont rounded\" style=\"background-image :{{msg.background}}\" ng-click=\"send({payload: 'Hello World'})\">\n        {{msg.label}}<br/>\n</md-button>\n",
        "storeOutMessages": true,
        "fwdInMessages": false,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 510,
        "y": 980,
        "wires": [
            [
                "92c1026d449a682e"
            ]
        ]
    },
    {
        "id": "92c1026d449a682e",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "var mode = flow.get(\"mode\")\nif (mode == \"STAND\") {\n    msg.label = \"OPERATE\";\n    msg.background = \"#708090\";\n    msg.payload = \"on\"\n} else if (mode == \"OPERA\") {\n\n    msg.label = \"STANDBY\";\n    msg.background = \"#27ae60\";\n    msg.payload = \"off\"\n}\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 700,
        "y": 980,
        "wires": [
            [
                "8cd5fbc66a941f65",
                "7de0dbbcf357cb7e"
            ]
        ]
    },
    {
        "id": "be5f8cc6317de930",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(12,5);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1040,
        "y": 940,
        "wires": [
            [
                "b235fef8ea9960f4",
                "8cd5fbc66a941f65"
            ]
        ]
    },
    {
        "id": "daf83f95da8d0c68",
        "type": "string",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "methods": [
            {
                "name": "stripPunctuation",
                "params": []
            },
            {
                "name": "trim",
                "params": []
            }
        ],
        "prop": "payload",
        "propout": "payload",
        "object": "msg",
        "objectout": "msg",
        "x": 1130,
        "y": 880,
        "wires": [
            [
                "be5f8cc6317de930"
            ]
        ]
    },
    {
        "id": "19ca3ad3ccc5f7a2",
        "type": "switch",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "regex",
                "v": "operate_mode",
                "vt": "str",
                "case": false
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 970,
        "y": 880,
        "wires": [
            [
                "daf83f95da8d0c68"
            ]
        ]
    },
    {
        "id": "fcc130f733145e41",
        "type": "http request",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://10.0.0.120:8080/operate-mode",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 790,
        "y": 780,
        "wires": [
            [
                "19ca3ad3ccc5f7a2"
            ]
        ]
    },
    {
        "id": "c9a02d843f94ba06",
        "type": "inject",
        "z": "0a5f33fa823d5eb6",
        "name": "GET operate-mode",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 540,
        "y": 780,
        "wires": [
            [
                "fcc130f733145e41"
            ]
        ]
    },
    {
        "id": "b235fef8ea9960f4",
        "type": "change",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "mode",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1260,
        "y": 940,
        "wires": [
            []
        ]
    },
    {
        "id": "2df32ac7b08400a4",
        "type": "http request",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://10.0.0.120:8080/info",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 770,
        "y": 720,
        "wires": [
            [
                "fc406561f5adba67"
            ]
        ]
    },
    {
        "id": "bc4a3308c9dd08be",
        "type": "inject",
        "z": "0a5f33fa823d5eb6",
        "name": "GET INFO",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 480,
        "y": 720,
        "wires": [
            [
                "2df32ac7b08400a4"
            ]
        ]
    },
    {
        "id": "fc406561f5adba67",
        "type": "debug",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 980,
        "y": 720,
        "wires": []
    },
    {
        "id": "5c0ab3cab7a55eb5",
        "type": "http request",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://10.0.0.120:8080/data",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 770,
        "y": 660,
        "wires": [
            [
                "ea4a97d799497485"
            ]
        ]
    },
    {
        "id": "82195885df04958d",
        "type": "inject",
        "z": "0a5f33fa823d5eb6",
        "name": "GET DATA",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 490,
        "y": 660,
        "wires": [
            [
                "5c0ab3cab7a55eb5"
            ]
        ]
    },
    {
        "id": "6a0dd9eb30c6344f",
        "type": "http request",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://10.0.0.120:8080/tuner",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 750,
        "y": 600,
        "wires": [
            [
                "0e820513dc245c22"
            ]
        ]
    },
    {
        "id": "c0b4cf022f339bbe",
        "type": "inject",
        "z": "0a5f33fa823d5eb6",
        "name": "GET TUNER",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 470,
        "y": 600,
        "wires": [
            [
                "6a0dd9eb30c6344f"
            ]
        ]
    },
    {
        "id": "0e820513dc245c22",
        "type": "debug",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 960,
        "y": 600,
        "wires": []
    },
    {
        "id": "81666b87ac267620",
        "type": "http request",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://10.0.0.120:8080/power",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 750,
        "y": 260,
        "wires": [
            [
                "26e20fe5bdb52c7d"
            ]
        ]
    },
    {
        "id": "a2ef30e2521ae8a6",
        "type": "inject",
        "z": "0a5f33fa823d5eb6",
        "name": "GET Power",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "0.15",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 470,
        "y": 260,
        "wires": [
            [
                "81666b87ac267620"
            ]
        ]
    },
    {
        "id": "26e20fe5bdb52c7d",
        "type": "split",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "splt": ",",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 930,
        "y": 240,
        "wires": [
            [
                "04c129bdc9709d0d"
            ]
        ]
    },
    {
        "id": "04c129bdc9709d0d",
        "type": "switch",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "property": "parts",
        "propertyType": "msg",
        "rules": [
            {
                "t": "index",
                "v": "0",
                "vt": "num",
                "v2": "0",
                "v2t": "num"
            },
            {
                "t": "index",
                "v": "2",
                "vt": "num",
                "v2": "2",
                "v2t": "num"
            },
            {
                "t": "index",
                "v": "4",
                "vt": "num",
                "v2": "4",
                "v2t": "num"
            },
            {
                "t": "index",
                "v": "6",
                "vt": "num",
                "v2": "6",
                "v2t": "num"
            },
            {
                "t": "index",
                "v": "12",
                "vt": "num",
                "v2": "12",
                "v2t": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 5,
        "x": 1070,
        "y": 240,
        "wires": [
            [
                "2907e55a36a1d5bb"
            ],
            [
                "84e746aec6edb2cc"
            ],
            [
                "e808a672d21aad85"
            ],
            [
                "4c01d3d6cb59b7ea"
            ],
            [
                "1dd2a71fba3fc80b"
            ]
        ]
    },
    {
        "id": "2907e55a36a1d5bb",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(26,4);\nmsg.payload = parseInt(msg.payload);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1300,
        "y": 100,
        "wires": [
            [
                "90cbf20881ea8a99"
            ]
        ]
    },
    {
        "id": "84e746aec6edb2cc",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(22,4);\nmsg.payload = parseFloat(msg.payload);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1300,
        "y": 160,
        "wires": [
            [
                "c626f77340c07aaf"
            ]
        ]
    },
    {
        "id": "e808a672d21aad85",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(22,4);\nmsg.payload = parseFloat(msg.payload);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1300,
        "y": 220,
        "wires": [
            [
                "0a5888567f601f9f"
            ]
        ]
    },
    {
        "id": "0a5888567f601f9f",
        "type": "ui_level",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "order": 8,
        "width": 0,
        "height": 0,
        "name": "DC A",
        "label": "DC",
        "colorHi": "#e60000",
        "colorWarn": "#ff9900",
        "colorNormal": "#00b33c",
        "colorOff": "#595959",
        "min": 0,
        "max": "60",
        "segWarn": "50",
        "segHigh": "55",
        "unit": "Amps",
        "layout": "sh",
        "channelA": "",
        "channelB": "",
        "decimals": 0,
        "animations": "rocket",
        "shape": "1",
        "colorschema": "fixed",
        "textoptions": "custom",
        "colorText": "#eeeeee",
        "fontLabel": ".8",
        "fontValue": ".8",
        "fontSmall": "",
        "colorFromTheme": true,
        "textAnimations": false,
        "hideValue": false,
        "tickmode": "auto",
        "peakmode": true,
        "property": "payload",
        "peaktime": "800",
        "x": 1450,
        "y": 220,
        "wires": []
    },
    {
        "id": "c626f77340c07aaf",
        "type": "ui_level",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "order": 7,
        "width": 0,
        "height": 0,
        "name": "DC V",
        "label": "DC",
        "colorHi": "#e60000",
        "colorWarn": "#ff9900",
        "colorNormal": "#00b33c",
        "colorOff": "#595959",
        "min": "30",
        "max": "60",
        "segWarn": "55",
        "segHigh": "",
        "unit": "Volts",
        "layout": "sh",
        "channelA": "",
        "channelB": "",
        "decimals": 0,
        "animations": "rocket",
        "shape": "1",
        "colorschema": "fixed",
        "textoptions": "custom",
        "colorText": "#eeeeee",
        "fontLabel": ".8",
        "fontValue": ".8",
        "fontSmall": "",
        "colorFromTheme": true,
        "textAnimations": false,
        "hideValue": false,
        "tickmode": "auto",
        "peakmode": true,
        "property": "payload",
        "peaktime": "800",
        "x": 1450,
        "y": 160,
        "wires": []
    },
    {
        "id": "4c01d3d6cb59b7ea",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(22,4);\nmsg.payload = parseInt(msg.payload);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1300,
        "y": 280,
        "wires": [
            [
                "e11988a946e76ed1"
            ]
        ]
    },
    {
        "id": "e11988a946e76ed1",
        "type": "ui_level",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "order": 4,
        "width": 0,
        "height": 0,
        "name": "Fwd Pwr",
        "label": "Forward Pwr",
        "colorHi": "#e60000",
        "colorWarn": "#ff9900",
        "colorNormal": "#00b33c",
        "colorOff": "#595959",
        "min": 0,
        "max": "2000",
        "segWarn": "1000",
        "segHigh": "1500",
        "unit": "W",
        "layout": "sh",
        "channelA": "",
        "channelB": "",
        "decimals": 0,
        "animations": "rocket",
        "shape": "1",
        "colorschema": "fixed",
        "textoptions": "custom",
        "colorText": "#eeeeee",
        "fontLabel": ".8",
        "fontValue": ".8",
        "fontSmall": "",
        "colorFromTheme": true,
        "textAnimations": false,
        "hideValue": false,
        "tickmode": "segments",
        "peakmode": true,
        "property": "payload",
        "peaktime": "800",
        "x": 1460,
        "y": 280,
        "wires": []
    },
    {
        "id": "90cbf20881ea8a99",
        "type": "ui_level",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "order": 6,
        "width": 0,
        "height": 0,
        "name": "Temp C",
        "label": "Temp",
        "colorHi": "#e60000",
        "colorWarn": "#ff9900",
        "colorNormal": "#00b33c",
        "colorOff": "#595959",
        "min": "0",
        "max": "85",
        "segWarn": "55",
        "segHigh": "65",
        "unit": "C",
        "layout": "sh",
        "channelA": "",
        "channelB": "",
        "decimals": 0,
        "animations": "rocket",
        "shape": "1",
        "colorschema": "fixed",
        "textoptions": "custom",
        "colorText": "#eeeeee",
        "fontLabel": ".8",
        "fontValue": ".8",
        "fontSmall": "",
        "colorFromTheme": true,
        "textAnimations": false,
        "hideValue": false,
        "tickmode": "segments",
        "peakmode": true,
        "property": "payload",
        "peaktime": "800",
        "x": 1460,
        "y": 100,
        "wires": []
    },
    {
        "id": "1dd2a71fba3fc80b",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(18,4);\nmsg.payload = Number(msg.payload);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1300,
        "y": 340,
        "wires": [
            [
                "9970ac5eaaf57706"
            ]
        ]
    },
    {
        "id": "9970ac5eaaf57706",
        "type": "ui_level",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "SWR",
        "label": "SWR",
        "colorHi": "#e60000",
        "colorWarn": "#ff9900",
        "colorNormal": "#00b33c",
        "colorOff": "#595959",
        "min": "1",
        "max": "5",
        "segWarn": "2",
        "segHigh": "3",
        "unit": "",
        "layout": "sh",
        "channelA": "",
        "channelB": "",
        "decimals": "2",
        "animations": "rocket",
        "shape": "1",
        "colorschema": "fixed",
        "textoptions": "custom",
        "colorText": "#eeeeee",
        "fontLabel": ".8",
        "fontValue": ".8",
        "fontSmall": "",
        "colorFromTheme": true,
        "textAnimations": false,
        "hideValue": false,
        "tickmode": "segments",
        "peakmode": true,
        "property": "payload",
        "peaktime": "800",
        "x": 1450,
        "y": 340,
        "wires": []
    },
    {
        "id": "68727b45edc4d764",
        "type": "comment",
        "z": "0a5f33fa823d5eb6",
        "name": "METERING",
        "info": "",
        "x": 1350,
        "y": 40,
        "wires": []
    },
    {
        "id": "01071f7048d33460",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = {\"type\": \"INTERNAL\", \"number\": 3};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1140,
        "y": 1320,
        "wires": [
            [
                "9393e1ee9975b4b7"
            ]
        ]
    },
    {
        "id": "9393e1ee9975b4b7",
        "type": "http request",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "method": "PUT",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "10.0.0.120:8080/antennas/active",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 1350,
        "y": 1280,
        "wires": [
            []
        ]
    },
    {
        "id": "a89de57b04b08b6a",
        "type": "ui_template",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "name": "Ant 3",
        "order": 11,
        "width": "3",
        "height": 1,
        "format": "\n<md-button class=\"filled touched bigfont rounded vibrate\" style=\"background-image:{{msg.background3}}\" ng-click=\"send({payload: 'Hello World'})\">\n    Ant 3<br/>\n</md-button> \n",
        "storeOutMessages": true,
        "fwdInMessages": false,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 930,
        "y": 1320,
        "wires": [
            [
                "01071f7048d33460"
            ]
        ]
    },
    {
        "id": "7709a78aade90eb2",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = {\"type\": \"INTERNAL\", \"number\": 4};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1140,
        "y": 1360,
        "wires": [
            [
                "9393e1ee9975b4b7"
            ]
        ]
    },
    {
        "id": "90ae34b3a014d5e8",
        "type": "ui_template",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "name": "Ant 4",
        "order": 12,
        "width": "3",
        "height": 1,
        "format": "\n<md-button class=\"filled touched bigfont rounded vibrate\" style=\"background-image:{{msg.background4}}\" ng-click=\"send({payload: 'Hello World'})\">\n    Ant 4<br/>\n</md-button> \n",
        "storeOutMessages": true,
        "fwdInMessages": false,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 930,
        "y": 1360,
        "wires": [
            [
                "7709a78aade90eb2"
            ]
        ]
    },
    {
        "id": "043adcabd6e4b868",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = {\"type\": \"INTERNAL\", \"number\": 1};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1140,
        "y": 1240,
        "wires": [
            [
                "9393e1ee9975b4b7"
            ]
        ]
    },
    {
        "id": "d7d18f9d09c92ce1",
        "type": "ui_template",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "name": "Ant 1",
        "order": 9,
        "width": "3",
        "height": 1,
        "format": "\n<md-button class=\"filled touched bigfont rounded vibrate\" style=\"background-image:{{msg.background1}}\" ng-click=\"send({payload: 'Hello World'})\">\n    Ant 1<br/>\n</md-button> \n",
        "storeOutMessages": true,
        "fwdInMessages": false,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 930,
        "y": 1240,
        "wires": [
            [
                "043adcabd6e4b868"
            ]
        ]
    },
    {
        "id": "6c2b752d971557a0",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = {\"type\": \"INTERNAL\", \"number\": 2};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1140,
        "y": 1280,
        "wires": [
            [
                "9393e1ee9975b4b7"
            ]
        ]
    },
    {
        "id": "c39c83663c706b9a",
        "type": "ui_template",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "name": "Ant 2",
        "order": 10,
        "width": "3",
        "height": 1,
        "format": "\n<md-button class=\"filled touched bigfont rounded vibrate\" style=\"background-image:{{msg.background2}}\" ng-click=\"send({payload: 'Hello World'})\">\n    Ant 2<br/>\n</md-button> \n",
        "storeOutMessages": true,
        "fwdInMessages": false,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 930,
        "y": 1280,
        "wires": [
            [
                "6c2b752d971557a0"
            ]
        ]
    },
    {
        "id": "8b5b8c3c2368ae8a",
        "type": "http request",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://10.0.0.120:8080/operational-interface",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 470,
        "y": 1100,
        "wires": [
            [
                "036600ce45da06d2"
            ]
        ]
    },
    {
        "id": "bf432fbdf35a9db7",
        "type": "inject",
        "z": "0a5f33fa823d5eb6",
        "name": "GET operate-interface",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 190,
        "y": 1100,
        "wires": [
            [
                "8b5b8c3c2368ae8a"
            ]
        ]
    },
    {
        "id": "036600ce45da06d2",
        "type": "string",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "methods": [
            {
                "name": "stripPunctuation",
                "params": []
            }
        ],
        "prop": "payload",
        "propout": "payload",
        "object": "msg",
        "objectout": "msg",
        "x": 630,
        "y": 1100,
        "wires": [
            [
                "740e5a2fc905da91"
            ]
        ]
    },
    {
        "id": "740e5a2fc905da91",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(21,4);\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 780,
        "y": 1100,
        "wires": [
            [
                "a56c941570486f4d"
            ]
        ]
    },
    {
        "id": "eec9db6d6973185e",
        "type": "ui_dropdown",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "label": "Set Mode",
        "tooltip": "",
        "place": "msg.payload",
        "group": "e3d237d6a1f48e5d",
        "order": 14,
        "width": 0,
        "height": 0,
        "passthru": false,
        "multiple": false,
        "options": [
            {
                "label": "Universal",
                "value": "UNIV",
                "type": "str"
            },
            {
                "label": "CAT",
                "value": "CAT",
                "type": "str"
            },
            {
                "label": "UDP",
                "value": "UDP",
                "type": "str"
            },
            {
                "label": "TCI",
                "value": "TCI",
                "type": "str"
            }
        ],
        "payload": "",
        "topic": "topic",
        "topicType": "msg",
        "className": "",
        "x": 1160,
        "y": 1100,
        "wires": [
            [
                "64f32a7e48223fc1"
            ]
        ]
    },
    {
        "id": "1ac4cfa7f7e8151c",
        "type": "http request",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "method": "PUT",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "10.0.0.120:8080/operational-interface",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 1510,
        "y": 1100,
        "wires": [
            []
        ]
    },
    {
        "id": "12e73dc3e1f35448",
        "type": "debug",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1380,
        "y": 780,
        "wires": []
    },
    {
        "id": "64f32a7e48223fc1",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "if (msg.payload == \"UNIV\") {\n    msg.payload = {\"operational_interface\": \"UNIV\"};\n    } else if (msg.payload == \"CAT\") {\n    msg.payload = {\"operational_interface\": \"CAT\"};\n    } else if (msg.payload == \"UDP\") {\n    msg.payload = {\"operational_interface\": \"UDP\"};\n    } else if (msg.payload == \"TCI\") {\n    msg.payload = {\"operational_interface\": \"TCI\"}\n    }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1320,
        "y": 1100,
        "wires": [
            [
                "1ac4cfa7f7e8151c"
            ]
        ]
    },
    {
        "id": "a56c941570486f4d",
        "type": "delay",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "pauseType": "delay",
        "timeout": "1",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 960,
        "y": 1100,
        "wires": [
            [
                "eec9db6d6973185e"
            ]
        ]
    },
    {
        "id": "ea4a97d799497485",
        "type": "split",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "splt": ",",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 930,
        "y": 660,
        "wires": [
            [
                "be8e5e4b5bad71a2",
                "5699d2ad30b7f4da"
            ]
        ]
    },
    {
        "id": "be8e5e4b5bad71a2",
        "type": "switch",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "property": "parts",
        "propertyType": "msg",
        "rules": [
            {
                "t": "index",
                "v": "0",
                "vt": "num",
                "v2": "0",
                "v2t": "num"
            },
            {
                "t": "index",
                "v": "2",
                "vt": "num",
                "v2": "2",
                "v2t": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1090,
        "y": 660,
        "wires": [
            [
                "5699d2ad30b7f4da"
            ],
            [
                "818b68a33fe9744a"
            ]
        ]
    },
    {
        "id": "5699d2ad30b7f4da",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(19,3);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1270,
        "y": 640,
        "wires": [
            [
                "238b37a653c3b3f1"
            ]
        ]
    },
    {
        "id": "818b68a33fe9744a",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(24,7);\nmsg.payload = msg.payload/1000\nmsg.payload = parseFloat(msg.payload).toFixed(6);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1280,
        "y": 680,
        "wires": [
            [
                "75e127679bc55b7f"
            ]
        ]
    },
    {
        "id": "238b37a653c3b3f1",
        "type": "ui_text",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "order": 15,
        "width": "6",
        "height": "1",
        "name": "Band",
        "label": "Band",
        "format": "{{msg.payload}}m",
        "layout": "row-spread",
        "className": "",
        "x": 1460,
        "y": 640,
        "wires": []
    },
    {
        "id": "75e127679bc55b7f",
        "type": "ui_text",
        "z": "0a5f33fa823d5eb6",
        "group": "e3d237d6a1f48e5d",
        "order": 16,
        "width": "6",
        "height": "1",
        "name": "",
        "label": "Fequency",
        "format": "{{msg.payload}} MHz",
        "layout": "row-spread",
        "className": "",
        "x": 1470,
        "y": 700,
        "wires": []
    },
    {
        "id": "59984366753866b7",
        "type": "inject",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 160,
        "y": 1300,
        "wires": [
            [
                "a37a17bc8e5f9c67"
            ]
        ]
    },
    {
        "id": "a37a17bc8e5f9c67",
        "type": "http request",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://10.0.0.120:8080/antennas",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 330,
        "y": 1300,
        "wires": [
            [
                "1066c4a0e08beff9"
            ]
        ]
    },
    {
        "id": "1066c4a0e08beff9",
        "type": "split",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "splt": ",",
        "spltType": "str",
        "arraySplt": 1,
        "arraySpltType": "len",
        "stream": false,
        "addname": "",
        "x": 490,
        "y": 1300,
        "wires": [
            [
                "74d2593bf66c19f2"
            ]
        ]
    },
    {
        "id": "74d2593bf66c19f2",
        "type": "switch",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "property": "parts",
        "propertyType": "msg",
        "rules": [
            {
                "t": "index",
                "v": "2",
                "vt": "num",
                "v2": "2",
                "v2t": "num"
            },
            {
                "t": "index",
                "v": "5",
                "vt": "num",
                "v2": "5",
                "v2t": "num"
            },
            {
                "t": "index",
                "v": "8",
                "vt": "num",
                "v2": "8",
                "v2t": "num"
            },
            {
                "t": "index",
                "v": "11",
                "vt": "num",
                "v2": "11",
                "v2t": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 4,
        "x": 630,
        "y": 1300,
        "wires": [
            [
                "f56fe4ae56a5f760"
            ],
            [
                "6fb7964beb37454c"
            ],
            [
                "7afd1e198eb70b71"
            ],
            [
                "c46386bb23c9ade1"
            ]
        ]
    },
    {
        "id": "f56fe4ae56a5f760",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(11,6);\n\nif (msg.payload == \"ACTIVE\") {\n    msg.background1 = \"linear-gradient(180deg, #3bb143, #0b6623\";\n} else if (msg.payload == \"AVAILA\") {\n    msg.background1 = \"linear-gradient(180deg, #2980b9, #392bc0)\";\n} else if (msg.payload == \"DISABL\") {\n    msg.background1 = \"linear-gradient(180deg, #828282, #363636\";\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 780,
        "y": 1240,
        "wires": [
            [
                "d7d18f9d09c92ce1"
            ]
        ]
    },
    {
        "id": "6fb7964beb37454c",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(11,6);\n\nif (msg.payload == \"ACTIVE\") {\n    msg.background2 = \"linear-gradient(180deg, #3bb143, #0b6623\";\n} else if (msg.payload == \"AVAILA\") {\n    msg.background2 = \"linear-gradient(180deg, #2980b9, #392bc0)\";\n} else if (msg.payload == \"DISABL\") {\n    msg.background2 = \"linear-gradient(180deg, #828282, #363636\";\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 780,
        "y": 1280,
        "wires": [
            [
                "c39c83663c706b9a"
            ]
        ]
    },
    {
        "id": "7afd1e198eb70b71",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(11,6);\n\nif (msg.payload == \"ACTIVE\") {\n    msg.background3 = \"linear-gradient(180deg, #3bb143, #0b6623\";\n} else if (msg.payload == \"AVAILA\") {\n    msg.background3 = \"linear-gradient(180deg, #2980b9, #392bc0)\";\n} else if (msg.payload == \"DISABL\") {\n    msg.background3 = \"linear-gradient(180deg, #828282, #363636\";\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 780,
        "y": 1320,
        "wires": [
            [
                "a89de57b04b08b6a"
            ]
        ]
    },
    {
        "id": "c46386bb23c9ade1",
        "type": "function",
        "z": "0a5f33fa823d5eb6",
        "name": "",
        "func": "msg.payload = msg.payload.substr(11,6);\n\nif (msg.payload == \"ACTIVE\") {\n    msg.background4 = \"linear-gradient(180deg, #3bb143, #0b6623\";\n} else if (msg.payload == \"AVAILA\") {\n    msg.background4 = \"linear-gradient(180deg, #2980b9, #392bc0)\";\n} else if (msg.payload == \"DISABL\") {\n    msg.background4 = \"linear-gradient(180deg, #828282, #363636\";\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 780,
        "y": 1360,
        "wires": [
            [
                "90ae34b3a014d5e8"
            ]
        ]
    },
    {
        "id": "9d9b4e53110348b4",
        "type": "comment",
        "z": "0a5f33fa823d5eb6",
        "name": "Please Read!! Set IP address",
        "info": "It is suggested to use a DHCP reservation in your router for the RF Kit amp. You can also use a static IP in the amp but you should only use static IP if you are familiar with networking.\n\nThis flow works with RF Kit 2KS and 2K+ with ypgraded control board. It requires GUI firmware version 1.08 or newer.\n\nYou will need to edit each of the HTTP Request nodes to enter the IP address of the amplifier. There are nine (9) HTTP Request nodes in this flow.\n\nDave wo2x\n",
        "x": 420,
        "y": 480,
        "wires": []
    },
    {
        "id": "54dcb3b382b1176f",
        "type": "ui_spacer",
        "z": "0a5f33fa823d5eb6",
        "name": "spacer",
        "group": "e3d237d6a1f48e5d",
        "order": 1,
        "width": 1,
        "height": 1
    },
    {
        "id": "b77c4e12b5253ea8",
        "type": "ui_spacer",
        "z": "0a5f33fa823d5eb6",
        "name": "spacer",
        "group": "e3d237d6a1f48e5d",
        "order": 3,
        "width": 1,
        "height": 1
    },
    {
        "id": "e3d237d6a1f48e5d",
        "type": "ui_group",
        "name": "Project Q",
        "tab": "8f98f4ce.30eb48",
        "order": 4,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "8f98f4ce.30eb48",
        "type": "ui_tab",
        "name": "WO2X Shack Control",
        "icon": "dashboard",
        "order": 1,
        "disabled": false,
        "hidden": false
    }
]