[ { "id": "620a6977.c45928", "type": "udp in", "z": "962b9beb.9c08f8", "name": "", "iface": "", "port": "3333", "ipv": "udp4", "multicast": "false", "group": "", "datatype": "utf8", "x": 300, "y": 460, "wires": [ [ "be311d3d.4bce9" ] ] }, { "id": "fa9c80b3.ce8ec", "type": "udp out", "z": "962b9beb.9c08f8", "name": "", "addr": "192.168.1.206", "iface": "", "port": "3334", "ipv": "udp4", "outport": "", "base64": false, "multicast": "false", "x": 610, "y": 240, "wires": [] }, { "id": "5efcfd8d.75b374", "type": "inject", "z": "962b9beb.9c08f8", "name": "", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "L", "payloadType": "str", "x": 310, "y": 380, "wires": [ [ "fa9c80b3.ce8ec" ] ] }, { "id": "28a1fb1a.5b0604", "type": "inject", "z": "962b9beb.9c08f8", "name": "", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "W", "payloadType": "str", "x": 310, "y": 100, "wires": [ [ "fa9c80b3.ce8ec" ] ] }, { "id": "3d7e6297.093fde", "type": "inject", "z": "962b9beb.9c08f8", "name": "", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "w", "payloadType": "str", "x": 310, "y": 140, "wires": [ [ "fa9c80b3.ce8ec" ] ] }, { "id": "f23d8fcf.d1fbb", "type": "inject", "z": "962b9beb.9c08f8", "name": "", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "G", "payloadType": "str", "x": 310, "y": 180, "wires": [ [ "fa9c80b3.ce8ec" ] ] }, { "id": "b534989.1633468", "type": "inject", "z": "962b9beb.9c08f8", "name": "", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "g", "payloadType": "str", "x": 310, "y": 220, "wires": [ [ "fa9c80b3.ce8ec" ] ] }, { "id": "a36730b4.6fad5", "type": "inject", "z": "962b9beb.9c08f8", "name": "", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "i", "payloadType": "str", "x": 310, "y": 260, "wires": [ [ "fa9c80b3.ce8ec" ] ] }, { "id": "7efbc1ae.20dd8", "type": "inject", "z": "962b9beb.9c08f8", "name": "", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "i34", "payloadType": "str", "x": 310, "y": 300, "wires": [ [ "fa9c80b3.ce8ec" ] ] }, { "id": "5e4e3308.470b5c", "type": "inject", "z": "962b9beb.9c08f8", "name": "", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "i35", "payloadType": "str", "x": 310, "y": 340, "wires": [ [ "fa9c80b3.ce8ec" ] ] }, { "id": "be311d3d.4bce9", "type": "function", "z": "962b9beb.9c08f8", "name": "If is it a number", "func": "if(!isNaN(msg.payload))\n return msg;", "outputs": 1, "noerr": 0, "x": 500, "y": 460, "wires": [ [ "fdd2243b.5d21f8", "94bdebaf.2928d8", "daca4b81.f3cb68" ] ] }, { "id": "fdd2243b.5d21f8", "type": "debug", "z": "962b9beb.9c08f8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 710, "y": 460, "wires": [] }, { "id": "94bdebaf.2928d8", "type": "ui_chart", "z": "962b9beb.9c08f8", "name": "", "group": "39be8952.708fe6", "order": 1, "width": 0, "height": 0, "label": "chart", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "0", "ymax": "4096", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "outputs": 2, "x": 690, "y": 500, "wires": [ [], [] ] }, { "id": "d420ec9.4ea981", "type": "ui_switch", "z": "962b9beb.9c08f8", "name": "", "label": "White LED", "group": "18eb1987.920376", "order": 1, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "W", "onvalueType": "str", "onicon": "", "oncolor": "", "offvalue": "w", "offvalueType": "str", "officon": "", "offcolor": "", "x": 550, "y": 340, "wires": [ [ "fa9c80b3.ce8ec" ] ] }, { "id": "372c836.3697e7c", "type": "ui_switch", "z": "962b9beb.9c08f8", "name": "", "label": "Green LED", "group": "18eb1987.920376", "order": 2, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "G", "onvalueType": "str", "onicon": "", "oncolor": "", "offvalue": "g", "offvalueType": "str", "officon": "", "offcolor": "", "x": 550, "y": 380, "wires": [ [ "fa9c80b3.ce8ec" ] ] }, { "id": "daca4b81.f3cb68", "type": "ui_gauge", "z": "962b9beb.9c08f8", "name": "", "group": "39be8952.708fe6", "order": 2, "width": 0, "height": 0, "gtype": "gage", "title": "LDR", "label": "units", "format": "{{value}}", "min": 0, "max": "4096", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "x": 690, "y": 540, "wires": [] }, { "id": "3ad7d7a0.6d9c08", "type": "comment", "z": "962b9beb.9c08f8", "name": "Este flujo debe estar en un ordenador que comparte red local con la placa IoT-02", "info": "", "x": 540, "y": 40, "wires": [] }, { "id": "548567b0.4ef268", "type": "comment", "z": "962b9beb.9c08f8", "name": "Cambiar 192.168.1.206 por la IP de la placa IoT-02", "info": "", "x": 690, "y": 200, "wires": [] }, { "id": "fccb1a8.07ed1e8", "type": "comment", "z": "962b9beb.9c08f8", "name": "Borrar el nodo UDP de entrada del flujo anterior", "info": "", "x": 420, "y": 520, "wires": [] }, { "id": "a3b26738.ee0e18", "type": "comment", "z": "962b9beb.9c08f8", "name": "Debe haber un único escuchador UDP", "info": "", "x": 390, "y": 560, "wires": [] }, { "id": "39be8952.708fe6", "type": "ui_group", "z": "", "name": "Visualització", "tab": "c1722dc0.8de94", "order": 1, "disp": true, "width": "6", "collapse": false }, { "id": "18eb1987.920376", "type": "ui_group", "z": "", "name": "Botons", "tab": "c1722dc0.8de94", "order": 2, "disp": true, "width": "6", "collapse": false }, { "id": "c1722dc0.8de94", "type": "ui_tab", "z": "", "name": "UPC-School", "icon": "dashboard", "order": 1 } ]