view
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-12-04 13:17:06 +01:00
parent 1b6ac5d762
commit a21fae4f8a
Signed by: wn
GPG Key ID: 18FDFA577A8871AD

View File

@ -118,3 +118,14 @@ create or replace view router_v as
cast(values->'wan-out'->>'value' as int) as wanOutOctetsPerSeconds cast(values->'wan-out'->>'value' as int) as wanOutOctetsPerSeconds
from measurements from measurements
where application = 'SNMP' and device = '172.16.3.1'; where application = 'SNMP' and device = '172.16.3.1';
create or replace view lora_sht21_v as
select time,
cast(values->'Humidity'->>'value' as float) as humidity,
cast(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-gy21' and
m.device = d.label;