commit 2997f93ccc0837324e03f8f6a82f9cd6dbe32dda Author: Eggert Jung Date: Mon Nov 29 18:06:39 2021 +0100 ui mockup diff --git a/flow.json b/flow.json new file mode 100644 index 0000000..3fc3e9b --- /dev/null +++ b/flow.json @@ -0,0 +1,1042 @@ +[ + { + "id": "fba97e1121c3ad53", + "type": "tab", + "label": "Flow 1", + "disabled": false, + "info": "", + "env": [] + }, + { + "id": "16e228f8fbb37220", + "type": "ui_gauge", + "z": "fba97e1121c3ad53", + "name": "", + "group": "202fde18a57d82a3", + "order": 2, + "width": 0, + "height": 0, + "gtype": "gage", + "title": "Vorspannkraft", + "label": "Newton", + "format": "{{value}}", + "min": 0, + "max": 10, + "colors": [ + "#00b500", + "#e6e600", + "#ca3838" + ], + "seg1": "", + "seg2": "", + "className": "", + "x": 1380, + "y": 260, + "wires": [] + }, + { + "id": "338edd20cfa596a8", + "type": "ui_chart", + "z": "fba97e1121c3ad53", + "name": "chart", + "group": "c58ce13004b62d7b", + "order": 0, + "width": 0, + "height": 0, + "label": "", + "chartType": "line", + "legend": "false", + "xformat": "HH:mm:ss", + "interpolate": "linear", + "nodata": "", + "dot": false, + "ymin": "", + "ymax": "", + "removeOlder": 1, + "removeOlderPoints": "", + "removeOlderUnit": "60", + "cutout": 0, + "useOneColor": false, + "useUTC": false, + "colors": [ + "#1f77b4", + "#aec7e8", + "#ff7f0e", + "#2ca02c", + "#98df8a", + "#d62728", + "#ff9896", + "#9467bd", + "#c5b0d5" + ], + "outputs": 1, + "useDifferentColor": false, + "className": "", + "x": 870, + "y": 300, + "wires": [ + [] + ] + }, + { + "id": "86d2a1fb24a222e9", + "type": "inject", + "z": "fba97e1121c3ad53", + "name": "", + "props": [ + { + "p": "payload" + }, + { + "p": "topic", + "vt": "str" + } + ], + "repeat": "5", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payloadType": "date", + "x": 890, + "y": 100, + "wires": [ + [ + "756a6706c26bfa80" + ] + ] + }, + { + "id": "756a6706c26bfa80", + "type": "function", + "z": "fba97e1121c3ad53", + "name": "", + "func": "var msg = {}\nvar msg1 = {}\n\nmsg.payload = Math.round(Math.random()*100);\nmsg.topic = 'Durchmesser'\nmsg1.payload = Math.round(Math.random()*100);\nmsg1.topic = 'Ovalität'\nreturn [msg, msg1];", + "outputs": 2, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 880, + "y": 140, + "wires": [ + [ + "338edd20cfa596a8", + "c5e30747a6fc3cad" + ], + [ + "338edd20cfa596a8", + "8e7d2d51dd4e8ce7" + ] + ] + }, + { + "id": "a2b6f34299a6f54b", + "type": "comment", + "z": "fba97e1121c3ad53", + "name": "spule", + "info": "", + "x": 1550, + "y": 180, + "wires": [] + }, + { + "id": "ac1a11c368295586", + "type": "comment", + "z": "fba97e1121c3ad53", + "name": "speicher", + "info": "", + "x": 1360, + "y": 180, + "wires": [] + }, + { + "id": "85ce672f925784a2", + "type": "comment", + "z": "fba97e1121c3ad53", + "name": "abzug", + "info": "", + "x": 1090, + "y": 180, + "wires": [] + }, + { + "id": "1f1546411ff4c60a", + "type": "comment", + "z": "fba97e1121c3ad53", + "name": "zumberg", + "info": "", + "x": 880, + "y": 180, + "wires": [] + }, + { + "id": "c5e30747a6fc3cad", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "c58ce13004b62d7b", + "order": 1, + "width": 0, + "height": 0, + "name": "", + "label": "Durchmesser", + "format": "{{msg.payload}} mm", + "layout": "row-spread", + "className": "", + "x": 890, + "y": 220, + "wires": [] + }, + { + "id": "8e7d2d51dd4e8ce7", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "c58ce13004b62d7b", + "order": 1, + "width": 0, + "height": 0, + "name": "", + "label": "Ovalität", + "format": "{{msg.payload}} %", + "layout": "row-spread", + "className": "", + "x": 880, + "y": 260, + "wires": [] + }, + { + "id": "f0d2baa13c3cb26c", + "type": "ui_level", + "z": "fba97e1121c3ad53", + "group": "202fde18a57d82a3", + "order": 3, + "width": 0, + "height": 0, + "name": "", + "label": "Speicher Auslastung", + "colorHi": "#e60000", + "colorWarn": "#ff9900", + "colorNormal": "#00b33c", + "colorOff": "#595959", + "min": 0, + "max": 100, + "segWarn": "", + "segHigh": "", + "unit": "m", + "layout": "sh", + "channelA": "", + "channelB": "", + "decimals": 0, + "animations": "soft", + "shape": 2, + "colorschema": "valuedriven", + "textoptions": "default", + "colorText": "#eeeeee", + "fontLabel": "", + "fontValue": "", + "fontSmall": "", + "colorFromTheme": true, + "textAnimations": false, + "x": 1350, + "y": 300, + "wires": [] + }, + { + "id": "018722a1b34e6f4a", + "type": "ui_gauge", + "z": "fba97e1121c3ad53", + "name": "Abzugsgeschwindigkeit", + "group": "e20265729517b54f", + "order": 0, + "width": 0, + "height": 0, + "gtype": "gage", + "title": "", + "label": "m/s", + "format": "{{value}}", + "min": 0, + "max": 10, + "colors": [ + "#00b500", + "#e6e600", + "#ca3838" + ], + "seg1": "", + "seg2": "", + "className": "", + "x": 1150, + "y": 260, + "wires": [] + }, + { + "id": "1420bc1ffb56e17a", + "type": "ui_gauge", + "z": "fba97e1121c3ad53", + "name": "", + "group": "1aa4758daa4bef2c", + "order": 2, + "width": "6", + "height": "4", + "gtype": "donut", + "title": "Restlaufzeit", + "label": "s", + "format": "{{msg.payload}}", + "min": 0, + "max": 10, + "colors": [ + "#00b500", + "#e6e600", + "#ca3838" + ], + "seg1": "", + "seg2": "", + "className": "", + "x": 1570, + "y": 260, + "wires": [] + }, + { + "id": "51dc01674d1e3889", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "1aa4758daa4bef2c", + "order": 3, + "width": 0, + "height": 0, + "name": "", + "label": "Meter auf Spule", + "format": "{{msg.payload}} m", + "layout": "row-spread", + "className": "", + "x": 1580, + "y": 300, + "wires": [] + }, + { + "id": "4e45f2d030e53acc", + "type": "inject", + "z": "fba97e1121c3ad53", + "name": "", + "props": [ + { + "p": "payload" + }, + { + "p": "topic", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "5", + "payloadType": "num", + "x": 1550, + "y": 140, + "wires": [ + [ + "51dc01674d1e3889", + "1420bc1ffb56e17a" + ] + ] + }, + { + "id": "d27514c662f919a7", + "type": "ui_media", + "z": "fba97e1121c3ad53", + "group": "9f158206b49edfa8", + "name": "", + "width": "35", + "height": "8", + "order": 2, + "category": "filament", + "file": "filament.png", + "layout": "center", + "showcontrols": true, + "loop": true, + "onstart": false, + "muted": true, + "scope": "local", + "tooltip": "", + "x": 1000, + "y": 920, + "wires": [ + [] + ] + }, + { + "id": "63b46a49a8e77c5c", + "type": "ui_led", + "z": "fba97e1121c3ad53", + "order": 2, + "group": "affbf18529a0e78d", + "width": "6", + "height": "1", + "label": "Granulat OK", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#ff0000", + "value": "false", + "valueType": "bool" + }, + { + "color": "#008000", + "value": "true", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "Granulat", + "x": 460, + "y": 260, + "wires": [] + }, + { + "id": "6caf476711a5e425", + "type": "comment", + "z": "fba97e1121c3ad53", + "name": "extruder", + "info": "", + "x": 460, + "y": 180, + "wires": [] + }, + { + "id": "6a6a599bcc7e7585", + "type": "comment", + "z": "fba97e1121c3ad53", + "name": "warmwasserbad", + "info": "", + "x": 680, + "y": 180, + "wires": [] + }, + { + "id": "9cd2ea4152b80c3d", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "affbf18529a0e78d", + "order": 1, + "width": 0, + "height": 0, + "name": "", + "label": "Drehzahl", + "format": "{{msg.payload}} U/min", + "layout": "row-spread", + "className": "", + "x": 460, + "y": 220, + "wires": [] + }, + { + "id": "4a90f720bcc144fc", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "affbf18529a0e78d", + "order": 3, + "width": "5", + "height": "1", + "name": "", + "label": "Zone 1", + "format": "{{msg.payload}} °C", + "layout": "row-spread", + "className": "", + "x": 460, + "y": 300, + "wires": [] + }, + { + "id": "20a580dc86ef19e6", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "affbf18529a0e78d", + "order": 5, + "width": "5", + "height": "1", + "name": "", + "label": "Zone 2", + "format": "{{msg.payload}} °C", + "layout": "row-spread", + "className": "", + "x": 460, + "y": 380, + "wires": [] + }, + { + "id": "5f6fb534b2ed1f27", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "affbf18529a0e78d", + "order": 7, + "width": "5", + "height": "1", + "name": "", + "label": "Zone 3", + "format": "{{msg.payload}} °C", + "layout": "row-spread", + "className": "", + "x": 460, + "y": 460, + "wires": [] + }, + { + "id": "f7386ba12c7a3739", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "affbf18529a0e78d", + "order": 9, + "width": "5", + "height": "1", + "name": "", + "label": "Nozzle", + "format": "{{msg.payload}} °C", + "layout": "row-spread", + "className": "", + "x": 450, + "y": 540, + "wires": [] + }, + { + "id": "4ff1d230f19e53a0", + "type": "ui_led", + "z": "fba97e1121c3ad53", + "order": 4, + "group": "affbf18529a0e78d", + "width": "1", + "height": "1", + "label": "", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#ff7400", + "value": "heat", + "valueType": "str" + }, + { + "color": "#003fff", + "value": "cool", + "valueType": "str" + }, + { + "color": "#878787", + "value": "false", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "zone1 state", + "x": 470, + "y": 340, + "wires": [] + }, + { + "id": "eabd8c6047bbf3cb", + "type": "inject", + "z": "fba97e1121c3ad53", + "name": "", + "props": [ + { + "p": "payload" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "50", + "payloadType": "num", + "x": 450, + "y": 140, + "wires": [ + [ + "4a90f720bcc144fc", + "20a580dc86ef19e6", + "5f6fb534b2ed1f27", + "f7386ba12c7a3739", + "9cd2ea4152b80c3d" + ] + ] + }, + { + "id": "f4f446afa00215fe", + "type": "ui_led", + "z": "fba97e1121c3ad53", + "order": 6, + "group": "affbf18529a0e78d", + "width": "1", + "height": "1", + "label": "", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#ff7400", + "value": "heat", + "valueType": "str" + }, + { + "color": "#003fff", + "value": "cool", + "valueType": "str" + }, + { + "color": "#878787", + "value": "false", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "zone2 state", + "x": 470, + "y": 420, + "wires": [] + }, + { + "id": "307cfbf134c1c780", + "type": "ui_led", + "z": "fba97e1121c3ad53", + "order": 8, + "group": "affbf18529a0e78d", + "width": "1", + "height": "1", + "label": "", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#ff7400", + "value": "heat", + "valueType": "str" + }, + { + "color": "#003fff", + "value": "cool", + "valueType": "str" + }, + { + "color": "#878787", + "value": "false", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "zone3 state", + "x": 470, + "y": 500, + "wires": [] + }, + { + "id": "a00f324c112578d9", + "type": "inject", + "z": "fba97e1121c3ad53", + "name": "", + "props": [ + { + "p": "payload" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "heat", + "payloadType": "str", + "x": 450, + "y": 100, + "wires": [ + [ + "4ff1d230f19e53a0", + "f4f446afa00215fe", + "307cfbf134c1c780" + ] + ] + }, + { + "id": "3e9a77243fe4298d", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "0c3a3c1f77fcfb1a", + "order": 1, + "width": 0, + "height": 0, + "name": "", + "label": "Temperatur", + "format": "{{msg.payload}} °C", + "layout": "row-spread", + "className": "", + "x": 670, + "y": 220, + "wires": [] + }, + { + "id": "4d5c7fd9681da647", + "type": "ui_led", + "z": "fba97e1121c3ad53", + "order": 2, + "group": "0c3a3c1f77fcfb1a", + "width": "0", + "height": "0", + "label": "Umwälzpumpe", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#ff0000", + "value": "false", + "valueType": "bool" + }, + { + "color": "#008000", + "value": "true", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "Umwälzpumpe", + "x": 680, + "y": 260, + "wires": [] + }, + { + "id": "a8f0b83956e8a72c", + "type": "ui_led", + "z": "fba97e1121c3ad53", + "order": 3, + "group": "0c3a3c1f77fcfb1a", + "width": "0", + "height": "0", + "label": "Heizung", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#ff0000", + "value": "false", + "valueType": "bool" + }, + { + "color": "#008000", + "value": "true", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "Heizung", + "x": 660, + "y": 300, + "wires": [] + }, + { + "id": "9140d20a6a12630d", + "type": "comment", + "z": "fba97e1121c3ad53", + "name": "kaltwasserbad", + "info": "", + "x": 670, + "y": 360, + "wires": [] + }, + { + "id": "3d30f1d49ac92820", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "8a4365997544d2ce", + "order": 1, + "width": 0, + "height": 0, + "name": "", + "label": "Temperatur", + "format": "{{msg.payload}} °C", + "layout": "row-spread", + "className": "", + "x": 670, + "y": 400, + "wires": [] + }, + { + "id": "33fb03496d9e7875", + "type": "ui_led", + "z": "fba97e1121c3ad53", + "order": 2, + "group": "8a4365997544d2ce", + "width": "0", + "height": "0", + "label": "Umwälzpumpe", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#ff0000", + "value": "false", + "valueType": "bool" + }, + { + "color": "#008000", + "value": "true", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "Umwälzpumpe", + "x": 680, + "y": 440, + "wires": [] + }, + { + "id": "f295e3bd1c69b977", + "type": "ui_text", + "z": "fba97e1121c3ad53", + "group": "e20265729517b54f", + "order": 9, + "width": 0, + "height": 0, + "name": "", + "label": "Geschwindigkeit", + "format": "{{msg.payload}} m/s", + "layout": "row-spread", + "className": "", + "x": 1120, + "y": 220, + "wires": [] + }, + { + "id": "8ff7296c6bb7fa3b", + "type": "ui_led", + "z": "fba97e1121c3ad53", + "order": 1, + "group": "202fde18a57d82a3", + "width": "0", + "height": "0", + "label": "Regelung aktiv", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#ff0000", + "value": "false", + "valueType": "bool" + }, + { + "color": "#008000", + "value": "true", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "Regelung aktiv", + "x": 1380, + "y": 220, + "wires": [] + }, + { + "id": "045aa20924f10a56", + "type": "ui_led", + "z": "fba97e1121c3ad53", + "order": 1, + "group": "1aa4758daa4bef2c", + "width": "0", + "height": "0", + "label": "Wickel aktiv", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#ff0000", + "value": "false", + "valueType": "bool" + }, + { + "color": "#008000", + "value": "true", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "Wickel aktiv", + "x": 1570, + "y": 220, + "wires": [] + }, + { + "id": "654523c52af77d3d", + "type": "ui_ui_control", + "z": "fba97e1121c3ad53", + "name": "", + "events": "all", + "x": 650, + "y": 700, + "wires": [ + [] + ] + }, + { + "id": "6235534a619b37d9", + "type": "inject", + "z": "fba97e1121c3ad53", + "name": "", + "props": [ + { + "p": "payload" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "{\"group\":{\"hide\":[\"Tab_1_Kaltwasserbad\"]}}", + "payloadType": "json", + "x": 430, + "y": 700, + "wires": [ + [ + "654523c52af77d3d" + ] + ] + }, + { + "id": "4ae988633cb990d5", + "type": "inject", + "z": "fba97e1121c3ad53", + "name": "", + "props": [ + { + "p": "payload" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "{\"group\":{\"show\":[\"Tab_1_Kaltwasserbad\"]}}", + "payloadType": "json", + "x": 430, + "y": 660, + "wires": [ + [ + "654523c52af77d3d" + ] + ] + }, + { + "id": "202fde18a57d82a3", + "type": "ui_group", + "name": "Materialspeicher", + "tab": "e739374c66c3fb6b", + "order": 5, + "disp": true, + "width": "6", + "collapse": false, + "className": "" + }, + { + "id": "c58ce13004b62d7b", + "type": "ui_group", + "name": "Zumbach", + "tab": "e739374c66c3fb6b", + "order": 3, + "disp": true, + "width": "6", + "collapse": false, + "className": "" + }, + { + "id": "e20265729517b54f", + "type": "ui_group", + "name": "Abzugseinheit", + "tab": "e739374c66c3fb6b", + "order": 4, + "disp": true, + "width": "6", + "collapse": false, + "className": "" + }, + { + "id": "1aa4758daa4bef2c", + "type": "ui_group", + "name": "Spule", + "tab": "e739374c66c3fb6b", + "order": 6, + "disp": true, + "width": "6", + "collapse": false, + "className": "" + }, + { + "id": "9f158206b49edfa8", + "type": "ui_group", + "name": "graphics", + "tab": "e739374c66c3fb6b", + "order": 8, + "disp": false, + "width": "35", + "collapse": false, + "className": "" + }, + { + "id": "affbf18529a0e78d", + "type": "ui_group", + "name": "Extruder", + "tab": "e739374c66c3fb6b", + "order": 1, + "disp": true, + "width": "6", + "collapse": false, + "className": "" + }, + { + "id": "0c3a3c1f77fcfb1a", + "type": "ui_group", + "name": "Warmwasserbad", + "tab": "e739374c66c3fb6b", + "order": 2, + "disp": true, + "width": "5", + "collapse": false, + "className": "" + }, + { + "id": "8a4365997544d2ce", + "type": "ui_group", + "name": "Kaltwasserbad", + "tab": "e739374c66c3fb6b", + "order": 7, + "disp": true, + "width": "5", + "collapse": false, + "className": "" + }, + { + "id": "e739374c66c3fb6b", + "type": "ui_tab", + "name": "Tab 1", + "icon": "dashboard", + "order": 1 + } +]