group nodes by protocols

This commit is contained in:
JcDenis 2024-04-30 00:55:00 +02:00
parent 543ab337d9
commit 6e4e1d1d44
9 changed files with 4692 additions and 4113 deletions

File diff suppressed because one or more lines are too long

460
flows/A.Rhasspy.json Normal file
View file

@ -0,0 +1,460 @@
[
{
"id": "0e52966a98143270",
"type": "tab",
"label": "A.Rhasspy",
"disabled": false,
"info": "",
"env": []
},
{
"id": "0bcf11e13c87f1de",
"type": "group",
"z": "0e52966a98143270",
"name": "rhasspy - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"c227fdb52429c5c6",
"2260fb9363658a31",
"4d50622a83e8e8c2"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "aaf2565e899722f4",
"type": "group",
"z": "0e52966a98143270",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"1f6c0e47b1931294",
"4e181f8e271b0ba1",
"8257f8177d899a49"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
},
{
"id": "17a8ab0a21c7790b",
"type": "group",
"z": "0e52966a98143270",
"name": "mqtt server for rhasspy",
"style": {
"fill": "#ffffff",
"fill-opacity": "0.5",
"label": true,
"stroke": "#0070c0"
},
"nodes": [
"a23c2aa7e24eb8f7",
"234feecbe12db6fa"
],
"x": 68,
"y": 173,
"w": 1764,
"h": 194
},
{
"id": "a23c2aa7e24eb8f7",
"type": "group",
"z": "0e52966a98143270",
"g": "17a8ab0a21c7790b",
"name": "",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"81b03b89f507e5ce",
"3eda424ef17379e9",
"af3082ef59725979",
"9518f42686aaf99c",
"6d6bcbb7ce10198f",
"da4da5b15f106b4a"
],
"x": 94,
"y": 199,
"w": 1162,
"h": 142
},
{
"id": "234feecbe12db6fa",
"type": "group",
"z": "0e52966a98143270",
"g": "17a8ab0a21c7790b",
"name": "",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"d07502e0620ed3d9",
"4cfd419f66b58eda",
"4db395b3e8fa404f",
"d8b85eb94b57b81f"
],
"x": 1294,
"y": 199,
"w": 512,
"h": 142
},
{
"id": "c227fdb52429c5c6",
"type": "change",
"z": "0e52966a98143270",
"g": "0bcf11e13c87f1de",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "rhasspy",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"4d50622a83e8e8c2"
]
]
},
{
"id": "2260fb9363658a31",
"type": "link in",
"z": "0e52966a98143270",
"g": "0bcf11e13c87f1de",
"name": "rhasspy - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"c227fdb52429c5c6"
]
]
},
{
"id": "4d50622a83e8e8c2",
"type": "link out",
"z": "0e52966a98143270",
"g": "0bcf11e13c87f1de",
"name": "rhasspy - bucket",
"mode": "link",
"links": [],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "1f6c0e47b1931294",
"type": "catch",
"z": "0e52966a98143270",
"g": "aaf2565e899722f4",
"name": "catch error",
"scope": null,
"uncaught": false,
"x": 620,
"y": 60,
"wires": [
[
"4e181f8e271b0ba1"
]
]
},
{
"id": "4e181f8e271b0ba1",
"type": "change",
"z": "0e52966a98143270",
"g": "aaf2565e899722f4",
"name": "topic",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "rhasspy",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 790,
"y": 60,
"wires": [
[
"8257f8177d899a49"
]
]
},
{
"id": "8257f8177d899a49",
"type": "link out",
"z": "0e52966a98143270",
"g": "aaf2565e899722f4",
"name": "catch error",
"mode": "link",
"links": [
"a52f0e788cd4dca3"
],
"x": 915,
"y": 60,
"wires": []
},
{
"id": "81b03b89f507e5ce",
"type": "link out",
"z": "0e52966a98143270",
"g": "a23c2aa7e24eb8f7",
"name": "mqtt rhasspy",
"mode": "link",
"links": [],
"x": 1215,
"y": 240,
"wires": []
},
{
"id": "3eda424ef17379e9",
"type": "q-gate",
"z": "0e52966a98143270",
"g": "a23c2aa7e24eb8f7",
"name": "",
"controlTopic": "gate",
"defaultState": "queueing",
"openCmd": "open",
"closeCmd": "close",
"toggleCmd": "toggle",
"queueCmd": "close",
"defaultCmd": "default",
"triggerCmd": "trigger",
"flushCmd": "open",
"resetCmd": "reset",
"peekCmd": "peek",
"dropCmd": "drop",
"statusCmd": "status",
"maxQueueLength": "0",
"keepNewest": false,
"qToggle": false,
"persist": false,
"storeName": "default",
"x": 590,
"y": 240,
"wires": [
[
"6d6bcbb7ce10198f"
]
]
},
{
"id": "af3082ef59725979",
"type": "link in",
"z": "0e52966a98143270",
"g": "a23c2aa7e24eb8f7",
"name": "mqtt rhasspy gate",
"links": [
"d68d686bbf684c95",
"8fdb5986494986cc"
],
"x": 455,
"y": 300,
"wires": [
[
"3eda424ef17379e9"
]
]
},
{
"id": "9518f42686aaf99c",
"type": "delay",
"z": "0e52966a98143270",
"g": "a23c2aa7e24eb8f7",
"name": "50 msg / s",
"pauseType": "rate",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "50",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 390,
"y": 240,
"wires": [
[
"3eda424ef17379e9"
]
]
},
{
"id": "6d6bcbb7ce10198f",
"type": "change",
"z": "0e52966a98143270",
"g": "a23c2aa7e24eb8f7",
"name": "raz MQTT properties",
"rules": [
{
"t": "delete",
"p": "qos",
"pt": "msg"
},
{
"t": "delete",
"p": "retain",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1040,
"y": 240,
"wires": [
[
"81b03b89f507e5ce"
]
]
},
{
"id": "da4da5b15f106b4a",
"type": "mqtt in",
"z": "0e52966a98143270",
"g": "a23c2aa7e24eb8f7",
"name": "MQTT rhasspy",
"topic": "hermes/intent/#",
"qos": "2",
"datatype": "json",
"broker": "442ad702808e3c66",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 200,
"y": 240,
"wires": [
[
"9518f42686aaf99c"
]
]
},
{
"id": "d07502e0620ed3d9",
"type": "mqtt out",
"z": "0e52966a98143270",
"g": "234feecbe12db6fa",
"name": "MQTT rhasspy",
"topic": "",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "442ad702808e3c66",
"x": 1700,
"y": 240,
"wires": []
},
{
"id": "4cfd419f66b58eda",
"type": "link in",
"z": "0e52966a98143270",
"g": "234feecbe12db6fa",
"name": "mqtt rhasspy",
"links": [
"10aafa2119bcdcac",
"2c561a436a935bc6"
],
"x": 1335,
"y": 240,
"wires": [
[
"d8b85eb94b57b81f"
]
]
},
{
"id": "4db395b3e8fa404f",
"type": "link out",
"z": "0e52966a98143270",
"g": "234feecbe12db6fa",
"name": "mqtt rhasspy output",
"mode": "link",
"links": [
"833f9ea0770f6e5a"
],
"x": 1635,
"y": 300,
"wires": []
},
{
"id": "d8b85eb94b57b81f",
"type": "switch",
"z": "0e52966a98143270",
"g": "234feecbe12db6fa",
"name": "check topic",
"property": "topic",
"propertyType": "msg",
"rules": [
{
"t": "regex",
"v": "^(hermes|rhasspy)",
"vt": "str",
"case": false
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1470,
"y": 240,
"wires": [
[
"d07502e0620ed3d9",
"4db395b3e8fa404f"
]
]
}
]

File diff suppressed because it is too large Load diff

462
flows/P.Ble.json Normal file
View file

@ -0,0 +1,462 @@
[
{
"id": "f641ea2d0fb81a6f",
"type": "tab",
"label": "P.Ble",
"disabled": false,
"info": "",
"env": []
},
{
"id": "537aac555c684ae3",
"type": "group",
"z": "f641ea2d0fb81a6f",
"name": "ble - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"93d12516213391e9",
"87bee795cb96b8ec",
"aa01a391bf2e3f28"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "9ebb276838bea666",
"type": "group",
"z": "f641ea2d0fb81a6f",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"fe51c69eebe4478d",
"4eae669ccbda7532",
"f91e7a1c2c512a0e"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
},
{
"id": "72988ccecf802b11",
"type": "group",
"z": "f641ea2d0fb81a6f",
"name": "mqtt server for bluetooth",
"style": {
"fill": "#ffffff",
"fill-opacity": "0.5",
"label": true,
"stroke": "#0070c0"
},
"nodes": [
"cf382d5398b6de43",
"24eae452ebf32be6"
],
"x": 68,
"y": 173,
"w": 1764,
"h": 194
},
{
"id": "cf382d5398b6de43",
"type": "group",
"z": "f641ea2d0fb81a6f",
"g": "72988ccecf802b11",
"name": "",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"c73c3b488741b764",
"85c0a8032c692a9a",
"c8d1b777a117ee56",
"be2acafce4c2c74d",
"11a6de1c96795b4d",
"e60cbfea876d91e7"
],
"x": 94,
"y": 199,
"w": 1162,
"h": 142
},
{
"id": "24eae452ebf32be6",
"type": "group",
"z": "f641ea2d0fb81a6f",
"g": "72988ccecf802b11",
"name": "",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"d4252f4120129d32",
"55db3023ac9ae3c1",
"a411175648a9f14e",
"1052950934d566bf"
],
"x": 1294,
"y": 199,
"w": 512,
"h": 142
},
{
"id": "93d12516213391e9",
"type": "change",
"z": "f641ea2d0fb81a6f",
"g": "537aac555c684ae3",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "ble",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"aa01a391bf2e3f28"
]
]
},
{
"id": "87bee795cb96b8ec",
"type": "link in",
"z": "f641ea2d0fb81a6f",
"g": "537aac555c684ae3",
"name": "ble - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"93d12516213391e9"
]
]
},
{
"id": "aa01a391bf2e3f28",
"type": "link out",
"z": "f641ea2d0fb81a6f",
"g": "537aac555c684ae3",
"name": "ble - bucket",
"mode": "link",
"links": [],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "fe51c69eebe4478d",
"type": "catch",
"z": "f641ea2d0fb81a6f",
"g": "9ebb276838bea666",
"name": "catch error",
"scope": null,
"uncaught": false,
"x": 620,
"y": 60,
"wires": [
[
"4eae669ccbda7532"
]
]
},
{
"id": "4eae669ccbda7532",
"type": "change",
"z": "f641ea2d0fb81a6f",
"g": "9ebb276838bea666",
"name": "topic",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "ble",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 790,
"y": 60,
"wires": [
[
"f91e7a1c2c512a0e"
]
]
},
{
"id": "f91e7a1c2c512a0e",
"type": "link out",
"z": "f641ea2d0fb81a6f",
"g": "9ebb276838bea666",
"name": "catch error",
"mode": "link",
"links": [
"a52f0e788cd4dca3"
],
"x": 915,
"y": 60,
"wires": []
},
{
"id": "c73c3b488741b764",
"type": "mqtt in",
"z": "f641ea2d0fb81a6f",
"g": "cf382d5398b6de43",
"name": "MQTT bluetooth",
"topic": "ble/+/#",
"qos": "2",
"datatype": "auto-detect",
"broker": "ef0a4a5a649e056f",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 200,
"y": 240,
"wires": [
[
"11a6de1c96795b4d"
]
]
},
{
"id": "85c0a8032c692a9a",
"type": "link out",
"z": "f641ea2d0fb81a6f",
"g": "cf382d5398b6de43",
"name": "mqtt bluetooth",
"mode": "link",
"links": [
"60e7ca843ea8f2e0"
],
"x": 1215,
"y": 240,
"wires": []
},
{
"id": "c8d1b777a117ee56",
"type": "q-gate",
"z": "f641ea2d0fb81a6f",
"g": "cf382d5398b6de43",
"name": "",
"controlTopic": "gate",
"defaultState": "queueing",
"openCmd": "open",
"closeCmd": "close",
"toggleCmd": "toggle",
"queueCmd": "close",
"defaultCmd": "default",
"triggerCmd": "trigger",
"flushCmd": "open",
"resetCmd": "reset",
"peekCmd": "peek",
"dropCmd": "drop",
"statusCmd": "status",
"maxQueueLength": "0",
"keepNewest": false,
"qToggle": false,
"persist": false,
"storeName": "default",
"x": 590,
"y": 240,
"wires": [
[
"e60cbfea876d91e7"
]
]
},
{
"id": "be2acafce4c2c74d",
"type": "link in",
"z": "f641ea2d0fb81a6f",
"g": "cf382d5398b6de43",
"name": "mqtt bluetooth gate",
"links": [
"d68d686bbf684c95",
"8fdb5986494986cc"
],
"x": 455,
"y": 300,
"wires": [
[
"c8d1b777a117ee56"
]
]
},
{
"id": "11a6de1c96795b4d",
"type": "delay",
"z": "f641ea2d0fb81a6f",
"g": "cf382d5398b6de43",
"name": "100 msg / s",
"pauseType": "rate",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "100",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 390,
"y": 240,
"wires": [
[
"c8d1b777a117ee56"
]
]
},
{
"id": "e60cbfea876d91e7",
"type": "change",
"z": "f641ea2d0fb81a6f",
"g": "cf382d5398b6de43",
"name": "raz MQTT properties",
"rules": [
{
"t": "delete",
"p": "qos",
"pt": "msg"
},
{
"t": "delete",
"p": "retain",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1040,
"y": 240,
"wires": [
[
"85c0a8032c692a9a"
]
]
},
{
"id": "d4252f4120129d32",
"type": "mqtt out",
"z": "f641ea2d0fb81a6f",
"g": "24eae452ebf32be6",
"name": "MQTT bluetooth",
"topic": "",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "ef0a4a5a649e056f",
"x": 1700,
"y": 240,
"wires": []
},
{
"id": "55db3023ac9ae3c1",
"type": "link in",
"z": "f641ea2d0fb81a6f",
"d": true,
"g": "24eae452ebf32be6",
"name": "mqtt bluetooth",
"links": [],
"x": 1335,
"y": 240,
"wires": [
[
"1052950934d566bf"
]
]
},
{
"id": "a411175648a9f14e",
"type": "link out",
"z": "f641ea2d0fb81a6f",
"g": "24eae452ebf32be6",
"name": "mqtt bluetooth output",
"mode": "link",
"links": [
"3ce812bf89416c2e",
"b5e020af24b6c81a",
"824a1416d7a3cfe1"
],
"x": 1635,
"y": 300,
"wires": []
},
{
"id": "1052950934d566bf",
"type": "switch",
"z": "f641ea2d0fb81a6f",
"g": "24eae452ebf32be6",
"name": "check topic",
"property": "topic",
"propertyType": "msg",
"rules": [
{
"t": "regex",
"v": "^ble",
"vt": "str",
"case": false
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1490,
"y": 240,
"wires": [
[
"d4252f4120129d32",
"a411175648a9f14e"
]
]
}
]

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff