Hi There, how can I remove the "_msgid" from the Object array? I want to store the data "PIR01" in InfluxDB, but not the msgid.The msg Object looks like this:
{"PIR01":0,"_msgid":"7fa2112a.cc128"}
PLS help! ![]()
Hi There, how can I remove the "_msgid" from the Object array? I want to store the data "PIR01" in InfluxDB, but not the msgid.The msg Object looks like this:
{"PIR01":0,"_msgid":"7fa2112a.cc128"}
PLS help! ![]()
Store your data in a msg property and use that for the database. I.e. usually folk use msg.payload and therefore msg._msgid is of no consequence.
Assuming that you want to use node-red-contrib-influxdb, then the data for the db must be in msg.payload, as described in the node's help text. Therefore msg._msgid is irrelevant. It does not matter whether it is there or not.
Oh nice, now it works! Thanks! ![]()
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.