[mythtv] [PATCH] Xbox LED support, new cmd to backend, and http stat improvement

Michael Greb mikegrb at yahoo.com
Mon Sep 1 17:02:03 EDT 2003


Greetings,

Attached is a patch with three main pieces.  I combined them as they are
related.

  * Enhancement to the HTTP status server
    The HTTP status server will now return whether each encoder is
encoding rather then just if it is local or remote.

  * New command for backend playback socket
    QUERY_ISRECORDING is recognized as a command over the playback socket.
The reply is an integer indicating the number of active encoders,  if
none.  Though there are no arguments I went ahead and passed
'listline' on to the function that handles the query as I know several
people are interested in something similar that also returns the names of
recordings in progress.  This could easily be added with the
current response used as the default when no arguments are received.

  * Finally, support in the frontend for the Xbox LED
    This uses the QUERY_ISRECORDING query to poll the backend and light
the LED based on if a recording is in progress.

This should add no dependencies.  I'm particularly interested in someone
using GentooX trying it out, as it was developed on Ed's Debian.

To enable the xbox features, the appropriate line needs to be uncommented
from settings.pro.  After this remove the <depends>xbox</depends> line
from programs/mythfrontend/main_settings.xml.  I plan on adding code so
this last bit is unnecessary but my wife wants me back for the little bit
of the weekend remaining.

You will get a menu item under setup named 'Xbox'.  Under here you can set
the color for the LED when recording and not recording.  Available choices
are green, yellow, red, and off.  Lastly is an option to decide how often
to poll the backend.

If you have any questions, problems, or suggestions, please let me know!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xboxfiles.tar.gz
Type: application/x-gzip
Size: 15135 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20030901/2c88efd4/xboxfiles.tar.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xbox.patch
Type: application/octet-stream
Size: 11407 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20030901/2c88efd4/xbox.obj


More information about the mythtv-dev mailing list