JavaScript and Flux compatibility

Hello. To monitor the energy flows in my house I use this application made in JavaScript:

Get the data from the influxdb database. In the “project.js” file, there is an area where it takes the data of energy produced, consumed,…, from influxdb:

The problem is that the query is done in the language of influxdb 1, and I would like to know if it can be adapted for the Flux language.
Do you know if JavaScript is compatible with Flux?

Hi @s118,

you can use the GitHub - influxdata/influxdb-client-js: InfluxDB 2.0 JavaScript client. For more info see examples: influxdb-client-js/examples at master · influxdata/influxdb-client-js · GitHub