[mythtv-users] Change Chanel Scripts

Gary gwgrover at windstream.net
Sat May 12 14:22:19 UTC 2007

On 12/05/07, Gary <gwgrover at windstream.net> wrote:


> *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

On 12/05/07, Nick Morrott" <knowledgejunkie at gmail.com> wrote:

>Yes this is true, and 100% as intended. The keypress application is to
>run a command on every keypress (the descriptive text is obviously not
>obvious enough).
>You need to enter the location of the channel change script in the
>external command/channel change field for the capture card input
>requiring the external script, in mythtv-setup. Whenever you browse to
>a channel on this input in LiveTV or whenever MythTV starts a
>scheduled recording on the input, the script will be executed.
Thankyou for the info.
With your kind assistance, I found the "external channel change command"
parameter at : mythtv-setup--->input-connections

I haven't tested the result yet, but I am confident that it is what I
needed.  Thanks again for the assistance


More information about the mythtv-users mailing list