I understand - the number of words is limited. so I'll break it down into parts.
Here is what I get from the sensors and how I manipulated it, trying to display data and build a graph.
[
{
"id": "9aa7116f3472193e",
"type": "tab",
"label": "Поток 3",
"disabled": false,
"info": "",
"env": []
},
{
"id": "7ffec55aa3b2882d",
"type": "group",
"z": "9aa7116f3472193e",
"style": {
"stroke": "#999999",
"stroke-opacity": "1",
"fill": "none",
"fill-opacity": "1",
"label": true,
"label-position": "nw",
"color": "#a4a4a4"
},
"nodes": [
"34e1058d56988bb4",
"8fcc48e88095aa4f",
"4aecac59123db356"
],
"x": 54,
"y": 479,
"w": 642,
"h": 82
},
{
"id": "0638920c2b7b0714",
"type": "ui-chart",
"z": "9aa7116f3472193e",
"group": "22630b857b3b1aa7",
"name": "",
"label": "chart",
"order": 9007199254740991,
"chartType": "scatter",
"category": "payload.data[0][1][0]",
"categoryType": "property",
"xAxisProperty": "payload.data[0][0]",
"xAxisPropertyType": "msg",
"xAxisType": "linear",
"yAxisProperty": "",
"ymin": "-15",
"ymax": "+15",
"action": "append",
"pointShape": "cross",
"pointRadius": "10",
"showLegend": true,
"removeOlder": 1,
"removeOlderUnit": "3600",
"removeOlderPoints": "100",
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"width": 6,
"height": 8,
"className": "",
"x": 1310,
"y": 420,
"wires": [
[]
]
},
{
"id": "8b9296699b747ec0",
"type": "inject",
"z": "9aa7116f3472193e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"desc\":[\"Ax\",\"Ay\",\"Az\"],\"unit\":\"m/s²\",\"data\":[[1709001978720,[-0.7469909,-1.1683705,9.289502]],[1709001983490,[-1.0726024,-0.93852705,9.576807]],[1709001983559,[-1.0534488,-0.93852705,9.557653]],[1709001983662,[-1.0726024,-0.93852705,9.557653]]]}",
"payloadType": "json",
"x": 140,
"y": 160,
"wires": [
[
"c97fde09e89bda37",
"a8cc9f66c56a4526",
"6c864779f7ff7e5d",
"b6b5ea9520b8fec9"
]
]
},
{
"id": "ce6e1c19c1b8e24b",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 321",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 470,
"y": 160,
"wires": []
},
{
"id": "c97fde09e89bda37",
"type": "switch",
"z": "9aa7116f3472193e",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "payload[0]",
"vt": "jsonata"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 290,
"y": 340,
"wires": [
[
"c2340b03b52a4632"
]
]
},
{
"id": "c2340b03b52a4632",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 322",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 470,
"y": 340,
"wires": []
},
{
"id": "74e5ca16d8db73ff",
"type": "inject",
"z": "9aa7116f3472193e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"data\":[[10,[-0.74,-1,9.2]],[15,[-0.1,2,10.9]],[20,[-0.9,-1,9.55]]]}",
"payloadType": "json",
"x": 700,
"y": 120,
"wires": [
[
"8aa97556d720c9a8",
"b856bca8a3d34278",
"0e40f74e50fe33c1",
"022e853a150acad3"
]
]
},
{
"id": "62ecfdfc5bed9fcd",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 323",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 930,
"y": 240,
"wires": []
},
{
"id": "8aa97556d720c9a8",
"type": "function",
"z": "9aa7116f3472193e",
"name": "function 19",
"func": "var xData = msg.payload.data.map(item => item[0]); // Получаем ось X\nvar yData = msg.payload.data.map(item => item[1]); // Получаем ось Y\nvar datasets = yData[0].map((col, i) => yData.map(row => row[i])); // Преобразуем массив для удобства отображения\n\nmsg.payload = {\n series: ['A', 'B', 'C'], // Имена для оси Y\n labels: xData, // Метки для оси X\n data: datasets // Данные для графика\n};\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 730,
"y": 240,
"wires": [
[
"62ecfdfc5bed9fcd",
"95a07b906b81338f"
]
]
},
{
"id": "b856bca8a3d34278",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 324",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 950,
"y": 100,
"wires": []
},
{
"id": "0e40f74e50fe33c1",
"type": "function",
"z": "9aa7116f3472193e",
"name": "function 20",
"func": "var input = msg.payload.data;\n\nvar points = [];\ninput.forEach(function (item) {\n var xValue = item[0];\n var yValues = item[1];\n\n yValues.forEach(function (yValue, index) {\n var point = {\n x: xValue,\n y: yValue\n };\n points.push(point);\n });\n});\n\nmsg.payload = {\n data: [points]\n};\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 730,
"y": 180,
"wires": [
[
"c94c2308e744d18c",
"85696e027d9a8825",
"e4b10e21ddc987c3",
"858cfb16459d3c8e",
"bc65474b74fbfe3a"
]
]
},
{
"id": "c94c2308e744d18c",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 325",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 950,
"y": 160,
"wires": []
},
{
"id": "85696e027d9a8825",
"type": "split",
"z": "9aa7116f3472193e",
"name": "",
"splt": "[",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": true,
"addname": "",
"x": 730,
"y": 300,
"wires": [
[
"749256190847b237",
"d4593f8a9bed0b2d"
]
]
},
{
"id": "749256190847b237",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 326",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 930,
"y": 300,
"wires": []
},
{
"id": "a8cc9f66c56a4526",
"type": "json",
"z": "9aa7116f3472193e",
"name": "",
"property": "payload",
"action": "str",
"pretty": false,
"x": 310,
"y": 160,
"wires": [
[
"ce6e1c19c1b8e24b"
]
]
},
{
"id": "6c864779f7ff7e5d",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 327",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 350,
"y": 80,
"wires": []
},
{
"id": "b6b5ea9520b8fec9",
"type": "change",
"z": "9aa7116f3472193e",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.data[0][0]",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 210,
"y": 280,
"wires": [
[
"ab36882ea7815de3"
]
]
},
{
"id": "ab36882ea7815de3",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 328",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 470,
"y": 280,
"wires": []
},
{
"id": "e4b10e21ddc987c3",
"type": "json",
"z": "9aa7116f3472193e",
"name": "",
"property": "payload",
"action": "str",
"pretty": false,
"x": 1170,
"y": 220,
"wires": [
[
"8468da1eb4d084db",
"0638920c2b7b0714"
]
]
},
{
"id": "8468da1eb4d084db",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 329",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1330,
"y": 220,
"wires": []
},
{
"id": "2e152ecff38965e6",
"type": "inject",
"z": "9aa7116f3472193e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"data\":[[10,[-0.74,-1.16,9.2]],[15,[-1.1,-0.7,10.9]],[20,[-0.9,-1.05,9.55]]]}",
"payloadType": "json",
"x": 720.8880004882812,
"y": 61.04833984375,
"wires": [
[]
]
},
{
"id": "022e853a150acad3",
"type": "json",
"z": "9aa7116f3472193e",
"name": "",
"property": "payload",
"action": "str",
"pretty": false,
"x": 1150,
"y": 140,
"wires": [
[
"b6fe81fb6d050194"
]
]
},
{
"id": "b6fe81fb6d050194",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 330",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1310,
"y": 140,
"wires": []
},
{
"id": "858cfb16459d3c8e",
"type": "change",
"z": "9aa7116f3472193e",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$number(y[0])",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1170,
"y": 280,
"wires": [
[
"fd9c677ffe23beeb"
]
]
},
{
"id": "fd9c677ffe23beeb",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 331",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1370,
"y": 280,
"wires": []
},
{
"id": "d4593f8a9bed0b2d",
"type": "flat",
"z": "9aa7116f3472193e",
"name": "",
"x": 890,
"y": 360,
"wires": [
[
"ca297568aca89d3c"
]
]
},
{
"id": "ca297568aca89d3c",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 332",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1030,
"y": 360,
"wires": []
},
{
"id": "95a07b906b81338f",
"type": "flat",
"z": "9aa7116f3472193e",
"name": "",
"x": 1570,
"y": 240,
"wires": [
[
"a618392cc3cdb5fe",
"da1d449afbdc85a6"
]
]
},
{
"id": "a618392cc3cdb5fe",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 333",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1710,
"y": 260,
"wires": []
},
{
"id": "bc65474b74fbfe3a",
"type": "flat",
"z": "9aa7116f3472193e",
"name": "",
"x": 1555.887939453125,
"y": 187.04833984375,
"wires": [
[
"ea2847b354a06311",
"d41efc2a02be5347"
]
]
},
{
"id": "cb7fc59eb6b95354",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 334",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1790,
"y": 100,
"wires": []
},
{
"id": "ea2847b354a06311",
"type": "split",
"z": "9aa7116f3472193e",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 1910,
"y": 200,
"wires": [
[
"388f04d1e2b701e2"
]
]
},
{
"id": "388f04d1e2b701e2",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 335",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 2090,
"y": 200,
"wires": []
},
{
"id": "da1d449afbdc85a6",
"type": "split",
"z": "9aa7116f3472193e",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 1910,
"y": 240,
"wires": [
[
"b18798c4e50c39da"
]
]
},
{
"id": "b18798c4e50c39da",
"type": "debug",
"z": "9aa7116f3472193e",
"name": "debug 336",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 2090,
"y": 240,
"wires": []
},
{
"id": "d41efc2a02be5347",
"type": "json",
"z": "9aa7116f3472193e",
"name": "",
"property": "payload",
"action": "str",
"pretty": false,
"x": 1650,
"y": 100,
"wires": [
[
"cb7fc59eb6b95354"
]
]
},
{
"id": "34e1058d56988bb4",
"type": "date-converter",
"z": "9aa7116f3472193e",
"g": "7ffec55aa3b2882d",
"name": "",
"topic": "",
"input": "",
"inputType": "msg",
"inTz": "",
"adjAmount": 0,
"adjType": "days",
"adjDir": "add",
"format": "",
"locale": "",
"output": "",
"outputType": "msg",
"outTz": "",
"x": 400,
"y": 520,
"wires": [
[
"4aecac59123db356"
],
[]
]
},
{
"id": "8fcc48e88095aa4f",
"type": "inject",
"z": "9aa7116f3472193e",
"g": "7ffec55aa3b2882d",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1709001978721",
"payloadType": "num",
"x": 180,
"y": 520,
"wires": [
[
"34e1058d56988bb4"
]
]
},
{
"id": "4aecac59123db356",
"type": "debug",
"z": "9aa7116f3472193e",
"g": "7ffec55aa3b2882d",
"name": "debug 337",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 580,
"y": 520,
"wires": []
},
{
"id": "22630b857b3b1aa7",
"type": "ui-group",
"name": "Group Name test1",
"page": "60f2b5834f44bb9f",
"width": "6",
"height": "1",
"order": -1,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "60f2b5834f44bb9f",
"type": "ui-page",
"name": "test2",
"ui": "8e88ed68f54ffc23",
"path": "/page1",
"icon": "home",
"layout": "grid",
"theme": "ebbd600a4950e6d4",
"order": -1,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "8e88ed68f54ffc23",
"type": "ui-base",
"name": "UI Name1",
"path": "/dashboard",
"includeClientData": true,
"acceptsClientConfig": [
"ui-notification",
"ui-control"
],
"showPathInSidebar": false,
"navigationStyle": "default"
},
{
"id": "ebbd600a4950e6d4",
"type": "ui-theme",
"name": "Theme Name 1",
"colors": {
"surface": "#ffffff",
"primary": "#0094ce",
"bgPage": "#eeeeee",
"groupBg": "#ffffff",
"groupOutline": "#cccccc"
},
"sizes": {
"pagePadding": "12px",
"groupGap": "12px",
"groupBorderRadius": "4px",
"widgetGap": "12px"
}
}
]