Possible locale issue

I have a friend in Germany using one of my flows. Some of the data is not showing up on his dashboard. When he sent me a screen shot of the debug is showing the property value for SWR as "1,2" instead of "1.2". See below:

What would make the json node output values as "1,2" instead of "1.1" . The only thing I can think of would be the locale settings?

Regards

I did some research and it does seem that in Germany the decimal separator is a comma and not a dot. This would explain the issue. Rather than have the person tweak his locale settings I just modified the function to replace the "," with ".".

Regards

Most of Europe uses , as the decimal separator, not just Germany. :smiley:

I think that if you converted the text to a number, it would work out.

1 Like

That is pretty much what I did...

omsg.SWR = parseFloat(msg.payload.meters["SWR"].replace(",","."));