You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the V2 influxDB
"No measurement specified" is thrown in Node-red
this appears to be because msg.hasOwnProperty('measurement') returns undefined instead of an bool.
The example has no measurement property. Adding a measurement property does not help.
so the following always returns false: var measurement = msg.hasOwnProperty('measurement') ? msg.measurement : node.measurement; if (!measurement) { return done(RED._("influxdb.errors.nomeasurement")); }
I am using the V2 influxDB
"No measurement specified" is thrown in Node-red
this appears to be because msg.hasOwnProperty('measurement') returns undefined instead of an bool.
The example has no measurement property. Adding a measurement property does not help.
so the following always returns false:
var measurement = msg.hasOwnProperty('measurement') ? msg.measurement : node.measurement; if (!measurement) { return done(RED._("influxdb.errors.nomeasurement")); }
The following example was used:
msg.payload = [ [{ intValue: '9i', numValue: 10, randomValue: Math.random()*10, strValue: "message1", time: new Date().getTime()-1 }, { tag1:"sensor1", tag2:"device2" }], [{ intValue: '11i', numValue: 20, randomValue: Math.random()*10, strValue: "message2", time: new Date().getTime() }, { tag1:"sensor1", tag2:"device2" }] ]; return msg;
The text was updated successfully, but these errors were encountered: