supersaiyanmode / PyWebOSTV

Python API for controlling LG TVs (Web OS)
MIT License
271 stars 50 forks source link

Script requires authentication on TV every time we run the code. #44

Closed thevickypedia closed 3 years ago

thevickypedia commented 3 years ago

This is more of a question?

Is there a way we can skip that part, I have a piece of code using which I want control the TV but it seems that every time I run this code, I will have to authenticate (press Yes) on the TV screen prompt. Is that how it is or is there a way around?

supersaiyanmode commented 3 years ago

Duplicate of https://github.com/supersaiyanmode/PyWebOSTV/issues/35.

You need to store the credentials after you're done with the registration for the first time. In the second run, provide a dictionary-like object to the register function, the function will inspect the incoming object to see if there's an existing credential, if so uses it silently without invoking authorization.

supersaiyanmode commented 3 years ago

Please re-open this issue (and attach minimal, reproducible code), if you didn't follow the README or the linked issue. We want to improve it, if the instructions are not readily apparent.

thevickypedia commented 3 years ago

Duplicate of #35.

You need to store the credentials after you're done with the registration for the first time. In the second run, provide a dictionary-like object to the register function, the function will inspect the incoming object to see if there's an existing credential, if so uses it silently without invoking authorization.

Works like a charm :) Thank you so much..