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