Skip to content

Commit

Permalink
Corrected reference to pv_forecast
Browse files Browse the repository at this point in the history
  • Loading branch information
salewis38 authored Aug 10, 2023
1 parent d4e85a1 commit a53deda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion palm.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def balance_loads():
try:
inverter.get_load_hist()
logger.info("Forecast weighting: "+ str(stgs.Solcast.weight))
inverter.set_mode(inverter.compute_tgt_soc(solcast, stgs.Solcast.weight, True))
inverter.set_mode(inverter.compute_tgt_soc(pv_forecast, stgs.Solcast.weight, True))
except Exception:
logger.error("Warning; unable to set SoC")

Expand Down

0 comments on commit a53deda

Please sign in to comment.