Display sensor data to Grove LCD RGB (I2C-1)

I am trying to get a sensor value on the "grove lcdrgb output"

GrovePi LcdRGB Output Node Sends data to GrovePi LcdRGB I2C-Device.

I have used a Inject node for text and RGB to set the color, this is working perfect

{"text":"text on the lcd","rgb":[255,0,0]}

I have Temperature data in msg. payload.temperature:number

I would like to add the value example 18 to GrovePi LcdRGB I2C-Device.

How can I get this done

Add a function node before the Grove node containing...

msg.payload = {
  "text": "temp=" + msg.payload.temperature + "°C",
  "rgb":[255,0,0]
}
return msg;

Thanks Steve, its working perfect

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