From cfa5f1c5687571b11775a49718b85ead95eb3f59 Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Mon, 23 Jun 2025 12:04:42 +0200 Subject: [PATCH] Chiamata funzioni generazione grafico (delta 15min e base oraria) --- Fotovoltaico.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Fotovoltaico.py b/Fotovoltaico.py index 845865d..b9153eb 100644 --- a/Fotovoltaico.py +++ b/Fotovoltaico.py @@ -75,13 +75,17 @@ def export_hourly_pv_productivity(result_ac_energies_to_csv_df, path_export_hour df_hourly = result_ac_energies_to_csv_df.resample('H').sum() df_hourly.to_csv(path_export_hourly, encoding='utf-8') print(f"File CSV orario salvato in: {path_export_hourly}") + return df_hourly # Scegli il percorso per il nuovo file orario path_export_hourly = path_export.replace('.csv', '_hourly.csv') # Esporta il file orario -export_hourly_pv_productivity(result_ac_energies_to_csv_df, path_export_hourly) +df_hourly = export_hourly_pv_productivity(result_ac_energies_to_csv_df, path_export_hourly) +# GENERAZIONE GRAFICI +generate_grafico_df(result_ac_energies_to_csv_df) +generate_grafico_df(df_hourly) if joePlaying: joe.terminate()