I'm new to the node red, I've create a function that takes data from the Raspberry sense hat and I've written the following function to separate the data into 3 streams:
var msg1 = { payload: msg.payload.acceleration.z };
var msg2 = { payload: msg.payload.temperature };
var msg3 = { payload: msg.payload.pressure };
return [ [msg1], [msg2], [msg3] ];
From these data streams I've attached the charts and it all seems to be displaying the data correctly. However, these 3 messages keep on appearing in the debug window. Do you know why or how to stop them?
21 Mar 18:28:20 - [error] [ui_gauge:21ce1e34.466272] TypeError: Cannot read property 'toString' of undefined
21 Mar 18:28:20 - [error] [ui_gauge:f04d20fd.29fdd] TypeError: Cannot read property 'toString' of undefined
21 Mar 18:28:20 - [error] [function:89bbcb93.c61508] TypeError: Cannot read property 'z' of undefined