[
    {
        "id": "ba9d6a9211149b26",
        "type": "mpd2",
        "z": "4195b3120a14282d",
        "name": "",
        "server": "d6bc7cd732aa815f",
        "command": "",
        "x": 890,
        "y": 360,
        "wires": [
            [
                "76f07c969648eee2"
            ],
            [
                "5dc1add0e131ee24"
            ]
        ]
    },
    {
        "id": "toggle_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "toggle play/pause",
        "func": "msg.payload = \"toggle\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 520,
        "y": 240,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "toggle_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 240,
        "wires": [
            [
                "toggle_node"
            ]
        ]
    },
    {
        "id": "next_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "next track",
        "func": "msg.payload = \"next\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 500,
        "y": 280,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "next_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 280,
        "wires": [
            [
                "next_node"
            ]
        ]
    },
    {
        "id": "prev_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "previous track",
        "func": "msg.payload = \"prev\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 520,
        "y": 320,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "prev_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 320,
        "wires": [
            [
                "prev_node"
            ]
        ]
    },
    {
        "id": "pause_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "pause",
        "func": "msg.payload = \"pause\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 490,
        "y": 360,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "pause_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 360,
        "wires": [
            [
                "pause_node"
            ]
        ]
    },
    {
        "id": "volume_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "volume 80%",
        "func": "msg.payload = \"volume 80\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 510,
        "y": 400,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "volume_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 400,
        "wires": [
            [
                "volume_node"
            ]
        ]
    },
    {
        "id": "volume_up_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "volume +5%",
        "func": "msg.payload = \"volume +5\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 520,
        "y": 440,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "volume_up_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 440,
        "wires": [
            [
                "volume_up_node"
            ]
        ]
    },
    {
        "id": "volume_down_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "volume -10%",
        "func": "msg.payload = \"volume -10\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 530,
        "y": 480,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "volume_down_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 480,
        "wires": [
            [
                "volume_down_node"
            ]
        ]
    },
    {
        "id": "current_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "current song",
        "func": "msg.payload = \"current\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 510,
        "y": 520,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "current_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 520,
        "wires": [
            [
                "current_node"
            ]
        ]
    },
    {
        "id": "ls_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "list music library",
        "func": "msg.payload = \"ls\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 530,
        "y": 560,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "ls_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 560,
        "wires": [
            [
                "ls_node"
            ]
        ]
    },
    {
        "id": "save_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "save playlist",
        "func": "msg.payload = \"save myplaylist\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 520,
        "y": 600,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "save_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 600,
        "wires": [
            [
                "save_node"
            ]
        ]
    },
    {
        "id": "load_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "load playlist",
        "func": "msg.payload = \"load myplaylist\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 520,
        "y": 640,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "load_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 640,
        "wires": [
            [
                "load_node"
            ]
        ]
    },
    {
        "id": "random_on_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "random on",
        "func": "msg.payload = \"random on\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 500,
        "y": 680,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "random_on_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 680,
        "wires": [
            [
                "random_on_node"
            ]
        ]
    },
    {
        "id": "random_off_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "random off",
        "func": "msg.payload = \"random off\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 510,
        "y": 720,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "random_off_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 720,
        "wires": [
            [
                "random_off_node"
            ]
        ]
    },
    {
        "id": "repeat_on_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "repeat on",
        "func": "msg.payload = \"repeat on\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 500,
        "y": 760,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "repeat_on_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 760,
        "wires": [
            [
                "repeat_on_node"
            ]
        ]
    },
    {
        "id": "repeat_off_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "repeat off",
        "func": "msg.payload = \"repeat off\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 510,
        "y": 800,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "repeat_off_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 800,
        "wires": [
            [
                "repeat_off_node"
            ]
        ]
    },
    {
        "id": "repeat_one_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "repeat one",
        "func": "msg.payload = \"repeat 1\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 500,
        "y": 840,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "repeat_one_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 840,
        "wires": [
            [
                "repeat_one_node"
            ]
        ]
    },
    {
        "id": "update_node",
        "type": "function",
        "z": "4195b3120a14282d",
        "name": "update database",
        "func": "msg.payload = \"update\";\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 510,
        "y": 880,
        "wires": [
            [
                "ba9d6a9211149b26"
            ]
        ]
    },
    {
        "id": "update_inject",
        "type": "inject",
        "z": "4195b3120a14282d",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 320,
        "y": 880,
        "wires": [
            [
                "update_node"
            ]
        ]
    },
    {
        "id": "76f07c969648eee2",
        "type": "debug",
        "z": "4195b3120a14282d",
        "name": "info",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 1050,
        "y": 280,
        "wires": []
    },
    {
        "id": "5dc1add0e131ee24",
        "type": "debug",
        "z": "4195b3120a14282d",
        "name": "event",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 1050,
        "y": 420,
        "wires": []
    },
    {
        "id": "d6bc7cd732aa815f",
        "type": "mpd2-server",
        "name": "My MPD Server",
        "host": "192.168.1.9",
        "port": "6600",
        "password": ""
    }
]
