<br><br><div class="gmail_quote">On Mon, Aug 30, 2010 at 12:44 AM, les <span dir="ltr">&lt;<a href="mailto:lhigger@att.net">lhigger@att.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
hello everyone..<br>
setup here is mythdora 10.21 . dtv h21 stb.<br>
usb --&gt;serial----&gt;serial---usb.. <br>
<a href="http://directv.pl" target="_blank">directv.pl</a> 1.9   all works except the setup_channel_sd_hd part..<br>
its true the new firmware does show signal even when the tv shows no signal. ie you are not paying for the hd channel..<br>
i have tried putting in an if statement ie  if ($chan == 356) {send_key(&quot;ch_up&quot;); } but it dosent work.<br>
i am not a perl programmer.. more a php guy..lol  must be putting it in the wrong place..<br>
i did see some mention of a translation table .. but no example.. i only have 5 channels i would like to have this work with..<br>
<br>
any ideas<br clear="all"></blockquote><div><br><br>Probably easier to wrap a shell script around <a href="http://directv.pl">directv.pl</a>, and have myth call the shell script instead.<br><br>Something like:<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
 #!/bin/sh<br><br>if [ &quot;X$1&quot; = &quot;X&quot; ]; then<br>       echo &quot;Usage: $0 &lt;channel number&gt;&quot;<br>       echo<br>       exit 1;<br>fi<br><br>/usr/local/bin/<a href="http://directv.pl">directv.pl</a> box_type H20 port /dev/ttyUSB0 on<br>
/usr/local/bin/<a href="http://directv.pl">directv.pl</a> box_type H20 port /dev/ttyUSB0 get_channel<br><br>/usr/local/bin/<a href="http://directv.pl">directv.pl</a> box_type H20 port /dev/ttyUSB0 channel_change_type command setup_channel $1<br>
<br>if [ &quot;$?&quot; -ne &quot;0&quot; ]; then<br>    /usr/local/bin/<a href="http://directv.pl">directv.pl</a> box_type H20 port /dev/ttyUSB0 channel_change_type command setup_channel $1<br>fi<br><br>if [ &quot;$1&quot; = &quot;356&quot; ]; then<br>
/usr/local/bin/<a href="http://directv.pl">directv.pl</a> box_type H20 port /dev/ttyUSB0 key ch_up<br>fi<br><br>if [ &quot;$1&quot; = &quot;357&quot; ]; then<br>/usr/local/bin/<a href="http://directv.pl">directv.pl</a> box_type H20 port /dev/ttyUSB0 key ch_up<br>
fi<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br><br>John<br></div></div>-- <br>A: Because it messes up the order in which people normally read text.<br>Q: Why is top-posting such a bad thing?<br>