snmp
This commit is contained in:
@ -70,12 +70,15 @@ create or replace view soil_v as
|
||||
|
||||
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';
|
||||
cast(m.values->'CO2concentration'->>'value' as float) as co2concentration,
|
||||
cast(m.values->'Humidity'->>'value' as float) as humidity,
|
||||
cast(m.values->'Temperature'->>'value' as float) as temperature,
|
||||
m.device as device,
|
||||
d.attributes->>'Label' as label
|
||||
from measurements m, devices d
|
||||
where m.application = 'de-hottis-app01' and
|
||||
m.attributes->>'DeviceType' = 'hottis-scd30' and
|
||||
m.device = d.label;
|
||||
|
||||
create or replace view locative_v as
|
||||
select time,
|
||||
|
Reference in New Issue
Block a user