Node-red-contrib-gapit-results not inserting to InflluxDB2.1

The node-red-contrib-gapit-results Node has the following output:

image

I want to insert that in InfluxDB2.1 using the node-red-contrib-influxdb without sucess.

In the influxdb Node:
image

Organization: Organization ID in InfluxDB

Server settings:
image

Token is API token of the user.

Should this work or does the inflluxdb Node not support v2.1 of Influx DB.


John

Do you get an error message from InfluxDB when you use those settings?

No, where should these errors be reported in InfluxDB? Do you have it working with InfluxDB 2.1?


John

The InfluxDB errors will be shown in the node-red debug window.

You should be using the InfluxDB batch node for this to work!

Screenshot-43

I'm using that node, see below:
image

Furthermore there are no error messages:

Do you have it working with InfluxDB 2.1?


John

Yes, I am doing some tests with 2.1.1. If you are not getting errors could it be that the data
is in the database and your query is not returning the correct time range?

My query:

from(bucket: "energy")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "hhdata")
  |> filter(fn: (r) => r["_field"] == "consumption")

And the timerange is set up like this:
Screenshot-44

Run a query that fetches everything from the measurement to see whether something has been written, and if so what. If there is already a lot of data there then test it with a new measurement to see what is going on.

1 Like

Thanks for all the support. Did the set-up again and now it is operational.

1 Like

It would be useful to know what is different in the setup this time, so that anyone else finding this will know where to look.

I agree, but I used exactly the identical set-up.

Well something must be different or it would have worked then. The trouble with giving up and starting again, rather than working out what the problem is, is that if it happens again you will be back at square 1.