supersaiyanmode / PyWebOSTV

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

NameError: name 'your_custom_storage_is_empty' is not defined #90

Closed Dirki74 closed 9 months ago

Dirki74 commented 1 year ago

I tried to come in into your Really nicht piece of Code, but i get following error, running this code:

http://schnippsel.de/paste.php?id=4467

Gustry commented 1 year ago

This is somehow expected.

your_custom_storage_is_empty is designed to be replaced by your own custom function to retrieve the token given by the TV. You need to adapt the code.

Similar for persist_to_your_custom_storage a few lines below, it's generic function to store the token given by the TV.

PyWebOSTV is a library for communicating with the TV, but it's up to you to choose what you want to do with the token : store in a file, store in a database, etc ...