Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Power off STB: a new twist from our local cable provider

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


chrisznews4 at rogers

Jan 9, 2010, 1:40 PM

Post #1 of 3 (433 views)
Permalink
Power off STB: a new twist from our local cable provider

It seems our local cable provider has added a new twist to recording.

If my STB has been on for a while they start displaying "Press any key
to watch TV".

The work around I use for the moment is to power off and then back on
the STB before a recording using my script at:
https://code.google.com/p/sa3250cmd/

But it is not ideal for general channel changing as it adds yet another
2 seconds of delay (ie 1 sec off, 1 sec on with guard time).

Is there a way to have myth tell the channel change script why the
channel is changing? or alternatively is there a way to determine when a
recording is finished so I can simply power off the box at that time and
thus not need the work around?

Plan B is to only apply the work around if the channel isn't changing
from the last time the input card was used. I could do this within my
channel change script. After all a channel change is a key press.

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Jan 9, 2010, 3:28 PM

Post #2 of 3 (383 views)
Permalink
Re: Power off STB: a new twist from our local cable provider [In reply to]

On 01/09/2010 04:40 PM, Christian Szpilfogel wrote:
> It seems our local cable provider has added a new twist to recording.
>
> If my STB has been on for a while they start displaying "Press any key
> to watch TV".
>
> The work around I use for the moment is to power off and then back on
> the STB before a recording using my script at:
> https://code.google.com/p/sa3250cmd/
>
> But it is not ideal for general channel changing as it adds yet
> another 2 seconds of delay (ie 1 sec off, 1 sec on with guard time).
>
> Is there a way to have myth tell the channel change script why the
> channel is changing? or alternatively is there a way to determine when
> a recording is finished so I can simply power off the box at that time
> and thus not need the work around?
>
> Plan B is to only apply the work around if the channel isn't changing
> from the last time the input card was used. I could do this within my
> channel change script. After all a channel change is a key press.

Why not just always send any other button code to the STB--such as
Cancel--at the very start of your channel change script?

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


ron at ronfrazier

Jan 9, 2010, 3:55 PM

Post #3 of 3 (380 views)
Permalink
Re: Power off STB: a new twist from our local cable provider [In reply to]

On Sat, Jan 9, 2010 at 4:40 PM, Christian Szpilfogel
<chrisznews4 [at] rogers> wrote:
> If my STB has been on for a while they start displaying "Press any key to
> watch TV".

Please don't "bump" your post (especially after just an hour).

Are you sure this problem happens based on how long the box has been
on? The typical thing I see is that it's based on how long it's been
since a button was pressed...as long as you press a button every hour
or two, it's fine. If my suspicion is correct, then the best course of
action would be to see if there is a button you can press which won't
actually do anything (cancel or escape may be the best bet) and cron
it up to run automatically at set intervals (and pick an odd time,
like 12 minutes after the hour, just so you aren't likely to activate
it at the same time a channel change happens.


If you want to take the route of checking the backend for when a
recording stops/changes, you can do so with a simple perl script and
the perl bindings. Heres a start:

use MythTV;
my $mythtv = new MythTV;
my $status = $mythtv->status_command();
my @statuslines = split(/[\n\r]+/, $status);
my @encoders = grep(/Encoder \d+ is/, @statuslines);
print join("\n", @encoders)'

That will query the backend and print out the lines that tell you the
status of all the encoders. I leave it up to you to figure out how to
track them and see when they change, or to parse out the time a
current recording is scheduled to end.


--
Ron
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.