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):
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):
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