new query and some updates
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2024-07-12 15:42:38 +02:00
parent 532e12a9a6
commit 79d6422379
3 changed files with 24 additions and 12 deletions

View File

@ -9,3 +9,15 @@ create or replace view badesee_temperature_v as
from measurements
where application = 'de-hottis-saerbeck-monitoring' and
device = 'eui-a84041318187ec13';
create or replace view cubecell_threeway_temperature_v as
select time,
cast(values->'Temperature1'->>'value' as float) as Temp1,
cast(values->'Temperature2'->>'value' as float) as Temp2,
cast(values->'Temperature3'->>'value' as float) as Temp3,
device
from measurements
where application = 'de-hottis-saerbeck-monitoring' and
device = 'eui-70b3d57ed0068fa4';