mblackstock/node-red-contrib-influxdb

"time" - outside range

TheNON75 opened this issue · 1 comments

Good morning,

i am kindly asking for some help with using time(stamp).
I've tried following the output example and also by changing the time to string, but in both cases I receive the error:
"HttpError: unable to parse 'temperature,class=sensors,type=environment Kitchen=19.55 1643966422275': time outside range -9223372036854775806 - 9223372036854775806"

The func node with static data (except time):

msg.measurement = "temperature"
msg.payload = [
    {
        "Kitchen": 19.55,
        "time": (new Date().getTime()-60000).toString() // toString was added to see if the error persists
    },
    {
        "class": "sensors",
        "type": "environment"
    }
]
return msg;

the resulting payload (with simply new Date().getTime() ):
image
thank you

ps.: i will galdly open a pr to the documentation afterwards :)

my bad... darn morning coffee