For the moment i'm using nodered for logging my data directly in InfluxDB but i want to buffer the data in batches (of 5000 measurements or more) and write those all together in InfluxDB.
Because if i use Grafana and i ask alot of data (for example 5years with a interval of 5s) then node red sometimes can't write data to InfluxDB. So with the buffer i can solve that problem.
Know i was thinking of writing the data in CLI and store it in a txt file (wich i already have done).
VATEN_1_P10_STEP, ActueelProd_S=Geen biersoort value=0 1599131750298000
VATEN_1_P20_STEP, ActueelProd_S=Geen biersoort value=0 1599131750298000
But does anyone have a idea of how i can send this txt file to the influxDb as a batch and check if the influxDB has recieved it?
Also i was thinking of using the Batch node in Node red for transmitting the data as batch but i thought it was too time consuming. Because i have to write the data to the external file read it back in and put all the data trough a function node to put it in a array structure. Or is that the better way of doing this?
I hope i explained myself well enough.
Thanks at advance!