So I just tested it. EMHASS is up and running.
When triggering an optimization
curl -i -H "Content-Type: application/json" -X POST -d '{"prod_price_forecast":[0.194796,0.194796,0.18202800000000002,0.18202800000000002,0.1647,0.1647,0.15594,0.15594,0.15291599999999997,0.15291599999999997,0.135456,0.135456,0.134412,0.134412,0.138288,0.138288,0.13824,0.13824,0.131124,0.131124,0.13827599999999998,0.13827599999999998,0.134856,0.134856,0.158556,0.158556,0.192192,0.192192,0.20418,0.20418,0.201132,0.201132,0.196824,0.196824,0.19288799999999998,0.19288799999999998,0.189432,0.189432,0.19218,0.19218,0.19836,0.19836,0.210444,0.210444,0.20986799999999997,0.20986799999999997,0.222132,0.222132],"solcast_rooftop_id":"MYID","solcast_api_key":"MYKEY"}' http://192.168.0.XX:5000/action/dayahead-optim
I get
|2023-01-18T17:26:24.265049684Z|stdout|KeyError: 'SOCtarget'|
|---|---|---|
|2023-01-18T17:26:24.264994871Z|stdout| soc_init = self.plant_conf['SOCtarget']|
|2023-01-18T17:26:24.264931720Z|stdout| File /usr/local/lib/python3.8/site-packages/emhass-0.3.21-py3.8.egg/emhass/optimization.py, line 127, in perform_optimization|
|2023-01-18T17:26:24.264873182Z|stdout| self.opt_res = self.perform_optimization(df_input_data, P_PV.values.ravel(),|
|2023-01-18T17:26:24.264806718Z|stdout| File /usr/local/lib/python3.8/site-packages/emhass-0.3.21-py3.8.egg/emhass/optimization.py, line 487, in perform_dayahead_forecast_optim|
|2023-01-18T17:26:24.264752130Z|stdout| opt_res_dayahead = input_data_dict['opt'].perform_dayahead_forecast_optim(|
|2023-01-18T17:26:24.264664541Z|stdout| File /usr/local/lib/python3.8/site-packages/emhass-0.3.21-py3.8.egg/emhass/command_line.py, line 203, in dayahead_forecast_optim|
|2023-01-18T17:26:24.264609652Z|stdout| opt_res = dayahead_forecast_optim(input_data_dict, app.logger)|
|2023-01-18T17:26:24.264536476Z|stdout| File src/emhass/web_server.py, line 151, in action_call|
|2023-01-18T17:26:24.264477450Z|stdout| return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)|
|2023-01-18T17:26:24.264413837Z|stdout| File /usr/local/lib/python3.8/site-packages/flask/app.py, line 1796, in dispatch_request|
|2023-01-18T17:26:24.264361898Z|stdout| rv = self.dispatch_request()|
|2023-01-18T17:26:24.264301473Z|stdout| File /usr/local/lib/python3.8/site-packages/flask/app.py, line 1820, in full_dispatch_request|
|2023-01-18T17:26:24.264247372Z|stdout| rv = self.handle_user_exception(e)|
|2023-01-18T17:26:24.264187746Z|stdout| File /usr/local/lib/python3.8/site-packages/flask/app.py, line 1822, in full_dispatch_request|
|2023-01-18T17:26:24.264134557Z|stdout| response = self.full_dispatch_request()|
|2023-01-18T17:26:24.264066356Z|stdout| File /usr/local/lib/python3.8/site-packages/flask/app.py, line 2525, in wsgi_app|
|2023-01-18T17:26:24.264005518Z|stdout|Traceback (most recent call last):|
|2023-01-18T17:26:24.263914754Z|stdout|[2023-01-18 17:26:24,263] ERROR in app: Exception on /action/dayahead-optim [POST]|
|2023-01-18T17:26:24.262605983Z|stdout|[2023-01-18 17:26:24,262] INFO in optimization: Perform optimization for the day-ahead|
|2023-01-18T17:26:24.241398772Z|stdout|[2023-01-18 17:26:24,240] INFO in command_line: Performing day-ahead forecast optimization|
|2023-01-18T17:26:24.240422969Z|stdout|[2023-01-18 17:26:24,239] INFO in web_server: >> Performing dayahead optimization...|
|2023-01-18T17:26:16.906745391Z|stdout|[2023-01-18 17:26:16,906] INFO in retrieve_hass: Retrieve hass get data method initiated...|
|2023-01-18T17:26:16.905492021Z|stdout|[2023-01-18 17:26:16,904] INFO in forecast: Retrieving data from hass for load forecast using method = naive|
|2023-01-18T17:26:16.221098640Z|stdout|[2023-01-18 17:26:16,220] INFO in forecast: Retrieving weather forecast data using method = solcast|
|2023-01-18T17:26:16.218053466Z|stdout|[2023-01-18 17:26:16,217] WARNING in utils: There are non numeric values on the passed data, check for missing values (nans, null, etc)|
|2023-01-18T17:26:16.215547314Z|stdout|[2023-01-18 17:26:16,215] INFO in command_line: Setting up needed data|
Is this a problem with my optimization call or anything else?
Thanks!