I need to see on my graph the totally number of KM which i have did between when the CAR is fully tank.
I am receiving the current measurements from influxDB and can see every time how much KM i did ride with the CAR. It registers automatically the last KM’s data when the car is stopped.
Just when i go to the tank station and the Car is fully tank the Line on this example goes higher. So the idea is so i can see de differences.
This is the current data which i can see on PANEL on RAW format:
SELECT last("value") FROM "default"."km" WHERE ("entity_id" = '320i_mileage') AND $timeFilter GROUP BY time(10s) fill(null)
With this Panel:
So what do i need to do to realize that?
@endrolar to the Grafana forum.
Could you please a portion of your data in csv or tabular format, for example:
total_km | fill_up_time
-------- | --------
435 | 2023-05-10T18:00:00Z
932 | 2023-05-18T11:00:00Z
1540 | 2023-05-25T14:00:00Z
What do you really mean? Do you mean send to you the source data? Where can i find this in Grafana? I can see it well on InfluxDB what you mean. Some LOGS in RAW format. Waiting your reply
May 24, 2023, 12:35pm
I was asking if you could export the data from InfluxDB in .csv format so that others can work with it to help you find a solution.
The instructions to get the .csv data out of InfluxDB version depend on which version you are running. Which version of InfluxDB are you using? If it’s an earlier version that uses command line, it is probably something like:
influx -database 'myDatabase' -execute 'SELECT * from myMeasurement' -format csv > Influxdata.csv
i dont have access to the CLI command line because i am using home assistant addon of the InfluxDB.
I have tried via the GUI query the data but will not work for me with this example.
USE “homeassistant”; DELETE FROM “$” WHERE “entity_id” = ‘320i_remaining_range_fuel’ AND time > ‘2023-3-23T16:01:00Z’ and time < ‘2023-5-23T04:48:00Z’
USE “homeassistant”; DELETE FROM “$” WHERE “entity_id” = ‘320i_remaining_range_fuel’
ok, just i have found it. I have exported CSV file now using the script editor of InfluxDB. But i don’t have here any option to upload a file but see the screenshot.
Open the file in notepad, copy and paste here