Is that what you’re asking I couldn’t quite tell.
PS what are you using InfluxDB for? I’m curious to learn about the projects that community members are working on.
I then use influxdb to aggregate and count the number of states of some devices for a certain period of time. These time periods are uncertain, such as 3days, 7days, 20 days, 30 days, 45 days, etc.
I checked the documentation and found that when my time is 7 days, it starts from Thursday. I can use 0ffset to adjust the start time. When I think it should not be like this, when every is 1week, it can start on Thursday. Yes, when using 7d it should be better to aggregate by the original time.