Open valentijnscholten opened 2 years ago
hmm looking at the code, there is already some custom retry mechanism with increasing backoff (4 tries with 3s, 6s, 9s, 12s delay).
so I shouldn't have gaps in my graphs, except when it exceeds 4 retries:
INFO Normal, 117.0 W now, 13.5 kWh today, 111.1 kWh all time, 233.6 V grid, 322.4 V PV
WARNING HTTPSConnectionPool(host='semsportal.com', port=443): Read timed out. (read timeout=10)
WARNING HTTPSConnectionPool(host='semsportal.com', port=443): Read timed out. (read timeout=10)
ERROR Failed to call GoodWe API (too many retries)
INFO Normal, 115.0 W now, 13.5 kWh today, 111.1 kWh all time, 233.3 V grid, 325.0 V PV
I regularly have gaps in my
pvo
graphs due togw2pvo
being unable to get the data for a specific iteration ofrun_once
.I suggest to implement some retries as on subsequent requests the portal works fine.
For example via: https://stackoverflow.com/questions/15431044/can-i-set-max-retries-for-requests-request or https://www.peterbe.com/plog/best-practice-with-retries-with-requests
Workaround:
--data xxxxx
to reupload the data for every day or days with gaps