Object to number Conversion

Hello, im trying to convert a Object (Sense hat simulator temperature output) to a number (UI Gauge)

im having issues regarding the conversion, if someone could steer me in the correct way, much appreciated!

Hi @Robbie98

can you share what the Debug output shows for the message coming from the SenseHat node? If I remember the node correctly (I did write it....), it sends a payload of {temperature: 12}.

I can see you have added a JSON node - that will be converting the object to a string. That will make it harder to access the individual values inside the string.

I think you just need the Change node between the SenseHat node and the gauge node, configured to set msg.payload to msg.payload.temperature.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.