This commit is contained in:
@ -73,6 +73,7 @@ create or replace view co2_v as
|
||||
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,
|
||||
cast(m.values->'Brightness'->>'value' as int) as brightness,
|
||||
m.device as device,
|
||||
d.attributes->>'Label' as label
|
||||
from measurements m, devices d
|
||||
|
Reference in New Issue
Block a user