How to use POST /optimize? #301
Unanswered
PirminHndlg
asked this question in
Q&A
Replies: 1 comment
-
There is currently missing input validation (thanks for finding this bug). Try to add 48 (=prediction_hours) values for gesamtlast, pv_prognose_wh, strompreis_euro_pro_wh (and einspeiseverguetung_euro_pro_wh or just use a float there instead of list, and also temperature_forecast or remove that). Currently it throws the error when the len(values) < start_hour where start_hour is the current hour of the day, e.g. at 23:44 -> 23 Take a look at tests/testdata/optimize_input*.json for example data. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am new here and wanted to try out this amazing project! I cloned the project, installed everything and played around with the swegger site. Unfortunately I could not find any information about the meaning of the json values. I was trying to get an optimisation with this json data:
But I got a 500 error:
Did I do something wrong in the json? I am not sure what 'start_solution' means, but it needs an array of length 2.
Thank you for your responses.
Beta Was this translation helpful? Give feedback.
All reactions