[mythtv-users] Change Chanel Scripts

Gary gwgrover at windstream.net
Thu May 10 23:55:39 UTC 2007


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.

cat /usr/local/bin/dish_info.sh >> /home/gary/Desktop/ditest.txt
#!/bin/sh
# SCRIPT 2: display the info screen
#
#REMOTE_NAME=JVC_RAW
REMOTE_NAME=dish
# wait for mythtv to begin recording
 sleep 1
# now display the info screen for N seconds
 irsend SEND_ONCE $REMOTE_NAME info
 sleep 5
# and cancel back out of the info screen
 irsend SEND_ONCE $REMOTE_NAME cancel





More information about the mythtv-users mailing list