mirror of
https://github.com/SyncrowIOT/data.git
synced 2025-07-09 22:57:19 +00:00
descriptions
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
-- model shows the energy consumed per day per device
|
||||
|
||||
WITH total_energy AS (
|
||||
SELECT
|
||||
device_id,
|
||||
|
@ -1,5 +1,6 @@
|
||||
-- This model gives the average hourly set and current temperatures per space, per device
|
||||
|
||||
-- The only issue witht this model is that it does not represent 24 hours/device. which is normal when no changelog is being recorded.
|
||||
--Shall I fill the missing hours
|
||||
WITH avg_set_temp AS (-- average set temperature per device per hour
|
||||
SELECT
|
||||
device.uuid AS device_id,
|
||||
|
Reference in New Issue
Block a user