I am trying to create a script that creates 2 variables, and increments each one of them based on a condition. The actualNetWeight is received in real-time with a MQTT connection to a server and the values are displayed in a line chart. When this value is over or equals to 0.500, I have to count that item entry as
Tag: node-red
node-red cannot get msg.payload on template node unde JS tag
I am trying to get the payload data in a template node inside a JS tag. The template node is not the one that is part of the dashboard library. Outside the JS code, you can get the payload by using mustache tags {{.}}. Any idea how can I get the data in JS code? These are the nodes: This