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

get_token.py #86

Open
jmrocha88 opened this issue Feb 9, 2022 · 4 comments
Open

get_token.py #86

jmrocha88 opened this issue Feb 9, 2022 · 4 comments

Comments

@jmrocha88
Copy link

i tried to take token for my tv (UE50JU6900) but i recived this:

C:\Users\José Rocha\Desktop\samsungtv_encrypted>get_token.py --ip 192.168.68.61 --port 8080
Traceback (most recent call last):
File "C:\Users\José Rocha\Desktop\samsungtv_encrypted\get_token.py", line 4, in
from PySmartCrypto.pysmartcrypto import PySmartCrypto
File "C:\Users\José Rocha\Desktop\samsungtv_encrypted\PySmartCrypto\pysmartcrypto.py", line 2, in
from . import crypto
File "C:\Users\José Rocha\Desktop\samsungtv_encrypted\PySmartCrypto\crypto.py", line 2, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'

can you help me?

@Will695
Copy link

Will695 commented Jun 29, 2022

you need to put py infront of get_token.py and have python installed.
py get_token.py --ip 192.168.68.61 --port 8080

@ende0
Copy link

ende0 commented Aug 18, 2022

Can someone help me with this, getting the same error..

@yeomos
Copy link

yeomos commented Aug 20, 2022

you need to have some python modules installed.
pycryptodome, requests and websocket-client
So

pip install pycryptodome
pip install requests
pip install websocket-client
py get_token.py --ip xxx.xxx.xxx.xxx --port 8080

@ende0
Copy link

ende0 commented Aug 21, 2022

I've done this in Windows and it worked, but it didn't created the TOKEN and SESSION_ID file's or text somewhere.. Do I have to do this inside the terminal of HA?

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

4 participants