indykoning / PyPi_GrowattServer

MIT License
80 stars 34 forks source link

Server name changed? #57

Open oene opened 1 year ago

oene commented 1 year ago

Hi,

Wasn't able to retrieve data using server-api.growatt.com using username and password:

raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://server-api.growatt.com/newTwoLoginAPI.do

Changing the to server.growatt.com solved the issue for me.

__init__.py

class GrowattApi

    server_url = 'https://server.growatt.com/'

Regards,

Oene

bompaization commented 1 year ago

picking up on this, is it possible to change the default url to this? I'm having trouble getting my build to accept the change in the module.

mreferre commented 1 year ago

I am having the same problem. Manually hacking the init makes it work. We are waiting for this I assume?

marcovtwout commented 7 months ago

Fixed by https://github.com/indykoning/PyPi_GrowattServer/pull/77 @indykoning this issue could be closed