diff --git a/dbt_jardiner/models/jardiner/marts/dm_dashboard_overview_instant.sql b/dbt_jardiner/models/jardiner/marts/dm_dashboard_overview_instant.sql index 14ad26d1..194c6c59 100644 --- a/dbt_jardiner/models/jardiner/marts/dm_dashboard_overview_instant.sql +++ b/dbt_jardiner/models/jardiner/marts/dm_dashboard_overview_instant.sql @@ -1,16 +1,16 @@ {{ config(materialized="view") }} select - overview.plant_name as nom_planta, - overview.province as provincia, - overview.technology as tecnologia, - overview.peak_power_kw as potencia_pic_kw, - overview.nominal_power_kw as potencia_nominal_kw, - overview.irradiance_w_m2_last_registered_at as irradiancia_ts, - round(overview.irradiance_w_m2, 2) as irradiancia_w_m2, - overview.instant_power_plant_kw_registered_at as potencia_inst_ts, - round(overview.instant_power_plant_kw, 2) as potencia_inst_kw, - round(overview.instant_power_plant_kw / overview.peak_power_kw, 2) as potencia_inst_vs_pic, - overview.day as dia, - round((overview.meter_exported_energy_kwh - overview.solargis_meter_expected_energy_kwh) / 1000, 2) as energia_perduda_mwh + overview.plant_name as nom_planta, + overview.province as provincia, + overview.technology as tecnologia, + overview.peak_power_kw as potencia_pic_kw, + overview.nominal_power_kw as potencia_nominal_kw, + overview.irradiance_w_m2_last_registered_at as irradiancia_ts, + round(overview.irradiance_w_m2, 2) as irradiancia_w_m2, + overview.instant_power_plant_kw_registered_at as potencia_inst_ts, + round(overview.instant_power_plant_kw, 2) as potencia_inst_kw, + round(overview.instant_power_plant_kw / overview.nominal_power_kw, 2) as potencia_inst_vs_nominal, + overview.day as dia, + round((overview.meter_exported_energy_kwh - overview.solargis_meter_expected_energy_kwh) / 1000, 2) as energia_perduda_mwh from {{ ref("int_plants_overview_instant") }} as overview diff --git a/superset/produccio_davui.yml b/superset/produccio_davui.yml index 22865b34..6c3bf4ec 100644 --- a/superset/produccio_davui.yml +++ b/superset/produccio_davui.yml @@ -1,19 +1,19 @@ -html: +html: > - - + + - + - + - + @@ -24,11 +24,11 @@ html: - + - + - +
Nom planta Provincia Tecnologia Potència nominal [kW] Potència pic [kWp] Irradiància ts Potència nominal [kW] Irradiància temps de lectura Irradiància [W/m2] Potència instantània ts Potència instantània temps de lectura Potència instantània [kW]Potència instantània vs pic [%] Potència instantània vs nominal [%] Dia Energia Perduda [MWh] Energia Perduda [MWh]
dia anterior
{{ tecnologia }} {{ potencia_pic_kw }} {{ potencia_nominal_kw }}{{ irradiancia_w_m2_ts }}{{ irradiancia_ts }} {{ irradiancia_w_m2 }}{{ potencia_inst_kw_ts }}{{ potencia_inst_ts }} {{ potencia_inst_kw }}{{#if potencia_instant_vs_pic}} {{ potencia_instant_vs_pic }}% {{/if}}{{#if potencia_inst_vs_nominal}} {{ potencia_inst_vs_nominal }}% {{/if}} {{ dateFormat dia }} {{ energia_perduda_mwh }}