Get only answer from Inverter with Ipad, Not with debian and not with MacOS #277
Unanswered
SchorschKloni
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am Python Newbie. But well in PHP and SQL
Because i did not find a working PHP version from local calls to goodwe i tried it with your Python script.
Just because of easyness i tried it first on Ipad Pro with "Pyto" (Python 3.10.0)
Just changed the IP Adress in inverters_test.py > Play and i got data.
Then i tried it on a raspberry Pi Zero W. Same with Pyto 3.9
But this and my next try on a Macbook with 3.8 gave them failure:
mb@mbs-MacBook-Air documents % python3 inverter_test.py Traceback (most recent call last): File "inverter_test.py", line 22, in <module> inverter = asyncio.run(goodwe.connect(IP_ADDRESS, COMM_ADDR, FAMILY, TIMEOUT, RETRIES)) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/Users/mb/Library/Python/3.8/lib/python/site-packages/goodwe/__init__.py", line 56, in connect await inv.read_device_info() File "/Users/mb/Library/Python/3.8/lib/python/site-packages/goodwe/et.py", line 448, in read_device_info response = await self._read_from_socket(self._READ_DEVICE_VERSION_INFO) File "/Users/mb/Library/Python/3.8/lib/python/site-packages/goodwe/inverter.py", line 122, in _read_from_socket result = await command.execute(self._protocol) File "/Users/mb/Library/Python/3.8/lib/python/site-packages/goodwe/protocol.py", line 372, in execute response_future = await protocol.send_request(self) File "/Users/mb/Library/Python/3.8/lib/python/site-packages/goodwe/protocol.py", line 131, in send_request await self._connect() File "/Users/mb/Library/Python/3.8/lib/python/site-packages/goodwe/protocol.py", line 88, in _connect self._transport, self.protocol = await asyncio.get_running_loop().create_datagram_endpoint( File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 1332, in create_datagram_endpoint raise exceptions[0] File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 1319, in create_datagram_endpoint await self.sock_connect(sock, remote_address) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect return await fut File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/selector_events.py", line 501, in _sock_connect sock.connect(address) OSError: [Errno 49] Can't assign requested address
Any (paid) help?
Beta Was this translation helpful? Give feedback.
All reactions