We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I tried running the your code with my username, password and IP. Device Type: Tapo P100 Hardware version: 2.0 Firmware Version: 1.2.1
I am getting below response:
Traceback (most recent call last): File "C:\Users\xviewla\OneDrive - Konecranes Plc\Desktop\CodeBase\TapoP100-main\power_control.py", line 7, in p100.handshake() # Creates the cookies required for further methods ^^^^^^^^^^^^^^^^ File "C:\Users\xviewla\OneDrive - Konecranes Plc\Desktop\CodeBase\TapoP100-main\PyP100\PyP100.py", line 136, in handshake encryptedKey = r.json()["result"]["key"] ~~~~~~~~^^^^^^^^^^ KeyError: 'result' Session: <bound method Response.json of <Response [200]>> Session: {'error_code': 1003}
Process finished with exit code 1
The text was updated successfully, but these errors were encountered:
Hello, It looks you are still using the original code and not the one from this fork. There is no line 136 in PyP100.py
Sorry, something went wrong.
No branches or pull requests
Hi, I tried running the your code with my username, password and IP.
Device Type: Tapo P100
Hardware version: 2.0
Firmware Version: 1.2.1
I am getting below response:
Traceback (most recent call last):
File "C:\Users\xviewla\OneDrive - Konecranes Plc\Desktop\CodeBase\TapoP100-main\power_control.py", line 7, in
p100.handshake() # Creates the cookies required for further methods
^^^^^^^^^^^^^^^^
File "C:\Users\xviewla\OneDrive - Konecranes Plc\Desktop\CodeBase\TapoP100-main\PyP100\PyP100.py", line 136, in handshake
encryptedKey = r.json()["result"]["key"]
~~~~~~~~^^^^^^^^^^
KeyError: 'result'
Session: <bound method Response.json of <Response [200]>>
Session: {'error_code': 1003}
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: