[
    {
        "id": "fbcefb6c416be113",
        "type": "tab",
        "label": "Backup Drives",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "ba6dc3c7cd843858",
        "type": "junction",
        "z": "fbcefb6c416be113",
        "x": 760,
        "y": 180,
        "wires": [
            [
                "853ede6855c8a743",
                "1fdc75c3a6c06e6e"
            ]
        ]
    },
    {
        "id": "cca158a5ceee96c2",
        "type": "change",
        "z": "fbcefb6c416be113",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "1",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "next",
                "pt": "flow",
                "to": "0",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 640,
        "y": 180,
        "wires": [
            [
                "ba6dc3c7cd843858",
                "58bd28c4b182cdea"
            ]
        ]
    },
    {
        "id": "dbab85ba1b56634c",
        "type": "change",
        "z": "fbcefb6c416be113",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "next",
                "pt": "flow",
                "to": "1",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 580,
        "y": 240,
        "wires": [
            [
                "ba6dc3c7cd843858",
                "0327012ecd6b174a"
            ]
        ]
    },
    {
        "id": "853ede6855c8a743",
        "type": "rpi-gpio out",
        "z": "fbcefb6c416be113",
        "name": "",
        "pin": "26",
        "set": true,
        "level": "0",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 880,
        "y": 180,
        "wires": []
    },
    {
        "id": "f1c1db65ea3d3b94",
        "type": "switch",
        "z": "fbcefb6c416be113",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "1",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 470,
        "y": 180,
        "wires": [
            [
                "cca158a5ceee96c2"
            ],
            [
                "dbab85ba1b56634c"
            ]
        ]
    },
    {
        "id": "4514b1d77a4bf992",
        "type": "function",
        "z": "fbcefb6c416be113",
        "name": "get next value",
        "func": "msg.payload = flow.get(\"next\")||0;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 360,
        "y": 240,
        "wires": [
            [
                "f1c1db65ea3d3b94"
            ]
        ]
    },
    {
        "id": "158272616837c144",
        "type": "http in",
        "z": "fbcefb6c416be113",
        "name": "",
        "url": "/server/drives/backups",
        "method": "get",
        "upload": false,
        "swaggerDoc": "",
        "x": 160,
        "y": 120,
        "wires": [
            [
                "4514b1d77a4bf992"
            ]
        ]
    },
    {
        "id": "fadaeface99f97ea",
        "type": "http response",
        "z": "fbcefb6c416be113",
        "name": "response",
        "statusCode": "200",
        "headers": {
            "content-type": "text/plain"
        },
        "x": 1040,
        "y": 140,
        "wires": []
    },
    {
        "id": "1fdc75c3a6c06e6e",
        "type": "template",
        "z": "fbcefb6c416be113",
        "name": "",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload}}\n",
        "output": "str",
        "x": 880,
        "y": 140,
        "wires": [
            [
                "fadaeface99f97ea"
            ]
        ]
    },
    {
        "id": "0327012ecd6b174a",
        "type": "debug",
        "z": "fbcefb6c416be113",
        "name": "rule 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 810,
        "y": 280,
        "wires": []
    },
    {
        "id": "58bd28c4b182cdea",
        "type": "debug",
        "z": "fbcefb6c416be113",
        "name": "rule 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 810,
        "y": 80,
        "wires": []
    },
    {
        "id": "7d1ec2495da1a8b3",
        "type": "http in",
        "z": "fbcefb6c416be113",
        "name": "",
        "url": "/server/drives/backups/on",
        "method": "get",
        "upload": false,
        "swaggerDoc": "",
        "x": 450,
        "y": 100,
        "wires": [
            [
                "cca158a5ceee96c2"
            ]
        ]
    },
    {
        "id": "81c5ce51476b7aaa",
        "type": "http in",
        "z": "fbcefb6c416be113",
        "name": "",
        "url": "/server/drives/backups/off",
        "method": "get",
        "upload": false,
        "swaggerDoc": "",
        "x": 440,
        "y": 320,
        "wires": [
            [
                "dbab85ba1b56634c"
            ]
        ]
    }
]