[mythtvnz] Sky setup...

Steve Hodge stevehodge at gmail.com
Fri Jan 15 10:25:28 GMT 2010


On Fri, Jan 15, 2010 at 9:31 PM, Stephen Worthington <
stephen_agent at jsw.gen.nz> wrote:

> On Wed, 13 Jan 2010 16:05:21 +1300, you wrote:
>
> >On Wed, Jan 13, 2010 at 9:44 AM, David Lowe <david at thistledown.co.nz>
> wrote:
> >
> >>
> >> On Mon, Jan 11, 2010 at 8:55 PM, Stephen Worthington <
> >> stephen_agent at jsw.gen.nz> wrote:
> >>
> >>>
> >>> Using an IRBlaster to change channels is not always reliable.  I still
> >>> have the occasional problem where a digit gets missed, so I think I
> >>> might need a small sleep command or two to delay things a little.
> >>>
> >>> Thanks Stephen for your comprehensive note. Just on reliability, I have
> >> been using the other script I referred to for over two years without a
> >> hitch. I guess the difference is indeed the sleep command but I dont
> know
> >> how to include it in your script.
> >>
> >
> >Put it in after each of the system calls in the script, i.e.
> >...
> >  if ($channel_digit_0 != "0") {
> >     system("irsend SEND_ONCE $remote_name $channel_digit_1");
> >     sleep 1;
> >  }
> >  system("irsend SEND_ONCE $remote_name $channel_digit_2");
> >  sleep 1;
> >  system("irsend SEND_ONCE $remote_name $channel_digit_3");
> >...
>
> I get the feeling that a 1 second delay between digits might be a
> little too much.  The other sky.sh script has 0.1 seconds, which
> sounds much more reasonable.  If you are too slow sending digits to
> the Sky decoder, it times out and changes to the channel given by the
> digits it has already received.  Since Perl does not seem to have the
> ability to sleep for fractions of a second (at least with any builtin
> Perl function I have found so far), I think I may change over to using
> a modified version of the sky.sh script in order to do short delays.
>

Yeah, I wasn't sure Perl would allow fractions so I put 1 in there. If you
use Live TV much you'd want it as short as possible. My script uses 0.5 and
it's been rock solid for me so I suspect 1 second would probably still work.

Cheers,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ourshack.com/pipermail/mythtvnz/attachments/20100115/286f699f/attachment.htm 


More information about the mythtvnz mailing list