[ { "id": "d752e739.4cfbd8", "type": "comment", "z": "9c3b70b.7f4189", "name": "Lliçó 3.19", "info": "Aquest és un exemple de la tercera lliçó.\n\nwiki.binefa.cat\n\n", "x": 140, "y": 40, "wires": [] }, { "id": "1912a385.c2c31c", "type": "inject", "z": "9c3b70b.7f4189", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "1", "crontab": "", "once": false, "x": 170, "y": 100, "wires": [ [ "2e9d138d.29ba7c" ] ] }, { "id": "2e9d138d.29ba7c", "type": "function", "z": "9c3b70b.7f4189", "name": "Número aleatori entre 0 i 99", "func": "msg.payload = Math.round(Math.random()*100);\n\nreturn msg;", "outputs": 1, "noerr": 0, "x": 180, "y": 200, "wires": [ [ "8aa38e89.d82cf", "741e44b6.07121c", "adbca580.232bd8", "63e7a519.9fbd1c" ] ] }, { "id": "741e44b6.07121c", "type": "ui_chart", "z": "9c3b70b.7f4189", "name": "", "group": "9f0579c3.68e768", "order": 1, "width": 0, "height": 0, "label": "Gràfica de proves", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "30", "removeOlderPoints": "", "removeOlderUnit": "1", "cutout": 0, "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 430, "y": 140, "wires": [ [], [] ] }, { "id": "8aa38e89.d82cf", "type": "debug", "z": "9c3b70b.7f4189", "name": "", "active": true, "console": "false", "complete": "payload", "x": 390, "y": 100, "wires": [] }, { "id": "adbca580.232bd8", "type": "ui_text", "z": "9c3b70b.7f4189", "group": "9f0579c3.68e768", "order": 3, "width": 0, "height": 0, "name": "", "label": "Valor", "format": "{{msg.payload}}", "layout": "row-spread", "x": 470, "y": 180, "wires": [] }, { "id": "63e7a519.9fbd1c", "type": "ui_gauge", "z": "9c3b70b.7f4189", "name": "", "group": "9f0579c3.68e768", "order": 2, "width": 0, "height": 0, "gtype": "gage", "title": "Manòmetre", "label": "punts", "format": "{{msg.value}}", "min": 0, "max": "99", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "30", "seg2": "75", "x": 450, "y": 220, "wires": [] }, { "id": "9f0579c3.68e768", "type": "ui_group", "z": "", "name": "Default", "tab": "30c4b5bc.f3ec7a", "disp": true, "width": "6", "collapse": false }, { "id": "30c4b5bc.f3ec7a", "type": "ui_tab", "z": "", "name": "Home", "icon": "dashboard" } ]