Add aggregate API and fix (hack) time bucket

This commit is contained in:
2024-03-12 21:58:29 -04:00
parent ec85be2096
commit e4ee81ca3e
7 changed files with 77 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
SELECT
time_bucket('15 minute', time) AS bucket,
time_bucket('@BucketMinutes minute', time) AS bucket,
name,
ROUND(avg(temperature), 2) AS averageTemperature,
ROUND(avg(pressure), 2) AS averagePressure,