Feeling overwhelmed as to how to process my data for Octopus Agile emoncms App

I wrote a Node-Red flow to do that.

However, if you are measuring your import, why do you need that?