mblackstock / node-red-contrib-influxdb

Node-RED nodes to save and query data from an influxdb time series database
Other
64 stars 44 forks source link

msg.precision from incoming message not used for v1.8 and 2.0 #123

Closed vdwpsmt closed 1 year ago

vdwpsmt commented 2 years ago

not possible to overwrite precision with the incoming message key msg.precision occurs (in my case) when selecting v2.0 as my influxdb. the node keeps using the property time precision as shown in the form (precisionV18FluxV20 in the backend). precisionV18FluxV20 should be overwritten by msg.precision in case of v1.8/2.0

mblackstock commented 1 year ago

From PR #129

on influx version_1x the precision is added as an argument to the write method. on influx version_18_flux and version_20 the precision is added as an argument on creating the write client, so before any message has arrived.

It is not possible with the current client to change the precision on write.