MQTT Time Stamp Error

Dear to All,
I am receive from a Mqqt Broker a correct Json Object. But I have attached error about the time stamp.

What is it mean?

It means what it says , it expected an numeric time stamp, but received an ISO time string.

You will need to put a function or change node and convert the value.

just a couple of minutes ago i solved this same Problem
you add a function node with

msg.payload = {
model: msg.payload.model,
temperature_C: msg.payload.temperature_C,
humidity: msg.payload.humidity
return msg;

so you just give a id and from the originalPayload you copy the information, start with temperature and then add on by on

Thanks for the support,
I am try the following function, but what I need to write, in replace field ?


A simple example

Thanks E1cid, It is works!!!.

But the problem is that now influx DB doesn't show any measuraments, because is not present the databese time...

Are you trying to add a record for the current time? If so then you don't need to put the timestamp in at all, just delete it from the payload.

Also show us what is in the other element of the array.

OK!!, It is working, Tnx to all

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