mirror of
https://github.com/SyncrowIOT/data.git
synced 2025-07-10 15:17:24 +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 (
|
WITH total_energy AS (
|
||||||
SELECT
|
SELECT
|
||||||
device_id,
|
device_id,
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
-- This model gives the average hourly set and current temperatures per space, per device
|
-- 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
|
WITH avg_set_temp AS (-- average set temperature per device per hour
|
||||||
SELECT
|
SELECT
|
||||||
device.uuid AS device_id,
|
device.uuid AS device_id,
|
||||||
|
Reference in New Issue
Block a user