some more views
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-01-15 11:12:23 +01:00
parent 08e81e309c
commit 8cfc92c226

View File

@ -76,3 +76,11 @@ create or replace view co2_v as
device device
from measurements from measurements
where application = 'de-hottis-app01' and attributes->>'DeviceType' = 'hottis-scd30'; where application = 'de-hottis-app01' and attributes->>'DeviceType' = 'hottis-scd30';
create or replace view locative_v as
select time,
device as person,
values->'Location'->>'value' as location,
values->'Trigger'->>'value' as direction
from measurements
where application = 'Locative';