markruys / gw2pvo

GoodWe to PVOutput
MIT License
45 stars 29 forks source link

Issue with darksky api? #72

Open CoenWhite opened 1 year ago

CoenWhite commented 1 year ago

This script has been running beautifully for the last years uploading the goodwe data. However, last saturday something seems to have changed: it's not uploading data anymore and also re-uploading historic data fails. I'm trying to troubleshoot but I'm not a genius at these things. It seems to fail around the darksky api, which is then connecting apple.com: ?

DEBUG    Starting new HTTPS connection (1): api.darksky.net:443
DEBUG    https://api.darksky.net:443 "GET /forecast<SNIP>units=si&exclude=minutely,hourly,daily,alerts,flags HTTP/1.1" 301 134
DEBUG    Starting new HTTPS connection (1): support.apple.com:443
DEBUG    https://support.apple.com:443 "GET /en-us/HT213526 HTTP/1.1" 200 8885
ERROR    Expecting value: line 2 column 1 (char 1)
DEBUG    Starting new HTTPS connection (1): api.darksky.net:443

OK, it seems that indeed apple closed down the API, so removing the calls from the config file fixes the problem.

vijghph commented 1 year ago

I see in pull request that somebody has pushed an alternative OpenWeather API.

Unfortunately, the repository is not maintained anymore hence it didn't make it to the last stable version afaik.