LinHES Forums http://forums.linhes.org/ |
|
Send an ENTER before & after channel number sent w/irbla http://forums.linhes.org/viewtopic.php?f=17&t=16246 |
Page 1 of 1 |
Author: | mihanson [ Mon Aug 27, 2007 8:29 pm ] |
Post subject: | Send an ENTER before & after channel number sent w/irbla |
I've been hunting around the forum tonight and I can't find the right combination to do what I'd like. I have a channel changing script I use with my PVR-150's irblaster and DISH Network box. The DISH Net box is left on 24/7 and often the last channel it's on is ESPN. If ESPN is showing a local sporting event, it is frequently blacked out and a message pops up from DISH stating the event is blacked out in my area (Because it's on a local channel). That error message is expecting ENTER to clear it. So when this happens, I can miss a scheduled recording if I do not catch the message before the next scheduled recording begins. I'd like to modify my chan_change.sh script to send an ENTER before and after it sends the numeric channel numbers to the irblaster. This is my basic script that has been very good to me (other than the blackout problem) for 2+ years: Code: mythtv@mythbox:~$ cat /usr/local/bin/chan_change.sh
#!/bin/sh # set -vx # exec >> /var/log/mythtv/dish_chan_change.log REMOTE_NAME=DISHNetwork for digit in $(echo $1 | sed -e 's/./& /g'); do /usr/bin/irsend SEND_ONCE $REMOTE_NAME $digit sleep 0.4 done Can anyone help me modify it to send that ENTER command before and after? I've been messing around with it and I can't seem to get it right. Thanks in advance. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |