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

[BUG] Unable to login-Resolved #21

Closed
frankusb opened this issue Aug 19, 2022 · 2 comments
Closed

[BUG] Unable to login-Resolved #21

frankusb opened this issue Aug 19, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@frankusb
Copy link

While trying to run getValue.py, after setting address and password, I get repeated:
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1015: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.158'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(

I added:
from urllib3.exceptions import InsecureRequestWarning
from urllib3 import disable_warnings
disable_warnings(InsecureRequestWarning)

This suppresses the warning but it seems to hang. Control C shows:
File "getkwh.py", line 16, in
client.auth()
File "/home/frankbanul/.local/lib/python3.9/site-packages/sma_sunnyboy/sma.py", line 101, in auth
time.sleep(5)
KeyboardInterrupt

To Reproduce
python3 getkwh.py

Expected behavior
Total and current power would be printed

Actual behavior
No output

Hardware (please complete the following information):

  • Device type: SUNNY BOY 5.0-US
  • Software package: Firmware version: 3.2.16.R

Additional context
Debian 11.4, Linux 5.10.0-17-amd64 #1 SMP Debian 5.10.136-1 (2022-08-13) x86_64 GNU/Linux

@frankusb frankusb added the bug Something isn't working label Aug 19, 2022
@frankusb
Copy link
Author

I also tried on an up to date Macbook Pro, same result.

@frankusb
Copy link
Author

Resolved. It required setting the port and useSSL.

# create object client = WebConnect(address, right, password, 443, True)

@frankusb frankusb changed the title [BUG] Unable to login [BUG] Unable to login-Resolved Aug 26, 2022
@Dymerz Dymerz closed this as completed Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants