locative handler
This commit is contained in:
@ -67,3 +67,12 @@ create or replace view soil_v as
|
||||
device
|
||||
from measurements
|
||||
where application = 'de-hottis-app01' and attributes->>'DeviceType' = 'dragino-lse01';
|
||||
|
||||
create or replace view co2_v as
|
||||
select time,
|
||||
cast(values->'CO2concentration'->>'value' as float) as co2concentration,
|
||||
cast(values->'Humidity'->>'value' as float) as humidity,
|
||||
cast(values->'Temperature'->>'value' as float) as temperature,
|
||||
device
|
||||
from measurements
|
||||
where application = 'de-hottis-app01' and attributes->>'DeviceType' = 'hottis-scd30';
|
||||
|
Reference in New Issue
Block a user