locative handler
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2024-01-15 10:10:51 +01:00
parent 15458b9955
commit f44664eaad
3 changed files with 85 additions and 0 deletions

View File

@ -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';