View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 1 post ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Aug 27, 2007 8:29 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
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.

_________________
Mike
My Hardware Profile


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 109 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu