I'm a beginner with Node Red. We have Energy Project at our company were we trace the Electrical Power. We use a Weidmueller UC20-WL2000-AC with Node Red for Weidmueller v1.1.2.
My problem is now, that our IT want the value of the power meter, what we consume between 1 minute. The want that I store the value and again 1 minute later, then subtract the value and send them the result of that calculation.
I have no idea how I can realize that. I have checked the forum but maybe I don't ask the correct questions.
I hope someone here can help me to solve this problem.
What do you not know how to do?
Fetch the value?
Do that every minute?
Calculate the difference with the last reading?
Send them the result?
If you are just starting with node red, I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.
That´s what I am using for SmartPlugs at home.
I am writing the value to a .txt file every few minutes and on nodered start I initialize the value from that .txt file