Skip to content

Commit

Permalink
Added verbose exception reporting
Browse files Browse the repository at this point in the history
Error reporting for occasional drop-outs of overnight SoC calculation.
  • Loading branch information
salewis38 authored Sep 24, 2023
1 parent 43bb426 commit 3c9e888
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion palm.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,9 @@ def balance_loads():
inverter.get_load_hist()
logger.info("Forecast weighting: "+ str(stgs.Solcast.weight))
inverter.set_mode(inverter.compute_tgt_soc(pv_forecast, stgs.Solcast.weight, True))
except Exception:
except Exception as error:
logger.error(str(type(error).__name__))
logger.error(str(error))
logger.error("Warning; unable to set SoC")

# Send plot data to logfile in CSV format
Expand Down

0 comments on commit 3c9e888

Please sign in to comment.