[mythtv-users] Methods for waking a STB from standby w/IR only

Tom Lichti tom at redpepperracing.com
Sat May 18 13:56:19 UTC 2013


On Fri, May 17, 2013 at 9:57 PM, Bill Meek <keemllib at gmail.com> wrote:

> On 05/17/2013 08:20 PM, Erik Sejr wrote:
> ...
>
>  As a way around this I was thinking that I could make the channel change
>> script a little smarter if only I knew if MythTV was currently in the
>> LiveTV mode. Does anyone know if there is any way to get that
>> information via Python or Perl bindings? Or anything else really?
>>
> ...
>
> This is a fragment from something else I use, and it's more that
> what you need. You could remove the getRecordersList and only
> check isRecording for the specific recorder you're having
> trouble with.
>
> #!/usr/bin/env python
>
> from MythTV import MythBE
> import sys
>
> try:
>     be = MythBE()
> except:
>     print 'Unable to connect to the backend'
>     sys.exit(1)
>
> freeRecorders = be.getRecorderList()
>
> for recorder in freeRecorders:
>     if be.isRecording(recorder):
>         print 'Recorder {0} is recording'.format(recorder)
>
>
Any idea why the above script doesn't show all my recorders in use? I have
an HD-PVR, PVR-150, and 4 HDHR's, and it only seems to see the HDHR's in
use. I ran it on both back ends and it only shows the HDHR's.

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130518/72aede6a/attachment.html>


More information about the mythtv-users mailing list