Collecting messages and send a avarage

Hello,

I'm new at node-red and so here is my first stupid question:
I use the smart-meter-node to get values from my eletric-power-meter over a USB-IR-Adapter. That works well and so at first thanks to the developer of this node.
But I get a message every few seconds. Thats great for a realtime-monitor but it's to much for a database. So it will be nice to collect a number of values and give out a avarage of this. Maybe every minute 1 or after 10 or 20 incomming messages. Is this possible?

Niels

You can use the "smooth" node, send an average of 10 or a given number, only emit one message after reaching the average number.
Capture

1 Like

Thanks David, how cool. What a easy way!

Niels

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.