0

help, cut character string

Bao Tran 2 years ago in bOS Configurator / Tasks updated by Jürgen Jürgenson 2 years ago 1

hello,

I have a piece of json data.

Image 3629

I got the temperature data with token setting : data[0].st , I want to just take the numeral data and remove the letter : 26.0C to 26.

Please help, thanks

Hey,

Are you using String node or Double node for it? Try it with double see if its able to get the value. If not maybe you should use regex to get only the number values from it.