confgi
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-12-07 15:14:22 +01:00
parent 65909becd6
commit ad34f9b27b
7 changed files with 356 additions and 1 deletions

View File

@ -37,3 +37,11 @@ create or replace view gas_v as
from measurements
where application = 'Gas' and
attributes->>'Status' = 'Ok';
create or replace view temperature_v as
select time,
cast(values->'Value'->>'value' as float) as temperature,
device
from measurements
where application in ('Temperature Multisensor', 'Temperature Shelly Plus HT');