example flow

This commit is contained in:
simonox 2023-02-22 16:27:14 +01:00
parent ab25f0c17e
commit d323468050
2 changed files with 152 additions and 0 deletions

View File

@ -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
}
]

View File

@ -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).