[ { "id": "c17fabfe.c4ac68", "type": "ui_button", "z": "28d9a852.edd1e", "name": "", "group": "bd4f6450.72fca", "order": 6, "width": 0, "height": 0, "passthru": false, "label": "Tramet", "color": "", "bgcolor": "", "icon": "", "payload": "Hola 2n de DAM", "payloadType": "str", "topic": "", "x": 100, "y": 100, "wires": [ [ "a3a86850.c2297" ] ] }, { "id": "6b713e4d.a00398", "type": "debug", "z": "28d9a852.edd1e", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "x": 490, "y": 60, "wires": [] }, { "id": "5f609fea.d0eac8", "type": "ui_text", "z": "28d9a852.edd1e", "group": "bd4f6450.72fca", "order": 7, "width": 0, "height": 0, "name": "", "label": "Rebut", "format": "{{msg.payload}}", "layout": "row-spread", "x": 470, "y": 100, "wires": [] }, { "id": "dce41bd4.81bc58", "type": "ui_text_input", "z": "28d9a852.edd1e", "name": "", "label": "Entrada", "group": "bd4f6450.72fca", "order": 5, "width": 0, "height": 0, "passthru": true, "mode": "text", "delay": 300, "topic": "", "x": 100, "y": 220, "wires": [ [ "5f609fea.d0eac8", "22e07b5c.745ae4" ] ] }, { "id": "f81c292.3d787d8", "type": "ui_gauge", "z": "28d9a852.edd1e", "name": "", "group": "4e70ce2d.17e588", "order": 2, "width": 0, "height": 0, "gtype": "gage", "title": "LDR", "label": "units", "format": "{{value}}", "min": 0, "max": "1024", "colors": [ "#b50018", "#e6e600", "#38ca47" ], "seg1": "20", "seg2": "90", "x": 450, "y": 300, "wires": [] }, { "id": "7107fb48.c25d3c", "type": "ui_chart", "z": "28d9a852.edd1e", "name": "", "group": "4e70ce2d.17e588", "order": 1, "width": 0, "height": 0, "label": "Gràfica LDR", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "50", "removeOlderUnit": "60", "cutout": 0, "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 470, "y": 360, "wires": [ [], [] ] }, { "id": "22e07b5c.745ae4", "type": "function", "z": "28d9a852.edd1e", "name": "setter", "func": "flow.set(\"varText\",msg.payload)\n\nreturn msg;", "outputs": 1, "noerr": 0, "x": 270, "y": 220, "wires": [ [] ] }, { "id": "a3a86850.c2297", "type": "function", "z": "28d9a852.edd1e", "name": "getter", "func": "var vT = flow.get(\"varText\")\n\nmsg.payload = vT;\n\nreturn msg;", "outputs": 1, "noerr": 0, "x": 250, "y": 100, "wires": [ [ "5f609fea.d0eac8", "6b713e4d.a00398" ] ] }, { "id": "d742c26d.e43c2", "type": "function", "z": "28d9a852.edd1e", "name": "Inici", "func": "var vTxt = \"1250\"\n\nflow.set(\"enMarxa\",\"OFF\");\nflow.set(\"varText\",vTxt)\nmsg.payload = vTxt\n\nreturn msg;", "outputs": 1, "noerr": 0, "x": 270, "y": 280, "wires": [ [ "dce41bd4.81bc58" ] ] }, { "id": "ae6284b9.8f7338", "type": "inject", "z": "28d9a852.edd1e", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": true, "onceDelay": 0.1, "x": 110, "y": 280, "wires": [ [ "d742c26d.e43c2" ] ] }, { "id": "5adc3e65.286978", "type": "mqtt in", "z": "28d9a852.edd1e", "name": "", "topic": "/jordiB/esp8266/resposta/ldr", "qos": "2", "broker": "c4feadd4.96b9f8", "x": 160, "y": 340, "wires": [ [ "7107fb48.c25d3c", "f81c292.3d787d8" ] ] }, { "id": "bd4f6450.72fca", "type": "ui_group", "z": "", "name": "Grup DAM", "tab": "4a4ecb37.77f27c", "disp": true, "width": "6", "collapse": false }, { "id": "4e70ce2d.17e588", "type": "ui_group", "z": "", "name": "Altres", "tab": "4a4ecb37.77f27c", "order": 2, "disp": true, "width": "6", "collapse": false }, { "id": "c4feadd4.96b9f8", "type": "mqtt-broker", "z": "", "name": "", "broker": "broker.hivemq.com", "port": "1883", "clientid": "", "usetls": false, "compatmode": true, "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "closeTopic": "", "closePayload": "", "willTopic": "", "willQos": "0", "willPayload": "" }, { "id": "4a4ecb37.77f27c", "type": "ui_tab", "z": "", "name": "Aula 506", "icon": "dashboard", "order": 1 } ]