[mythtv-users] Change Chanel Scripts
Gary
gwgrover at windstream.net
Sat May 12 01:23:45 UTC 2007
On 11/05/07, Gary <gwgrover at windstream.net> wrote:
> > I copied a couple of scripts from the URL:
> > http://losdos.dyndns.org:8080/public/mythtv-info/MythTV_DISH_IR_LED_TX_via_Modified_LIRC.html
> > The two scripts are dish_chan.sh and dish_info.sh.
> > dish_chan.sh changes the channel ok when run from a command line and
> > also when executed by mythtv.
> > dish_info.sh does it's thing ok when dish_chan.sh is run from a command
> > line. But when dish_chan.sh is started by mythtv, the "info" display
> > failes to show up on the recording.
> >
> > Anyone have any ideas why? and what to do about it?
> >
> > *_HERE ARE THE SCRIPTS:
> > _**_
> > _*cat /usr/local/bin/dish_chan.sh
> > #!/bin/sh
> > # SCRIPT 1: change the channel
> > #
> > # REMOTE_NAME=JVC_RAW
> > REMOTE_NAME=dish
> > for digit in $(echo $1 | sed -e 's/./& /g'); do
> > irsend SEND_ONCE $REMOTE_NAME $digit
> > # sleep 0.4 # note this may have to be adjusted up for some models
> > sleep 0.3 # note this may have to be adjusted up for some models
> > done
> > irsend SEND_ONCE $REMOTE_NAME select
> > #
> > # asynchronously display the program info screen
> > if [ -s /usr/local/bin/dish_info.sh -a -x /usr/local/bin/dish_info.
>
>On 11/05/07, Gary <gwgrover at windstream.net> wrote:
>.. and where's the rest of the script? The if[] test is broken, so
>nothing will happen.
>
>The script will still change channel because this occurs before it
>looks for the dish_info.sh script.
>
>Nick
*First things first: Cut-n-paste error --- the rest of the 'if'
statement does exist Here is a re-do of the cut-n-paste of dish_chan.sh
cat /usr/local/bin/dish_chan.sh >> /home/gary/Desktop/ditest.txt
#!/bin/sh # SCRIPT 1: change the channel # # REMOTE_NAME=JVC_RAW
REMOTE_NAME=dish for digit in $(echo $1 | sed -e 's/./& /g'); do irsend
SEND_ONCE $REMOTE_NAME $digit # sleep 0.4 # note this may have to be
adjusted up for some models sleep 0.3 # note this may have to be
adjusted up for some models done irsend SEND_ONCE $REMOTE_NAME select #
# asynchronously display the program info screen if [ -s
/usr/local/bin/dish_info.sh -a -x /usr/local/bin/dish_info.sh ] then
/usr/local/bin/dish_info.sh & fi More Info: The script was added to the
"Keypress Application" in the "General Setup" Here is a cut-m-paste of
the "Keypress Application" parameter entry -->
/usr/local/bin/dish_chan.sh I have been paying closer attention to what
is going on and it /appears /that when mythtv starts a schedualed
recording, it does NOT run the script shown in "keypress Application"
--- Is This True? If so then how do I tell mythtv to run this script
when it sets the channel for the scheduled recording? * Gary
More information about the mythtv-users
mailing list