[mythtv-users] Change Chanel Scripts
Nick Morrott
knowledgejunkie at gmail.com
Sat May 12 01:38:57 UTC 2007
On 12/05/07, Gary <gwgrover at windstream.net> wrote:
<snip>
> *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
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.
Nick
--
MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users
"An investment in knowledge always pays the best interest." - Benjamin Franklin
More information about the mythtv-users
mailing list