This commit is contained in:
@ -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';
|
||||||
|
Reference in New Issue
Block a user