I guess I need a little guidance here for storing variables for use in Node red. I’m working on a system to present statuses for a industrial plant. This could include maybe 100-200 variables to be used in other calculations. So far I use influxdb and grafana for showing trends. The underlaying system can serve data as OPC UA, MQTT or REST.
My idea is that it might be effective to read the data only once and then store them somewhere in Node-Red as variables. My question is how to do this?
- Store them as global variables?
- Store them in a json file?
- Read them from the source every time I need it?
My goal is that it should be easy to pick up a variable and use it...
Any best practices on this?