add UI table for the list of registred entities

This commit is contained in:
JcDenis 2024-05-10 00:15:15 +02:00
parent d765f044b6
commit 4b9174b9e1
3 changed files with 235 additions and 12 deletions

View file

@ -1038,5 +1038,18 @@
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "234a71f9f37e0fe7",
"type": "ui-group",
"name": "Liste des entités",
"page": "a7cbb932c183a9ce",
"width": "18",
"height": "1",
"order": 4,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
}
]

File diff suppressed because one or more lines are too long

View file

@ -316,10 +316,32 @@
"e87e17419a9dd28c"
],
"x": 94,
"y": 2799,
"y": 2919,
"w": 1182,
"h": 142
},
{
"id": "e7814f99120a45d2",
"type": "group",
"z": "1362a4b4f08f3d5b",
"name": "creator - list entities",
"style": {
"label": true
},
"nodes": [
"fd0e7bccfabe2ee6",
"451c9ff36fe2e477",
"b940aaca8de45053",
"d4a55209a00a2850",
"090dbbbe36a15a24",
"6e172580996cd122",
"457282d09d5173fa"
],
"x": 94,
"y": 2799,
"w": 1192,
"h": 82
},
{
"id": "1d1b97b90e8247f3",
"type": "change",
@ -4921,7 +4943,7 @@
"name": "creator - entity to md5",
"links": [],
"x": 135,
"y": 2840,
"y": 2960,
"wires": [
[
"83530f0e60512326"
@ -4949,7 +4971,7 @@
"to": "",
"reg": false,
"x": 450,
"y": 2840,
"y": 2960,
"wires": [
[
"2241bb87e3791806"
@ -4966,7 +4988,7 @@
"action": "str",
"pretty": true,
"x": 790,
"y": 2840,
"y": 2960,
"wires": [
[
"76a625401145af61"
@ -4984,7 +5006,7 @@
"hashField": "md5",
"hashFieldType": "msg",
"x": 950,
"y": 2840,
"y": 2960,
"wires": [
[
"51977d236a5b4e17"
@ -5010,7 +5032,7 @@
"to": "",
"reg": false,
"x": 1110,
"y": 2840,
"y": 2960,
"wires": [
[
"463b42633dcf4058"
@ -5026,7 +5048,7 @@
"mode": "return",
"links": [],
"x": 1235,
"y": 2840,
"y": 2960,
"wires": []
},
{
@ -5068,7 +5090,7 @@
"repair": false,
"outputs": 2,
"x": 280,
"y": 2840,
"y": 2960,
"wires": [
[
"2e633d555e1a36f6"
@ -5099,7 +5121,7 @@
"to": "",
"reg": false,
"x": 450,
"y": 2900,
"y": 3020,
"wires": [
[
"2241bb87e3791806"
@ -5165,7 +5187,7 @@
"to": "",
"reg": false,
"x": 630,
"y": 2840,
"y": 2960,
"wires": [
[
"95727dfedbf37b0d"
@ -5180,7 +5202,7 @@
"name": "uid = model . id . option",
"info": "",
"x": 680,
"y": 2900,
"y": 3020,
"wires": []
},
{
@ -5261,5 +5283,193 @@
"f5b6bba2551b5bec"
]
]
},
{
"id": "fd0e7bccfabe2ee6",
"type": "ui-table",
"z": "1362a4b4f08f3d5b",
"g": "e7814f99120a45d2",
"group": "234a71f9f37e0fe7",
"name": "",
"label": "text",
"order": 2,
"width": "18",
"height": "1",
"maxrows": 0,
"passthru": false,
"autocols": true,
"selectionType": "none",
"columns": [],
"x": 1210,
"y": 2840,
"wires": [
[]
]
},
{
"id": "451c9ff36fe2e477",
"type": "ui-button",
"z": "1362a4b4f08f3d5b",
"g": "e7814f99120a45d2",
"group": "234a71f9f37e0fe7",
"name": "",
"label": "Recharger",
"order": 1,
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"x": 190,
"y": 2840,
"wires": [
[
"b940aaca8de45053"
]
]
},
{
"id": "b940aaca8de45053",
"type": "change",
"z": "1362a4b4f08f3d5b",
"g": "e7814f99120a45d2",
"name": "from global",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "entities",
"tot": "global"
},
{
"t": "set",
"p": "list_entities",
"pt": "flow",
"to": "[]",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 2840,
"wires": [
[
"d4a55209a00a2850"
]
]
},
{
"id": "d4a55209a00a2850",
"type": "split",
"z": "1362a4b4f08f3d5b",
"g": "e7814f99120a45d2",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 570,
"y": 2840,
"wires": [
[
"6e172580996cd122"
]
]
},
{
"id": "090dbbbe36a15a24",
"type": "join",
"z": "1362a4b4f08f3d5b",
"g": "e7814f99120a45d2",
"name": "",
"mode": "auto",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"timeout": "",
"count": "",
"reduceRight": false,
"x": 890,
"y": 2840,
"wires": [
[
"457282d09d5173fa"
]
]
},
{
"id": "6e172580996cd122",
"type": "change",
"z": "1362a4b4f08f3d5b",
"g": "e7814f99120a45d2",
"name": "add",
"rules": [
{
"t": "set",
"p": "list_entities[msg.parts.index]",
"pt": "flow",
"to": "{\t 'bucket':msg.payload.bucket,\t 'measurement':msg.payload.measurement,\t 'field':msg.payload.field,\t 'protocol':msg.payload.protocol,\t 'id':msg.payload.id,\t 'option':msg.payload.option,\t 'value':msg.option.default,\t 'brand':msg.payload.brand,\t 'mdoel':msg.payload.model\t}",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 730,
"y": 2840,
"wires": [
[
"090dbbbe36a15a24"
]
]
},
{
"id": "457282d09d5173fa",
"type": "change",
"z": "1362a4b4f08f3d5b",
"g": "e7814f99120a45d2",
"name": "table",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "list_entities",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1050,
"y": 2840,
"wires": [
[
"fd0e7bccfabe2ee6"
]
]
}
]