Closed gulinmar closed 9 months ago
Make sure to put correct password_cloud in the variable. Camera might not have up-to-date password if you have it blocked in firewall. You can remove the camera, factory reset and add back to account in order for it to get new password if you changed it recently.
I'm using the example script (https://github.com/JurajNyiri/pytapo/blob/main/experiments/DownloadRecordings.py) to download videos from the camera SD card and after upgrade the firmware to the latest version, I've started to receive an error:
Connecting to camera... Traceback (most recent call last): File "/home/zeus/bin/tapo_downloader.py", line 19, in
tapo = Tapo(host, "admin", password_cloud, password_cloud)
File "/home/zeus/.local/lib/python3.8/site-packages/pytapo/init.py", line 48, in init
self.basicInfo = self.getBasicInfo()
File "/home/zeus/.local/lib/python3.8/site-packages/pytapo/init.py", line 446, in getBasicInfo
return self.executeFunction(
File "/home/zeus/.local/lib/python3.8/site-packages/pytapo/init.py", line 119, in executeFunction
data = self.performRequest(
File "/home/zeus/.local/lib/python3.8/site-packages/pytapo/init.py", line 148, in performRequest
self.ensureAuthenticated()
File "/home/zeus/.local/lib/python3.8/site-packages/pytapo/init.py", line 68, in ensureAuthenticated
return self.refreshStok()
File "/home/zeus/.local/lib/python3.8/site-packages/pytapo/init.py", line 98, in refreshStok
raise Exception("Invalid authentication data")
Exception: Invalid authentication data
I'm using user "admin" and the cloud password but I've tried with the camera user/password with the same result. Any help would be appreciated, thank you!