[
    {
        "id": "285853b5cddcbfed",
        "type": "tab",
        "label": "Tank Level",
        "disabled": false,
        "info": ""
    },
    {
        "id": "788b09eff1514ee7",
        "type": "change",
        "z": "285853b5cddcbfed",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "tank.volts",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "tank.updatetime",
                "pt": "msg",
                "to": "tank.updatetime",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 340,
        "y": 120,
        "wires": [
            [
                "dd193367dfb9fcb0",
                "e6c112b526a06140"
            ]
        ]
    },
    {
        "id": "dd193367dfb9fcb0",
        "type": "debug",
        "z": "285853b5cddcbfed",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "tank.volts",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 660,
        "y": 120,
        "wires": []
    },
    {
        "id": "ce581904cd813317",
        "type": "change",
        "z": "285853b5cddcbfed",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "tank.percent",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 360,
        "y": 200,
        "wires": [
            [
                "d6490246945805b0"
            ]
        ]
    },
    {
        "id": "1d1697a765b46f4e",
        "type": "influxdb out",
        "z": "285853b5cddcbfed",
        "influxdb": "ca2902bb8ed96100",
        "name": "Database",
        "measurement": "percent",
        "precision": "",
        "retentionPolicy": "",
        "database": "database",
        "precisionV18FluxV20": "ms",
        "retentionPolicyV18Flux": "",
        "org": "watertank",
        "bucket": "watertank",
        "x": 620,
        "y": 680,
        "wires": []
    },
    {
        "id": "19449f838860b370",
        "type": "ui_gauge",
        "z": "285853b5cddcbfed",
        "name": "",
        "group": "9e9defc275051d0e",
        "order": 1,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Tank Level",
        "label": "Percentage",
        "format": "{{msg.payload}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#b52100",
            "#e6e600",
            "#42ca38"
        ],
        "seg1": "20",
        "seg2": "60",
        "className": "",
        "x": 670,
        "y": 420,
        "wires": []
    },
    {
        "id": "e6c112b526a06140",
        "type": "ui_gauge",
        "z": "285853b5cddcbfed",
        "name": "Tank Volts",
        "group": "9e9defc275051d0e",
        "order": 4,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Tank Volts<br>{{tank.updatetime}}",
        "label": "Volts",
        "format": "{{tank.volts}}",
        "min": "0",
        "max": "3.3",
        "colors": [
            "#b52100",
            "#e6e600",
            "#42ca38"
        ],
        "seg1": "20",
        "seg2": "60",
        "className": "",
        "x": 640,
        "y": 200,
        "wires": []
    },
    {
        "id": "5b5d3a96153323ed",
        "type": "ui_chart",
        "z": "285853b5cddcbfed",
        "name": "",
        "group": "9e9defc275051d0e",
        "order": 2,
        "width": 0,
        "height": 0,
        "label": "Tank Level Chart",
        "chartType": "line",
        "legend": "false",
        "xformat": "auto",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "90",
        "removeOlderPoints": "",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "useUTC": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "outputs": 1,
        "useDifferentColor": false,
        "className": "",
        "x": 650,
        "y": 580,
        "wires": [
            []
        ]
    },
    {
        "id": "2680dc186db6b9e3",
        "type": "mqtt in",
        "z": "285853b5cddcbfed",
        "name": "",
        "topic": "WaterTank/Voltage",
        "qos": "2",
        "datatype": "auto",
        "broker": "f94f2607c8534b13",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 130,
        "y": 120,
        "wires": [
            [
                "788b09eff1514ee7"
            ]
        ]
    },
    {
        "id": "27076c6953cc74c2",
        "type": "mqtt in",
        "z": "285853b5cddcbfed",
        "name": "",
        "topic": "WaterTank/Percent",
        "qos": "2",
        "datatype": "auto",
        "broker": "f94f2607c8534b13",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 130,
        "y": 200,
        "wires": [
            [
                "ce581904cd813317"
            ]
        ]
    },
    {
        "id": "d6490246945805b0",
        "type": "function",
        "z": "285853b5cddcbfed",
        "name": "set msg.payload",
        "func": "msg.payload = Number(msg.tank.percent)\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 260,
        "y": 380,
        "wires": [
            [
                "19449f838860b370",
                "5b5d3a96153323ed",
                "1d1697a765b46f4e"
            ]
        ]
    },
    {
        "id": "bff9addae983eafc",
        "type": "mqtt in",
        "z": "285853b5cddcbfed",
        "name": "",
        "topic": "WaterTank/UpdateTime",
        "qos": "2",
        "datatype": "auto",
        "broker": "f94f2607c8534b13",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 140,
        "y": 60,
        "wires": [
            [
                "72b73b5a9f0eb423"
            ]
        ]
    },
    {
        "id": "72b73b5a9f0eb423",
        "type": "change",
        "z": "285853b5cddcbfed",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "tank.updatetime",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "delete",
                "p": "payload",
                "pt": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 360,
        "y": 60,
        "wires": [
            [
                "64d238c7ae695cc6",
                "788b09eff1514ee7"
            ]
        ]
    },
    {
        "id": "64d238c7ae695cc6",
        "type": "debug",
        "z": "285853b5cddcbfed",
        "name": "msg.tank.updatetime",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "tank.updatetime",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 690,
        "y": 60,
        "wires": []
    },
    {
        "id": "ca2902bb8ed96100",
        "type": "influxdb",
        "hostname": "127.0.0.1",
        "port": "8086",
        "protocol": "http",
        "database": "database",
        "name": "",
        "usetls": false,
        "tls": "",
        "influxdbVersion": "2.0",
        "url": "http://192.168.1.3:8086",
        "rejectUnauthorized": true
    },
    {
        "id": "9e9defc275051d0e",
        "type": "ui_group",
        "name": "Rain",
        "tab": "f4cb39df05d8b677",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "f94f2607c8534b13",
        "type": "mqtt-broker",
        "name": "",
        "broker": "192.168.1.3",
        "port": "1883",
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": "4",
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "willMsg": {},
        "sessionExpiry": ""
    },
    {
        "id": "f4cb39df05d8b677",
        "type": "ui_tab",
        "name": "Tank Level",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]