mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-14 18:47:28 -05:00
Add aggregate API and fix (hack) time bucket
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user