From d323468050970c0a19e896dd4232d18f26f32da3 Mon Sep 17 00:00:00 2001 From: simonox Date: Wed, 22 Feb 2023 16:27:14 +0100 Subject: [PATCH] example flow --- .../flow/00-dashboard-example/dashboard.json | 150 ++++++++++++++++++ software/flow/README.md | 2 + 2 files changed, 152 insertions(+) create mode 100644 software/flow/00-dashboard-example/dashboard.json diff --git a/software/flow/00-dashboard-example/dashboard.json b/software/flow/00-dashboard-example/dashboard.json new file mode 100644 index 0000000..39fdf70 --- /dev/null +++ b/software/flow/00-dashboard-example/dashboard.json @@ -0,0 +1,150 @@ +[ + { + "id": "f6f2187d.f17ca8", + "type": "tab", + "label": "MQTT2Influxdb", + "disabled": false, + "info": "" + }, + { + "id": "3087953953e076e4", + "type": "mqtt in", + "z": "f6f2187d.f17ca8", + "name": "", + "topic": "/iot-platform/energy-monitor/test-device/watt", + "qos": "1", + "datatype": "auto-detect", + "broker": "1f5727bf9cb1a283", + "nl": false, + "rap": true, + "rh": 0, + "inputs": 0, + "x": 330, + "y": 300, + "wires": [ + [ + "0106090633950260", + "4f85603ccdbacaa8" + ] + ] + }, + { + "id": "0106090633950260", + "type": "ui_gauge", + "z": "f6f2187d.f17ca8", + "name": "", + "group": "672ca753f86b2049", + "order": 0, + "width": 0, + "height": 0, + "gtype": "gage", + "title": "Power ", + "label": "W", + "format": "{{value}}", + "min": 0, + "max": "4000", + "colors": [ + "#00b500", + "#e6e600", + "#ca3838" + ], + "seg1": "", + "seg2": "", + "diff": false, + "className": "", + "x": 690, + "y": 300, + "wires": [] + }, + { + "id": "4f85603ccdbacaa8", + "type": "ui_chart", + "z": "f6f2187d.f17ca8", + "name": "", + "group": "672ca753f86b2049", + "order": 1, + "width": 0, + "height": 0, + "label": "Chart", + "chartType": "line", + "legend": "false", + "xformat": "HH:mm:ss", + "interpolate": "linear", + "nodata": "", + "dot": false, + "ymin": "", + "ymax": "", + "removeOlder": 1, + "removeOlderPoints": "", + "removeOlderUnit": "3600", + "cutout": 0, + "useOneColor": false, + "useUTC": false, + "colors": [ + "#1f77b4", + "#aec7e8", + "#ff7f0e", + "#2ca02c", + "#98df8a", + "#d62728", + "#ff9896", + "#9467bd", + "#c5b0d5" + ], + "outputs": 1, + "useDifferentColor": false, + "className": "", + "x": 690, + "y": 340, + "wires": [ + [] + ] + }, + { + "id": "1f5727bf9cb1a283", + "type": "mqtt-broker", + "name": "192.168.2.103:1833", + "broker": "192.168.2.103", + "port": "1883", + "clientid": "", + "autoConnect": true, + "usetls": false, + "protocolVersion": "4", + "keepalive": "60", + "cleansession": true, + "birthTopic": "", + "birthQos": "0", + "birthPayload": "", + "birthMsg": {}, + "closeTopic": "", + "closeQos": "0", + "closePayload": "", + "closeMsg": {}, + "willTopic": "", + "willQos": "0", + "willPayload": "", + "willMsg": {}, + "userProps": "", + "sessionExpiry": "" + }, + { + "id": "672ca753f86b2049", + "type": "ui_group", + "name": "Power", + "tab": "75777e4818b02078", + "order": 1, + "disp": true, + "width": "6", + "collapse": false, + "className": "" + }, + { + "id": "75777e4818b02078", + "type": "ui_tab", + "name": "Powermonitor", + "icon": "dashboard", + "order": 1, + "disabled": false, + "hidden": false + } +] \ No newline at end of file diff --git a/software/flow/README.md b/software/flow/README.md index acbd4f9..030c300 100644 --- a/software/flow/README.md +++ b/software/flow/README.md @@ -28,3 +28,5 @@ In Node-RED you can add a MQQT node to receive values from the power monitor, ho The dashboard looks like that. ![Mobile view](./docs/images/5-dashboard.png) + +You can see this flow also in [this repository](./00-dashboard-example/dashboard.json). \ No newline at end of file