sermayoral / ha-samsungtv-encrypted

Samsung TV Encrypted Models (H & J Series) custom component for Home Assistant
Apache License 2.0
39 stars 24 forks source link

need help get_token.py #39

Closed AngelofromTurin closed 4 years ago

AngelofromTurin commented 4 years ago

Use get_token.py to get your Samsung TV token (use --port 8080). Store TOKEN (CTX) and SESSION_ID output. Your TV must be turned on and connected to Internet with the specific IP. Terminal where you have executed get_token.py will ask for a PIN, that will be showed in your TV screen.

sorry, im on hassio, how can use get_token.py? thankyou

jjok commented 4 years ago

I was just wondering the same thing.

Quintus-s commented 4 years ago

Are you on Windows? I'm on Hassio too.

Try this :

Good luck guys

sermayoral commented 4 years ago

As @Quintus-s said, it is better to copy the samsungtv_encrypted folder to a Windows Operative System.

Same as https://github.com/sermayoral/ha-samsungtv-encrypted/issues/19

Nicols07 commented 3 years ago

For Windows, 1) install https://www.python.org/downloads/release/python-391/ (Me = C:\Users\nicol\OneDrive\Bureau\ha-samsungtv-encrypted-master\custom_components\samsungtv_encrypted>C:\Users\nicol\AppData\Local\Programs\Python\Python39\Scripts) 2) (folder install python)\pip.exe install pycryptodome 3) (folder install python)\pip.exe install requests 4) (folder install python)\pip.exe install websocket_client

5) get_token.py --ip XXX.XXX.XXX.XXX --port 8080