Is it possible to reduce this from 11 functions to 1 or 2 ?
[{"id":"ac586536.94f728","type":"join","z":"42651355.aa1f14","name":"sammeln der LOG.SET Werte","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"11","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":530,"y":680,"wires":[["a7bb7f9d.2c971","e671d252.de5308","1b50fd4f.d7de1b","adf165d0.f5f98","23d44ada.be3786","6748251.e9060dc","1f9656cf.0d9d31","2ba7d4c8.19f814","786d7f8e.e0b228","a3f1f55d.4e7ae","9853b949.b54b4"]]},{"id":"58c72b8a.cc137c","type":"calculate","z":"42651355.aa1f14","name":"Durchschnitt pro Minute","pauseType":"timed","calculation":"average","timeout":"1","timeoutUnits":"minutes","rate":"10","x":510,"y":720,"wires":[["ac586536.94f728"]]},{"id":"e671d252.de5308","type":"function","z":"42651355.aa1f14","name":"RLT runden","func":"var temp = msg.payload[40012];\nmsg.payload = parseFloat(temp.toFixed(1));\nmsg.topic = \"RLT\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":280,"wires":[["cd2af0c2.da42d8"]]},{"id":"1b50fd4f.d7de1b","type":"function","z":"42651355.aa1f14","name":"WWo runden","func":"var temp = msg.payload[40013];\nmsg.payload = parseFloat(temp.toFixed(1));\nmsg.topic = \"WWo\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":320,"wires":[["cd2af0c2.da42d8"]]},{"id":"adf165d0.f5f98","type":"function","z":"42651355.aa1f14","name":"WW runden","func":"var temp = msg.payload[40014];\nmsg.payload = parseFloat(temp.toFixed(1));\nmsg.topic = \"WW\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":360,"wires":[["cd2af0c2.da42d8"]]},{"id":"23d44ada.be3786","type":"function","z":"42651355.aa1f14","name":"KTe runden","func":"var temp = msg.payload[40015];\nmsg.payload = parseFloat(temp.toFixed(1));\nmsg.topic = \"KTe\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":400,"wires":[["cd2af0c2.da42d8"]]},{"id":"6748251.e9060dc","type":"function","z":"42651355.aa1f14","name":"KTa runden","func":"var temp = msg.payload[40016];\nmsg.payload = parseFloat(temp.toFixed(1));\nmsg.topic = \"KTa\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":440,"wires":[["cd2af0c2.da42d8"]]},{"id":"1f9656cf.0d9d31","type":"function","z":"42651355.aa1f14","name":"Hz runden","func":"var temp = msg.payload[43136];\nmsg.payload = parseFloat(temp.toFixed(0));\nmsg.topic = \"Hz\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":480,"wires":[["cd2af0c2.da42d8"]]},{"id":"2ba7d4c8.19f814","type":"function","z":"42651355.aa1f14","name":"Pth runden","func":"var temp = msg.payload[\"Pth\"];\nmsg.payload = parseFloat(temp.toFixed(0));\nmsg.topic = \"Pth\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":520,"wires":[["cd2af0c2.da42d8"]]},{"id":"a7bb7f9d.2c971","type":"function","z":"42651355.aa1f14","name":"VLT runden","func":"var temp = msg.payload[40008];\nmsg.payload = parseFloat(temp.toFixed(1));\nmsg.topic = \"VLT\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":240,"wires":[["cd2af0c2.da42d8"]]},{"id":"786d7f8e.e0b228","type":"function","z":"42651355.aa1f14","name":"GM runden","func":"var temp = msg.payload[\"43005\"];\nmsg.payload = parseFloat(temp.toFixed(0));\nmsg.topic = \"GM\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":560,"wires":[["cd2af0c2.da42d8"]]},{"id":"a3f1f55d.4e7ae","type":"function","z":"42651355.aa1f14","name":"WT runden","func":"var temp = msg.payload[\"43437\"];\nmsg.payload = parseFloat(temp.toFixed(0));\nmsg.topic = \"WT%\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":600,"wires":[["cd2af0c2.da42d8"]]},{"id":"9853b949.b54b4","type":"function","z":"42651355.aa1f14","name":"KT runden","func":"var temp = msg.payload[\"43439\"];\nmsg.payload = parseFloat(temp.toFixed(0));\nmsg.topic = \"KT%\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":550,"y":640,"wires":[["cd2af0c2.da42d8"]]},{"id":"cd2af0c2.da42d8","type":"join","z":"42651355.aa1f14","name":"sammeln aller Werte für InfluxDB","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"14","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":860,"y":280,"wires":[["2bfda1bf.fbc7ce"]]},{"id":"2bfda1bf.fbc7ce","type":"influxdb out","z":"42651355.aa1f14","influxdb":"72e5611c.85f388","name":"Sensordaten","measurement":"Sensordaten","precision":"","retentionPolicy":"","database":"db","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"organisation","bucket":"bucket","x":1090,"y":280,"wires":[]},{"id":"72e5611c.85f388","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB","usetls":false,"tls":"","influxdbVersion":"1.8-flux","url":"http://localhost:8086","rejectUnauthorized":true}]
I´m giving each value a topic + round.
var temp = msg.payload[40016];
msg.payload = parseFloat(temp.toFixed(1));
msg.topic = "KTa";
return msg;
toFixed(1) or (0).