Skip to content

Commit

Permalink
Merge pull request #255 from GeoDerp/patch-11
Browse files Browse the repository at this point in the history
utils.py add freq as runtime parameters
  • Loading branch information
davidusb-geek authored May 1, 2024
2 parents 4dc4968 + 312a0e9 commit 4b45d65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/emhass/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ def treat_runtimeparams(runtimeparams: str, params: str, retrieve_hass_conf: dic
if 'solar_forecast_kwp' in runtimeparams.keys():
retrieve_hass_conf['solar_forecast_kwp'] = runtimeparams['solar_forecast_kwp']
optim_conf['weather_forecast_method'] = 'solar.forecast'
if 'freq' in runtimeparams.keys():
retrieve_hass_conf['freq'] = pd.to_timedelta(runtimeparams['freq'], "minutes")
if 'weight_battery_discharge' in runtimeparams.keys():
optim_conf['weight_battery_discharge'] = runtimeparams['weight_battery_discharge']
if 'weight_battery_charge' in runtimeparams.keys():
Expand Down

0 comments on commit 4b45d65

Please sign in to comment.