On 15 March 2017 at 13:22, steve rickus <
sri...@gmail.com> wrote:
> Hi Marius,
>
> The debug output shows your msg is an object, not a string -- and yes, there
> are many ways to do what you want, but it depends on what you want to pass
> to Freeboard. Since I'm not familiar with it, I'll just assume you only need
> the numeric value of the object, rounded to 2 decimal places.
>
> Simplest solution for a javascript programmer would be this 3 line function
> node (which returns a string):
>
> var numval = msg.payload.value || -1;