-
Notifications
You must be signed in to change notification settings - Fork 51
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
TvControl .. does not work #29
Comments
It's weird, there's no instance (that I could find) of this project reading/writing a field named Also, can you please retry that in a new virtualenv, and share the pip freeze output? |
i play around, without a try block
File "/usr/local/lib/python3.7/dist-packages/pywebostv/controls.py", line 76, in getattr but why? |
That is because channel_list(..) is not something you can subscribe to (because the TV doesn't emit events for it, and there's no However, looking at the source, I think |
ok, i would try it with that code and i would search fot the text_message.. I try it with a simple code now, but i think something is wrong..
returns
|
i´ve checked the requirements, so ws4py==0.4.2 was version 0.5.1, i had now downgraded to ws4py==0.4.2 but its the same.
i think there is a bug in your getattr(self, name): or TvControl |
when i write the TvControl class diretly into my programfile, then it works ..
|
Hey, hi. I haven't been able to reproduce it. If you are able to have it working in when you recreate the class in your local program as opposed to the installed library -- it sounds like a weird issue. I noticed that you have the library installed to /usr/local/lib. Can you please retry installing it in a virtualenv? |
it works, but i have found something about the failure..
|
Sounds like your WebSocket stream is |
when i use subcribe, it is not possible to read some other infos from the same class, |
@Bonze255 That sounds like a bug in the library. Can you please open a new bug (and perhaps close this one)? Also, can you please include a small reproducible test code? |
Can you give an example for reading current_channel?
i can connect to the tv and read some system.info(), volume... but when i call get_current_channel(), get_current_program() ... does not work.
I get an error, when i use the example from the readme.
self._client.connect()
self._tv = TvControl(self._client)
self._tv.subscribe_get_current_channel(callback=self.on_current_channel)
def on_current_channel(status, payload):
if status:
self.logger.debug("LGWebos: current_program {}".format(payload))
else:
self.logger.debug("LGWebos: Something went wrong.")
`
The text was updated successfully, but these errors were encountered: