markruys / gw2pvo

GoodWe to PVOutput
MIT License
45 stars 30 forks source link

gw2pvo fails due to certificate expiration #44

Closed lbbrhzn closed 4 years ago

lbbrhzn commented 4 years ago

The gw2pvo script currently fails due to a certificate expiration:

WARNING  HTTPSConnectionPool(host='globalapi.sems.com.cn', port=443): Max retries exceeded with url: /api/v1/PowerStation/GetMonitorDetailByPowerstationId (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)'),))

As a temporary workaround, you can disable verification:

in gw_api.py: r = requests.post(self.base_url + url, verify=False, headers=headers, data=payload, timeout=10)

eNeRGy164 commented 4 years ago

I already have created #42 for that.

lbbrhzn commented 4 years ago

great, i'll close this issue