<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">it almost works. it works perfect from the command line.. but not from within myth.<br>ie.. myth calls the wrapper which calls directv.pl...<br>it goes to the channel but does not go up ch. <br><br>humm<br><br><br><br><br><br>--- On <b>Wed, 9/1/10, les <i><lhigger@att.net></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: les <lhigger@att.net><br>Subject: Re: [mythtv-users] directv.pl channel_sd_hd issues<br>To: "Discussion about MythTV" <mythtv-users@mythtv.org><br>Date: Wednesday, September 1, 2010, 12:32 AM<br><br><div class="plainMail">it works...<br><br><br><br>John P Poet wrote:<br>> <br>> <br>> On Mon, Aug 30, 2010 at 12:44 AM, les <<a ymailto="mailto:lhigger@att.net" href="/mc/compose?to=lhigger@att.net">lhigger@att.net</a> <mailto:<a
ymailto="mailto:lhigger@att.net" href="/mc/compose?to=lhigger@att.net">lhigger@att.net</a>>> wrote:<br>> <br>> hello everyone..<br>> setup here is mythdora 10.21 . dtv h21 stb.<br>> usb -->serial---->serial---usb..<br>> directv.pl <<a href="http://directv.pl" target="_blank">http://directv.pl</a>> 1.9 all works except the<br>> setup_channel_sd_hd part..<br>> its true the new firmware does show signal even when the tv shows<br>> no signal. ie you are not paying for the hd channel..<br>> i have tried putting in an if statement ie if ($chan == 356)<br>> {send_key("ch_up"); } but it dosent work.<br>> i am not a perl programmer.. more a php
guy..lol must be putting<br>> it in the wrong place..<br>> i did see some mention of a translation table .. but no example..<br>> i only have 5 channels i would like to have this work with..<br>> <br>> any ideas<br>> <br>> <br>> <br>> Probably easier to wrap a shell script around directv.pl <<a href="http://directv.pl" target="_blank">http://directv.pl</a>>, and have myth call the shell script instead.<br>> <br>> Something like:<br>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>> #!/bin/sh<br>> <br><br><br>> if [ "X$1" = "X" ]; then<br>> echo "Usage: $0 <channel number>"<br>> echo<br>> exit 1;<br>> fi<br>> <br>> /usr/local/bin/directv.pl <<a href="http://directv.pl"
target="_blank">http://directv.pl</a>> box_type H20 port /dev/ttyUSB0 on<br>> /usr/local/bin/directv.pl <<a href="http://directv.pl" target="_blank">http://directv.pl</a>> box_type H20 port /dev/ttyUSB0 get_channel<br>> <br>> /usr/local/bin/directv.pl <<a href="http://directv.pl" target="_blank">http://directv.pl</a>> box_type H20 port /dev/ttyUSB0 channel_change_type command setup_channel $1<br>> <br>> if [ "$?" -ne "0" ]; then<br>> /usr/local/bin/directv.pl <<a href="http://directv.pl" target="_blank">http://directv.pl</a>> box_type H20 port /dev/ttyUSB0 channel_change_type command setup_channel $1<br>> fi<br>> <br>> if [ "$1" = "356" ]; then<br>> /usr/local/bin/directv.pl <<a href="http://directv.pl" target="_blank">http://directv.pl</a>> box_type H20 port /dev/ttyUSB0 key ch_up<br>> fi<br>> <br>> if [ "$1" = "357" ]; then<br>> /usr/local/bin/directv.pl
<<a href="http://directv.pl" target="_blank">http://directv.pl</a>> box_type H20 port /dev/ttyUSB0 key ch_up<br>> fi<br>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>> <br>> <br>> John<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>> ------------------------------------------------------------------------<br>> <br>> _______________________________________________<br>> mythtv-users mailing list<br>> <a ymailto="mailto:mythtv-users@mythtv.org" href="/mc/compose?to=mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>> <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>> <br>_______________________________________________<br>mythtv-users mailing list<br><a ymailto="mailto:mythtv-users@mythtv.org"
href="/mc/compose?to=mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></div></blockquote></td></tr></table>