-
-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Hi,
I just updated to 1.5.0; the previous versions last worked for me a few months ago.
I changed the URL with the previous version but had no luck.
After updating, I'm still getting:
HTTPError Traceback (most recent call last)
ipython-input-4-06dc7ac3e99d in module
10
11 api = growattServer.GrowattApi(False, "adgahtwq3241")
---> 12 login_response = api.login(username, user_pass)
13 print("Add random ID to default User-Agent")
14 print("User-Agent: %s\nLogged in User id: %s" % (api.agent_identifier, login_response['userId']))
...
Further down:
HTTPError: 403 Client Error: Forbidden for url: https://openapi.growatt.com/newTwoLoginAPI.do
I have tried with:
api = growattServer.GrowattApi(False, "something")
api = growattServer.GrowattApi(True)
api = growattServer.GrowattApi()
All give the same HTTPError: 403.
Am I doing something wrong? I'm a Python novice.