Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is GoodWe API still working? #59

Open
vijghph opened this issue Nov 21, 2021 · 3 comments
Open

Is GoodWe API still working? #59

vijghph opened this issue Nov 21, 2021 · 3 comments

Comments

@vijghph
Copy link

vijghph commented Nov 21, 2021

I was regularly getting timeouts or an indication that GetPowerStationPowerAndIncomeByDay() Received bad data
...but usually this was still working by repeatedly trying.

Today I cannot manage to get data at all. I am afraid the GoodWe API that my (tuned) version of gw2pvo is using has been deprecated by GoodWe, isn't it?

@vijghph
Copy link
Author

vijghph commented Nov 21, 2021

I was still using a customer version 1.2.1

I upgraded to 1.3.6 and it seems to work and not requiring my former fix anymore (multiple inverters setup now ok)

@Steve-Wax
Copy link

I had the same problem with GetPowerStationPowerAndIncomeByDay(). I'm using the following:

I'm using this for the token:
r = requests.post(self.global_url + 'v2/Common/CrossLogin', headers=headers, data=loginPayload, timeout=10)
And this for the call:
headers = { 'User-Agent': 'SEMS Portal/3.1 (iPhone; iOS 13.5.1; Scale/2.00)', 'Token': self.token }

What are you putting in the header to make it work?

@vijghph
Copy link
Author

vijghph commented Nov 22, 2021

I did use pip to upgrade and it is indeed using code implant to what you report.

see https://github.com/markruys/gw2pvo/blob/master/gw2pvo/gw_api.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants