some more queries
This commit is contained in:
parent
df45cb5daa
commit
79ee9898e7
7
schema/queries02.sql
Normal file
7
schema/queries02.sql
Normal file
@ -0,0 +1,7 @@
|
||||
select time_bucket('1 day', time) as interval,
|
||||
round((last(exportenergyactive, time) - first(exportenergyactive, time))::numeric, 2) as energy
|
||||
from pv_power_measurement_t
|
||||
where time between date_trunc('month', now()) and date_trunc('month', now()) + interval '1 month'
|
||||
group by interval
|
||||
order by interval;
|
||||
|
Loading…
x
Reference in New Issue
Block a user