[ { "id": "515cc0a9292adb1d", "type": "tab", "label": "Flow 1", "disabled": false, "info": "", "env": [] }, { "id": "3146dc37cd132299", "type": "tcp in", "z": "515cc0a9292adb1d", "name": "", "server": "server", "host": "", "port": "12345", "datamode": "stream", "datatype": "buffer", "newline": "", "topic": "", "base64": false, "x": 220, "y": 360, "wires": [ [ "f2c01ffa0baa1a97" ] ] }, { "id": "563eda82468c6f81", "type": "exec", "z": "515cc0a9292adb1d", "command": "/usr/bin/wakeonlan", "addpay": "payload", "append": "", "useSpawn": "false", "timer": "", "winHide": false, "oldrc": false, "name": "", "x": 790, "y": 360, "wires": [ [ "71fca5061fb79190" ], [ "71fca5061fb79190" ], [ "71fca5061fb79190" ] ] }, { "id": "64a57b686432b8a4", "type": "switch", "z": "515cc0a9292adb1d", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "WOL", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 590, "y": 360, "wires": [ [ "563eda82468c6f81" ] ] }, { "id": "71fca5061fb79190", "type": "debug", "z": "515cc0a9292adb1d", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1060, "y": 360, "wires": [] }, { "id": "f2c01ffa0baa1a97", "type": "function", "z": "515cc0a9292adb1d", "name": "Sanitize", "func": "\nmsg.payload = msg.payload.replace(/\\r?\\n|\\r/g, \"\");\nmsg.payload = msg.payload.replace(/\\%/, \"\");\n//msg.payload = msg.payload.replace(/\\s/g, '');\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 420, "y": 360, "wires": [ [ "64a57b686432b8a4" ] ] } ]