Skip to content

Commit

Permalink
fix: catalanitzar obs_ (et/somenergia-jardiner!136)
Browse files Browse the repository at this point in the history
Merge branch 'fix/small-200-followup' into 'main'
  • Loading branch information
polmonso committed Mar 14, 2024
2 parents 5dcde7a + 44f58ae commit 1378027
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ select
round(((overview.meter_exported_energy_kwh - overview.solargis_meter_expected_energy_kwh) / 1000)::numeric, 2)
end as energia_perduda_ahir_mwh,
round(((overview.meter_exported_energy_kwh - overview.solargis_meter_expected_energy_kwh) / 1000)::numeric, 2) as energia_perduda_mwh,
overview.instant_power_source
overview.instant_power_source as font_potencia_instantania
from {{ ref("int_plants_overview_instant") }} as overview
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ instant_power_comparison as (
inverter_power
using (plant_uuid, ts)
)
select *
select
plant_uuid as uuid_planta,
plant_name as nom_planta,
ts,
inverter_power_kw as potencia_inversor_kw,
inferred_meter_power_kw as potencia_deduida_kw,
delta_power_instant_vs_inferred as diff_deduida_vs_inversor,
num_inverters as num_inversors,
meter_energy_kwh as energia_comptador_kwh,
previous_energy as energia_anterior,
delta_meter_energy_kwh as delta_energia_comptador_kwh,
previous_ts as ts_anterior,
delta_ts as delta_ts
from instant_power_comparison
order by plant_uuid asc, ts desc

0 comments on commit 1378027

Please sign in to comment.