node_red with mqtt broker

This commit is contained in:
Filipriec
2026-03-31 15:34:24 +02:00
parent 35d8730a4e
commit 6d483c328a
22 changed files with 2951 additions and 0 deletions

151
node_red/.flows.json.backup Normal file
View File

@@ -0,0 +1,151 @@
[
{
"id": "9eb49f5a92a1fd3b",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "6b2e38e17bfa3f33",
"type": "mqtt-broker",
"name": "My Local Broker",
"broker": "127.0.0.1",
"port": 1883,
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": 4,
"keepalive": 60,
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
},
{
"id": "5ad30309e1cee232",
"type": "aedes broker",
"z": "9eb49f5a92a1fd3b",
"name": "My Local Broker",
"mqtt_port": 1883,
"mqtt_ws_bind": "port",
"mqtt_ws_port": "",
"mqtt_ws_path": "",
"cert": "",
"key": "",
"ca": "",
"certname": "",
"keyname": "",
"caname": "",
"persistence_bind": "memory",
"dburl": "",
"persist_to_file": false,
"usetls": false,
"x": 160,
"y": 180,
"wires": [
[],
[]
]
},
{
"id": "1ceb963f57ac6638",
"type": "mqtt in",
"z": "9eb49f5a92a1fd3b",
"name": "",
"topic": "test/message",
"qos": "0",
"datatype": "auto-detect",
"broker": "6b2e38e17bfa3f33",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 170,
"y": 340,
"wires": [
[
"8745c32a408262ee"
]
]
},
{
"id": "ac89c094a9a2aa4f",
"type": "mqtt out",
"z": "9eb49f5a92a1fd3b",
"name": "ayoy",
"topic": "test/message",
"qos": "0",
"retain": "true",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "6b2e38e17bfa3f33",
"x": 350,
"y": 400,
"wires": []
},
{
"id": "b057480d17796035",
"type": "inject",
"z": "9eb49f5a92a1fd3b",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 160,
"y": 400,
"wires": [
[
"ac89c094a9a2aa4f"
]
]
},
{
"id": "8745c32a408262ee",
"type": "debug",
"z": "9eb49f5a92a1fd3b",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 360,
"y": 340,
"wires": []
}
]