3 minute read
For implementing a Node-RED flow one first needs to understand how we at UMH defined the data transfer. It is designed in the way of a three level architecture in which each level is represented by one subflow in Node-RED.
As a first step we always want to safe all messages from sensors (retrofitted and internal) in the form of there arrival. We don’t want to process the messages at this point. Like a neanderthal we want to grab every piece of data we could possibly use later. But keep in mind the frequency with that you’re scanning the sensors and machines for data (Once or ten times per second are two whole different pair of shoes).
When working on this flow we are at a stage where we have all the data produced by the machine available in the cloud provided by our MQTT broker. So we now want to perform some basic calculations on them. For example:
Most Important: These are just the basic functions you should always include in your Node-RED flow. But, there are so many more you can think of and design yourself. To get an impression go to our documentation. In a nutshell, all combinations and mathematical operations of the input variables can be calculated. Always ask the client and user and think of what can be valuable!
In addition to the subflow that we created under step 2, there is at least one last /topic that is very important: the machine state.
Here we combine output messages from step 2 to gather all the information needed to perform relevant analysis on overall conditions. Similar to step 2 also here other information than only the machine state can be of interest. Creativity is you friend! ^^