[mythtv] Changing channels via myth protocol from a python script
not working
Mudit Wahal
mwahal at gmail.com
Thu May 26 00:17:11 UTC 2005
Hi All,
I found a python script to connect to backend and record/change
channels etc. The script is at http://www.visi.com/~erl/myth.py . I
had to change the protocol version number and QUERY_IS_ACTIVE_BACKEND
request. Parsing programming is still broken. Now I can connect to the
backend and query the recorder. I can see the logs in the backend and
they are all OK. I was able to catch 2 MB of live TV and transfer into
a file using the transfer_live() function.
My problem is that neither QUERY_RECORDER:CHANGE_CHANNEL nor
QUERY_RECORDER:SET_CHANNEL are working. I see ok response at the
backend. But when I try to record the live TV, it still only records
from the channel to which backend was tuned before the script ran.
Querying of current program info only returns the original channel.
I'm trying to write scripts to change channel/volume via web
interface. This is useful for clients which cant run myth frontend but
have a web browser builtin. The web browser will connect to a
webserver running at the backend machine. There will be links to
change channel up/down, volume up/down. The client will have ability
to play a nfs/samba mounted filesystem. So I can share the liveTV
cache ring buffer and let the client play that file. I can change
channels via the web browser. Sort of a crude way but if its works,
it'll be great !
If anyone is interested, I'll post the script and detailed log from
the script and the backend.
Thanks in advance !
Mudit
More information about the mythtv-dev
mailing list