Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

gmt77

Members
  • Joined

  • Last visited

  1. Maybe @Mike_C as the author of the script can help us with the not working mix calls
  2. Thank you @maptin for helping me fixing the login. Looking into API documentation (growattServer · PyPI) I see: api = growattServer.GrowattApi() # The default way to initialise api = growattServer.GrowattApi(True) # Adds a randomly generated User ID to the default User-Agent api = growattServer.GrowattApi(False, "my_user_agent_value") # Overrides the default and uses "my_user_agent_value" in the User-Agent header My expectation was to use False, not True when you have 2 parameters. But it work as you described Now I am getting the 'NoneType' errors as you described. Hope the figure out how to solve them.
  3. Hello, I also try to use this script but cannot pass the login phase: dayToProcess is: 2023-08-25 Traceback (most recent call last): File "/home/growatt/./processToFiles.py", line 37, in <module> login_response = api.login(user_name, user_pass) File "/home/growatt/.local/lib/python3.9/site-packages/growattServer/__init__.py", line 131, in login response = self.session.post(self.get_url('newTwoLoginAPI.do'), data={ File "/usr/lib/python3/dist-packages/requests/sessions.py", line 590, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 662, in send r = dispatch_hook('response', hooks, r, **kwargs) File "/usr/lib/python3/dist-packages/requests/hooks.py", line 31, in dispatch_hook _hook_data = hook(hook_data, **kwargs) File "/home/growatt/.local/lib/python3.9/site-packages/growattServer/__init__.py", line 41, in <lambda> 'response': lambda response, *args, **kwargs: response.raise_for_status() File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 405 Client Error: Not Allowed for url: https://server-api.growatt.com/newTwoLoginAPI.do I also changed the API url to "https://server.growatt.com" and got similar error: dayToProcess is: 2023-08-25 Traceback (most recent call last): File "/home/growatt/./processToFiles.py", line 37, in <module> login_response = api.login(user_name, user_pass) File "/home/growatt/.local/lib/python3.9/site-packages/growattServer/__init__.py", line 131, in login response = self.session.post(self.get_url('newTwoLoginAPI.do'), data={ File "/usr/lib/python3/dist-packages/requests/sessions.py", line 590, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 662, in send r = dispatch_hook('response', hooks, r, **kwargs) File "/usr/lib/python3/dist-packages/requests/hooks.py", line 31, in dispatch_hook _hook_data = hook(hook_data, **kwargs) File "/home/growatt/.local/lib/python3.9/site-packages/growattServer/__init__.py", line 41, in <lambda> 'response': lambda response, *args, **kwargs: response.raise_for_status() File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://server.growatt.com/newTwoLoginAPI.do

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.