Hi All, I am working on a project that involves monitoring and logging analogue data using MCP3008. To save logging every second, I plan to use the calculate node to provide minimum, maximum and average over a 1 minute time period. My testing has been done using a shorter period of 15 seconds so I don't have to wait as long to see the results. What I am trying to achieve is to have a single message output with the Min, max and avg, but not sure quite how to achieve it. I have attached a small test flow but the output is separate messages. Can someone point me in the right direction for joining these into a single message?
[{"id":"381de29c.cc835e","type":"calculate","z":"a57e828d.689cc","name":"Min","pauseType":"timed","calculation":"min","timeout":"15","timeoutUnits":"seconds","rate":"10","x":1560,"y":900,"wires":[["4e1f0f54.aa3c3"]]},{"id":"28743cf1.a2fe54","type":"calculate","z":"a57e828d.689cc","name":"Average","pauseType":"timed","calculation":"average","timeout":"15","timeoutUnits":"seconds","rate":"10","x":1570,"y":940,"wires":[["4e1f0f54.aa3c3"]]},{"id":"477b2cae.de7ac4","type":"calculate","z":"a57e828d.689cc","name":"Max","pauseType":"timed","calculation":"max","timeout":"15","timeoutUnits":"seconds","rate":"10","x":1560,"y":980,"wires":[["4e1f0f54.aa3c3"]]},{"id":"7569850d.d95c9c","type":"calculator","z":"a57e828d.689cc","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"rand","constant":"","round":false,"decimals":0,"x":1300,"y":940,"wires":[["381de29c.cc835e","28743cf1.a2fe54","477b2cae.de7ac4"]]},{"id":"ddab9f6a.2c7d8","type":"inject","z":"a57e828d.689cc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"0.5","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1110,"y":940,"wires":[["7569850d.d95c9c"]]},{"id":"4e1f0f54.aa3c3","type":"debug","z":"a57e828d.689cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1910,"y":920,"wires":[]}]