I am logging(every 1minute) the charging of an battery, and want to get a
table of results where each result is just the max of each charging cycle.
Do you mean max, or do you mean sum?
In other words, are you looking for the maximum value of the measurement at
any point in the cycle, or do yu want to add up all the measurements during
Is this possible with influxdb?
Yes, I would think so.
If so can you give me some guidance?
How about select max(measurement) from datasource group by time(interval)
Replace “measurement” with whatever the field in your data source is named
Replace “datasource” with whatever the table containing the data is named
Replace “interval” with whatever the length of your charging cycle is (eg:
“1d”, judging from your example below)
6/10/2019 11:52:52 52Kw Added
6/09/2019 11:52:52 12Kw Added
6/08/2019 11:52:52 25Kw Added