database stuff
This commit is contained in:
parent
b64fd0206c
commit
696c299ac9
@ -8,3 +8,13 @@ select time_bucket('1 day', time) as interval,
|
||||
|
||||
|
||||
-- daily stats of current month
|
||||
|
||||
|
||||
|
||||
|
||||
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;
|
0
schema/yield-by-month.sql
Normal file
0
schema/yield-by-month.sql
Normal file
Loading…
x
Reference in New Issue
Block a user