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

influx timestamps are in nanoseconds (and end up with a datatype of 'object') but JavaScript/Node-RED want milliseconds #99

Open juggledad opened 3 years ago

juggledad commented 3 years ago

If you select some rows from influx so the timestamp is returned, it looks great in a Debug node however if you pass it onto a CSV node it gets surrounded by three double quotes.

If you pass the data to a function node and do a 'typeof' on it, it shows up as an object. Would it be possible to divide the timestamps by 1000 so Node-RED would treat them as a timestamp?