@golemio/energetics 1.2.4-dev.785775004 → 1.2.4-dev.786806113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -424,15 +424,6 @@ AS WITH kalendar AS (
|
|
|
424
424
|
FROM fixed_table
|
|
425
425
|
WHERE fixed_table.value IS NOT NULL;
|
|
426
426
|
|
|
427
|
-
CREATE OR REPLACE VIEW v_consumption_electricity_oict_api
|
|
428
|
-
AS SELECT date_trunc('day'::text, c.timeutc::date::timestamp with time zone) AS den,
|
|
429
|
-
c.timeutc::timestamp with time zone AS time_utc,
|
|
430
|
-
c.addr,
|
|
431
|
-
'kWh'::text AS unit,
|
|
432
|
-
c.value_txt::integer::numeric * 1.04 AS value_num,
|
|
433
|
-
row_number() OVER (PARTITION BY c.addr, (date_trunc('month'::text, c.timeutc::date::timestamp with time zone)) ORDER BY c.value_txt DESC) AS ran
|
|
434
|
-
FROM python.consumption_electricity_oict_api2 c;
|
|
435
|
-
|
|
436
427
|
CREATE OR REPLACE VIEW v_consumption_energy_devices_active
|
|
437
428
|
AS SELECT consumption_energy_devices.id,
|
|
438
429
|
consumption_energy_devices.addr,
|