[
    {
        "id": "d673a6f04d3c67f0",
        "type": "tab",
        "label": "Swivel Arm Controller Flow",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "b5c6aee1fb996e1b",
        "type": "websocket in",
        "z": "d673a6f04d3c67f0",
        "name": "ESP32_WS",
        "server": "c88c0f6baa4e4069",
        "client": "",
        "x": 210,
        "y": 220,
        "wires": [
            [
                "a99f63791f4274ff"
            ]
        ]
    },
    {
        "id": "94df41a57b440a23",
        "type": "websocket out",
        "z": "d673a6f04d3c67f0",
        "name": "",
        "server": "c88c0f6baa4e4069",
        "client": "",
        "x": 880,
        "y": 360,
        "wires": []
    },
    {
        "id": "cb77f47360f47245",
        "type": "ui_joystick",
        "z": "d673a6f04d3c67f0",
        "name": "",
        "group": "514396e6195941d7",
        "order": 0,
        "width": "6",
        "height": "4",
        "trigger": "all",
        "timeInterval": 0,
        "useThemeColor": false,
        "color": "#ffac38",
        "threshold": "0.1",
        "directions": "all",
        "shape": "circle",
        "centerAtRelease": true,
        "x": 590,
        "y": 360,
        "wires": [
            [
                "7d8510c8adcd9534",
                "5620e08c2629ca79"
            ]
        ]
    },
    {
        "id": "5620e08c2629ca79",
        "type": "function",
        "z": "d673a6f04d3c67f0",
        "name": "function 1",
        "func": "// The joystick vector gives values from -100 to +100\nlet x = msg.payload.vector.x;\nlet y = msg.payload.vector.y;\n\n// Create a clean JSON object to send\nmsg.payload = JSON.stringify({\n    x: x,\n    y: y\n});\n\nreturn msg;\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 740,
        "y": 360,
        "wires": [
            [
                "94df41a57b440a23"
            ]
        ]
    },
    {
        "id": "c0736b577d294bfa",
        "type": "websocket out",
        "z": "d673a6f04d3c67f0",
        "name": "",
        "server": "c88c0f6baa4e4069",
        "client": "",
        "x": 880,
        "y": 420,
        "wires": []
    },
    {
        "id": "54758d82ebda3295",
        "type": "function",
        "z": "d673a6f04d3c67f0",
        "name": "function 2",
        "func": "msg.payload = JSON.stringify({\n    home: msg.payload\n});\nreturn msg;\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 740,
        "y": 420,
        "wires": [
            [
                "c0736b577d294bfa"
            ]
        ]
    },
    {
        "id": "9dc3027eef8420fd",
        "type": "ui_button",
        "z": "d673a6f04d3c67f0",
        "name": "HOME",
        "group": "514396e6195941d7",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "HOME",
        "tooltip": "",
        "color": "White",
        "bgcolor": "",
        "className": "",
        "icon": "",
        "payload": "Button_1",
        "payloadType": "str",
        "topic": "topic",
        "topicType": "msg",
        "x": 590,
        "y": 420,
        "wires": [
            [
                "54758d82ebda3295"
            ]
        ]
    },
    {
        "id": "7d8510c8adcd9534",
        "type": "debug",
        "z": "d673a6f04d3c67f0",
        "name": "joystick debug",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 700,
        "y": 280,
        "wires": []
    },
    {
        "id": "9289b0b9d5c39905",
        "type": "websocket out",
        "z": "d673a6f04d3c67f0",
        "name": "",
        "server": "c88c0f6baa4e4069",
        "client": "",
        "x": 660,
        "y": 540,
        "wires": []
    },
    {
        "id": "3e2fd71be8fd4a1f",
        "type": "function",
        "z": "d673a6f04d3c67f0",
        "name": "function 5",
        "func": "msg.payload = JSON.stringify({\n    sisoup: msg.payload\n});\nreturn msg;\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 520,
        "y": 540,
        "wires": [
            [
                "9289b0b9d5c39905"
            ]
        ]
    },
    {
        "id": "fd4173057fe20d74",
        "type": "ui_button",
        "z": "d673a6f04d3c67f0",
        "name": "Siso Up",
        "group": "69dffbad97768dd3",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "Siso Up",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "className": "",
        "icon": "",
        "payload": "true",
        "payloadType": "bool",
        "topic": "topic",
        "topicType": "msg",
        "x": 360,
        "y": 540,
        "wires": [
            [
                "3e2fd71be8fd4a1f"
            ]
        ]
    },
    {
        "id": "a74bd094fb335baa",
        "type": "websocket out",
        "z": "d673a6f04d3c67f0",
        "name": "",
        "server": "c88c0f6baa4e4069",
        "client": "",
        "x": 660,
        "y": 600,
        "wires": []
    },
    {
        "id": "4f3aa9a2c7391645",
        "type": "function",
        "z": "d673a6f04d3c67f0",
        "name": "function 6",
        "func": "msg.payload = JSON.stringify({\n    sisodown: msg.payload\n});\nreturn msg;\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 520,
        "y": 600,
        "wires": [
            [
                "a74bd094fb335baa"
            ]
        ]
    },
    {
        "id": "39c6e2b00f285303",
        "type": "ui_button",
        "z": "d673a6f04d3c67f0",
        "name": "Siso Down",
        "group": "69dffbad97768dd3",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "Siso Down",
        "tooltip": "",
        "color": "White",
        "bgcolor": "",
        "className": "",
        "icon": "",
        "payload": "true",
        "payloadType": "bool",
        "topic": "topic",
        "topicType": "msg",
        "x": 370,
        "y": 600,
        "wires": [
            [
                "4f3aa9a2c7391645"
            ]
        ]
    },
    {
        "id": "a99f63791f4274ff",
        "type": "debug",
        "z": "d673a6f04d3c67f0",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 400,
        "y": 220,
        "wires": []
    },
    {
        "id": "c88c0f6baa4e4069",
        "type": "websocket-listener",
        "path": "/ws",
        "wholemsg": "false"
    },
    {
        "id": "514396e6195941d7",
        "type": "ui_group",
        "name": "Control",
        "tab": "32a908f584fdef07",
        "order": 2,
        "disp": true,
        "width": 6,
        "collapse": false,
        "className": ""
    },
    {
        "id": "69dffbad97768dd3",
        "type": "ui_group",
        "name": "Segment Isolation",
        "tab": "32a908f584fdef07",
        "order": 4,
        "disp": true,
        "width": 6,
        "collapse": true,
        "className": ""
    },
    {
        "id": "32a908f584fdef07",
        "type": "ui_tab",
        "name": "Swivel Arm Control Center",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    },
    {
        "id": "33b65f4f086a4ca0",
        "type": "global-config",
        "env": [],
        "modules": {
            "node-red-contrib-ui-joystick": "1.0.1",
            "node-red-dashboard": "3.6.6"
        }
    }
]