[ { "id": "7eaafa97d5f89562", "type": "tab", "label": "multi array", "disabled": false, "info": "", "env": [] }, { "id": "eee639bb6b5be264", "type": "ctrlx-datalayer-subscribe", "z": "7eaafa97d5f89562", "subscription": "0cf7e417f192cb79", "path": "system/health/battery/value", "name": "", "inputs": 0, "x": 390, "y": 380, "wires": [ [ "b9cb7911b55ae247" ] ] }, { "id": "6ab038a0662ace26", "type": "ctrlx-datalayer-subscribe", "z": "7eaafa97d5f89562", "subscription": "0cf7e417f192cb79", "path": "system/health/temperature-system/value", "name": "", "inputs": 0, "x": 440, "y": 440, "wires": [ [ "97ef716f2cac747f" ] ] }, { "id": "f0a77b18ba9a6e14", "type": "ctrlx-datalayer-subscribe", "z": "7eaafa97d5f89562", "subscription": "0cf7e417f192cb79", "path": "system/health/temperature-cpu/value", "name": "", "inputs": 0, "x": 420, "y": 500, "wires": [ [ "415663f5bbb134a0" ] ] }, { "id": "69d99c9e874b38a4", "type": "ctrlx-datalayer-subscribe", "z": "7eaafa97d5f89562", "subscription": "0cf7e417f192cb79", "path": "system/health/operation-hours/value", "name": "", "inputs": 0, "x": 420, "y": 560, "wires": [ [ "6097ba61ccda134c" ] ] }, { "id": "6f1836d3820e6823", "type": "ctrlx-datalayer-subscribe", "z": "7eaafa97d5f89562", "subscription": "0cf7e417f192cb79", "path": "framework/metrics/system/memtotal-mb", "name": "", "inputs": 0, "x": 430, "y": 620, "wires": [ [ "bd2c09ddd4a3b1c3" ] ] }, { "id": "10057a9435f32298", "type": "ctrlx-datalayer-subscribe", "z": "7eaafa97d5f89562", "subscription": "0cf7e417f192cb79", "path": "framework/metrics/system/memused-mb", "name": "", "inputs": 0, "x": 440, "y": 680, "wires": [ [ "862c14032431ab0e" ] ] }, { "id": "61cf54117187458b", "type": "ctrlx-datalayer-subscribe", "z": "7eaafa97d5f89562", "subscription": "0cf7e417f192cb79", "path": "framework/metrics/system/cpu-utilisation-percent", "name": "", "inputs": 0, "x": 460, "y": 740, "wires": [ [ "c74617acc6a11da0" ] ] }, { "id": "58078a735f51287f", "type": "ctrlx-datalayer-subscribe", "z": "7eaafa97d5f89562", "subscription": "0cf7e417f192cb79", "path": "framework/metrics/system/memavailable-mb", "name": "", "inputs": 0, "x": 450, "y": 800, "wires": [ [ "33eef9112a8ddea3" ] ] }, { "id": "6429e53af798bccd", "type": "ctrlx-datalayer-subscribe", "z": "7eaafa97d5f89562", "subscription": "0cf7e417f192cb79", "path": "plc/app/Application/sym/GVL_HMI/rZaehlerArray/1", "name": "", "inputs": 0, "x": 470, "y": 260, "wires": [ [ "4e53ab20ddb821c1" ] ] }, { "id": "d30ddeacc1bdddf2", "type": "ctrlx-datalayer-subscribe", "z": "7eaafa97d5f89562", "subscription": "0cf7e417f192cb79", "path": "framework/metrics/system/memfree-mb", "name": "", "inputs": 0, "x": 430, "y": 320, "wires": [ [ "7dbb7ca52eb39ae7" ] ] }, { "id": "4e53ab20ddb821c1", "type": "change", "z": "7eaafa97d5f89562", "name": "", "rules": [ { "t": "set", "p": "ZA1", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 770, "y": 260, "wires": [ [] ] }, { "id": "7dbb7ca52eb39ae7", "type": "change", "z": "7eaafa97d5f89562", "name": "", "rules": [ { "t": "set", "p": "MemFree", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 690, "y": 320, "wires": [ [] ] }, { "id": "b9cb7911b55ae247", "type": "change", "z": "7eaafa97d5f89562", "name": "", "rules": [ { "t": "set", "p": "Bat", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 590, "y": 380, "wires": [ [] ] }, { "id": "97ef716f2cac747f", "type": "change", "z": "7eaafa97d5f89562", "name": "", "rules": [ { "t": "set", "p": "TMPS", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 700, "y": 440, "wires": [ [] ] }, { "id": "415663f5bbb134a0", "type": "change", "z": "7eaafa97d5f89562", "name": "", "rules": [ { "t": "set", "p": "TMPC", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 500, "wires": [ [] ] }, { "id": "6097ba61ccda134c", "type": "change", "z": "7eaafa97d5f89562", "name": "", "rules": [ { "t": "set", "p": "Oh", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 650, "y": 560, "wires": [ [] ] }, { "id": "bd2c09ddd4a3b1c3", "type": "change", "z": "7eaafa97d5f89562", "name": "", "rules": [ { "t": "set", "p": "MemT", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 680, "y": 620, "wires": [ [] ] }, { "id": "862c14032431ab0e", "type": "change", "z": "7eaafa97d5f89562", "name": "", "rules": [ { "t": "set", "p": "MemU", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 700, "y": 680, "wires": [ [] ] }, { "id": "c74617acc6a11da0", "type": "change", "z": "7eaafa97d5f89562", "name": "", "rules": [ { "t": "set", "p": "CPU", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 730, "y": 740, "wires": [ [] ] }, { "id": "33eef9112a8ddea3", "type": "change", "z": "7eaafa97d5f89562", "name": "", "rules": [ { "t": "set", "p": "MemA", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 720, "y": 800, "wires": [ [] ] }, { "id": "1dbfd2dc38f33fdd", "type": "inject", "z": "7eaafa97d5f89562", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": "0.0", "topic": "", "payload": "ZA1", "payloadType": "flow", "x": 940, "y": 260, "wires": [ [ "a47f1fb11f236193" ] ] }, { "id": "8cd7b14721c7df19", "type": "inject", "z": "7eaafa97d5f89562", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": "0.0", "topic": "", "payload": "MemFree", "payloadType": "flow", "x": 920, "y": 320, "wires": [ [ "939bdb2f1d45edf5" ] ] }, { "id": "ddc9021c28a04ed3", "type": "inject", "z": "7eaafa97d5f89562", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": "0.0", "topic": "", "payload": "Bat", "payloadType": "flow", "x": 940, "y": 380, "wires": [ [ "0424bc4704b1d26e" ] ] }, { "id": "c614053fa35d67cf", "type": "inject", "z": "7eaafa97d5f89562", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": "0.0", "topic": "", "payload": "TMPS", "payloadType": "flow", "x": 930, "y": 440, "wires": [ [ "d28f23a1622b99d5" ] ] }, { "id": "6f3830eccfe58f7a", "type": "inject", "z": "7eaafa97d5f89562", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": "0.0", "topic": "", "payload": "TMPC", "payloadType": "flow", "x": 930, "y": 500, "wires": [ [ "5773de968f0fa3a1" ] ] }, { "id": "faed3b88771f5496", "type": "inject", "z": "7eaafa97d5f89562", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": "0.0", "topic": "", "payload": "Oh", "payloadType": "flow", "x": 940, "y": 560, "wires": [ [ "2d5c8074fd847b6b" ] ] }, { "id": "38f8d583f9282493", "type": "inject", "z": "7eaafa97d5f89562", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": "0.0", "topic": "", "payload": "MemT", "payloadType": "flow", "x": 950, "y": 620, "wires": [ [ "78f677d3292de740" ] ] }, { "id": "e89b9ef65ab6a177", "type": "inject", "z": "7eaafa97d5f89562", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": "0.0", "topic": "", "payload": "MemU", "payloadType": "flow", "x": 950, "y": 680, "wires": [ [ "042d2988a5b91030" ] ] }, { "id": "267c85b4d11b6b6a", "type": "inject", "z": "7eaafa97d5f89562", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": "0.0", "topic": "", "payload": "CPU", "payloadType": "flow", "x": 950, "y": 740, "wires": [ [ "05441423aeb78d56" ] ] }, { "id": "0d0da867b9b50b5a", "type": "inject", "z": "7eaafa97d5f89562", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": "0.0", "topic": "", "payload": "MemA", "payloadType": "flow", "x": 950, "y": 800, "wires": [ [ "5e31a8ea82f454d8" ] ] }, { "id": "acd50e103810888d", "type": "function", "z": "7eaafa97d5f89562", "name": "Generate Payload_V3", "func": "\nvar payload = [];\nconst time_stamp= 100;\n\nfor (var i = 0; i < msg.payload[0].length; i++) {\n\n var data = {};\n data.ZA1V = msg.payload[0][i];\n data.MemF = msg.payload[1][i];\n data.Bat = msg.payload[2][i];\n data.TempSys = msg.payload[3][i];\n data.TempCpu = msg.payload[4][i];\n data.OperHours = msg.payload[5][i];\n data.MemTot = msg.payload[6][i];\n data.MemUsed = msg.payload[7][i];\n data.Cpu = msg.payload[8][i];\n data.MemAvalible = msg.payload[9][i];\n data.time = new Date().getTime() - (msg.payload[0].length - i) * time_stamp;\n\n payload.push([data]);\n\n}\n\nmsg.payload = payload;\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1840, "y": 520, "wires": [ [ "7db0e1c0d72e49b0" ] ] }, { "id": "a47f1fb11f236193", "type": "batch", "z": "7eaafa97d5f89562", "name": "", "mode": "count", "count": "10", "overlap": 0, "interval": 10, "allowEmptySequence": false, "topics": [], "x": 1130, "y": 260, "wires": [ [ "57f84705b04f49e8" ] ] }, { "id": "57f84705b04f49e8", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1290, "y": 260, "wires": [ [ "facdb13b370570d4" ] ] }, { "id": "939bdb2f1d45edf5", "type": "batch", "z": "7eaafa97d5f89562", "name": "", "mode": "count", "count": "10", "overlap": 0, "interval": 10, "allowEmptySequence": false, "topics": [], "x": 1130, "y": 320, "wires": [ [ "711bd4b2fa3e1988" ] ] }, { "id": "711bd4b2fa3e1988", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1290, "y": 320, "wires": [ [ "facdb13b370570d4" ] ] }, { "id": "0424bc4704b1d26e", "type": "batch", "z": "7eaafa97d5f89562", "name": "", "mode": "count", "count": "10", "overlap": 0, "interval": 10, "allowEmptySequence": false, "topics": [], "x": 1130, "y": 380, "wires": [ [ "18eeb971aaf6f0ee" ] ] }, { "id": "18eeb971aaf6f0ee", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1290, "y": 380, "wires": [ [ "facdb13b370570d4" ] ] }, { "id": "d28f23a1622b99d5", "type": "batch", "z": "7eaafa97d5f89562", "name": "", "mode": "count", "count": "10", "overlap": 0, "interval": 10, "allowEmptySequence": false, "topics": [], "x": 1130, "y": 440, "wires": [ [ "89b5b57fed27946c" ] ] }, { "id": "89b5b57fed27946c", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1290, "y": 440, "wires": [ [ "facdb13b370570d4" ] ] }, { "id": "5773de968f0fa3a1", "type": "batch", "z": "7eaafa97d5f89562", "name": "", "mode": "count", "count": "10", "overlap": 0, "interval": 10, "allowEmptySequence": false, "topics": [], "x": 1130, "y": 500, "wires": [ [ "a54a615336d5e240" ] ] }, { "id": "a54a615336d5e240", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1290, "y": 500, "wires": [ [ "facdb13b370570d4" ] ] }, { "id": "2d5c8074fd847b6b", "type": "batch", "z": "7eaafa97d5f89562", "name": "", "mode": "count", "count": "10", "overlap": 0, "interval": 10, "allowEmptySequence": false, "topics": [], "x": 1130, "y": 560, "wires": [ [ "1ea837910e708d0b" ] ] }, { "id": "1ea837910e708d0b", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1290, "y": 560, "wires": [ [ "facdb13b370570d4" ] ] }, { "id": "78f677d3292de740", "type": "batch", "z": "7eaafa97d5f89562", "name": "", "mode": "count", "count": "10", "overlap": 0, "interval": 10, "allowEmptySequence": false, "topics": [], "x": 1130, "y": 620, "wires": [ [ "f39be4893b47c0e4" ] ] }, { "id": "f39be4893b47c0e4", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1290, "y": 620, "wires": [ [ "facdb13b370570d4" ] ] }, { "id": "042d2988a5b91030", "type": "batch", "z": "7eaafa97d5f89562", "name": "", "mode": "count", "count": "10", "overlap": 0, "interval": 10, "allowEmptySequence": false, "topics": [], "x": 1130, "y": 680, "wires": [ [ "2d77b4d126d20f6d" ] ] }, { "id": "2d77b4d126d20f6d", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1290, "y": 680, "wires": [ [ "facdb13b370570d4" ] ] }, { "id": "05441423aeb78d56", "type": "batch", "z": "7eaafa97d5f89562", "name": "", "mode": "count", "count": "10", "overlap": 0, "interval": 10, "allowEmptySequence": false, "topics": [], "x": 1130, "y": 740, "wires": [ [ "5912bf676ba03d1d" ] ] }, { "id": "5912bf676ba03d1d", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1290, "y": 740, "wires": [ [ "facdb13b370570d4" ] ] }, { "id": "5e31a8ea82f454d8", "type": "batch", "z": "7eaafa97d5f89562", "name": "", "mode": "count", "count": "10", "overlap": 0, "interval": 10, "allowEmptySequence": false, "topics": [], "x": 1130, "y": 800, "wires": [ [ "00a8fad309f255d0" ] ] }, { "id": "00a8fad309f255d0", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1290, "y": 800, "wires": [ [ "facdb13b370570d4" ] ] }, { "id": "facdb13b370570d4", "type": "join", "z": "7eaafa97d5f89562", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "10", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1530, "y": 520, "wires": [ [ "acd50e103810888d" ] ] }, { "id": "7db0e1c0d72e49b0", "type": "influxdb out", "z": "7eaafa97d5f89562", "influxdb": "1462ba33c35a97da", "name": "", "measurement": "InfluxDB_test_v2", "precision": "", "retentionPolicy": "", "database": "database", "precisionV18FluxV20": "ms", "retentionPolicyV18Flux": "", "org": "boschrexroth", "bucket": "boschrexroth", "x": 2210, "y": 520, "wires": [] }, { "id": "0cf7e417f192cb79", "type": "ctrlx-config-subscription", "device": "09934ba365f563f3", "name": "Subscribe_X3", "publishIntervalMs": "100", "publishIntervalUnits": "milliseconds", "samplingInterval": "", "samplingIntervalUnits": "milliseconds", "errorInterval": "", "errorIntervalUnits": "seconds", "keepaliveInterval": "1", "keepaliveIntervalUnits": "minutes", "queueSize": "", "queueBehaviour": "DiscardOldest", "deadbandValue": "" }, { "id": "1462ba33c35a97da", "type": "influxdb", "hostname": "127.0.0.1", "port": "8086", "protocol": "http", "database": "database", "name": "Local InfluxDB", "usetls": false, "tls": "", "influxdbVersion": "2.0", "url": "http://localhost:8086", "timeout": "", "rejectUnauthorized": true }, { "id": "09934ba365f563f3", "type": "ctrlx-config", "name": "", "hostname": "localhost", "debug": false } ]