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

User and password #5

Open
JanusHL opened this issue Dec 9, 2024 · 1 comment
Open

User and password #5

JanusHL opened this issue Dec 9, 2024 · 1 comment

Comments

@JanusHL
Copy link

JanusHL commented Dec 9, 2024

Hi,

I tried to use your script but I got stuck in the value of user and pssword.
There are the login to Tuya account?
Thakn you in advance for your work
JanusHL

@Bhoft
Copy link

Bhoft commented Dec 18, 2024

+1 i have the same issue when trying to connect to ledvance.
The username + password is correct and works in other node scripts which are using tuyapi/cloud

There is an issue with special characters e.g. "&" which i have in my password.

When i set the username + password directly in the code in the init function after the password is set the login works.

self._password = password
print( 'Password:', password )
self._password = "my$pass@word&" 

e.g. if my cmd is like

python uncover.py -r eu -v ledvance test@test.com my$pass@word&

the print output will be (& missing)

Password: my$pass@word

So there is some issue with that ArgumentParser escaping doesn't work e.g. execute

python uncover.py -r eu -v ledvance test@test.com my$pass@word\&

would output

Password: my$pass@word\

edit:
setting the password in quotes will work 👍

python uncover.py -r eu -v ledvance test@test.com "my$pass@word&"

@Bhoft Bhoft mentioned this issue Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants