[mythtv-users] mythtv-users Digest, Vol 50, Issue 49

Gary gwgrover at windstream.net
Fri May 11 15:22:12 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.
>
>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
>
>

On 11/05/07 Nick <knowledgejunkie at gmail.com> wrote:
>
>.. and where's the rest of the script? The if[] test is broken, so		(/dish_chan.sh script/)
>nothing will happen.
>
>The script will still change channel because this occurs before it
>looks for the dish_info.sh script.
>
>Nick

Nick,
The script is all there, The following is a redo of the cut-n-paste of
the dish_chan.sh  from the /usr/local/bin library.:

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.sh ]
 then
   /usr/local/bin/dish_info.sh &
 fi



More information about the mythtv-users mailing list