diff options
author | Michael Hanson <hansonorders@verison.net> | 2010-05-17 20:19:36 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verison.net> | 2010-05-17 20:19:36 (GMT) |
commit | b6fd62622b6b31d81e3059176bc91bf1c2595785 (patch) | |
tree | ed44e9b09396f2bb3aa6ab0edcee408f17118133 /abs/core-testing/linhes-scripts/dct700-cc.sh | |
parent | 15cdc14d7113be4847859ab2be012c7afe63d1af (diff) | |
parent | 346bb8386a4fdee7632dfae849efcdae53c820fe (diff) | |
download | linhes_pkgbuild-b6fd62622b6b31d81e3059176bc91bf1c2595785.zip linhes_pkgbuild-b6fd62622b6b31d81e3059176bc91bf1c2595785.tar.gz linhes_pkgbuild-b6fd62622b6b31d81e3059176bc91bf1c2595785.tar.bz2 |
Merge branch 'master' of mihanson@knoppmyth.net:LinHES-PKGBUILD
Diffstat (limited to 'abs/core-testing/linhes-scripts/dct700-cc.sh')
-rw-r--r-- | abs/core-testing/linhes-scripts/dct700-cc.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/abs/core-testing/linhes-scripts/dct700-cc.sh b/abs/core-testing/linhes-scripts/dct700-cc.sh new file mode 100644 index 0000000..c8d8cf6 --- /dev/null +++ b/abs/core-testing/linhes-scripts/dct700-cc.sh @@ -0,0 +1,27 @@ +#!/bin/bash +#Script to control DCT 700/2524 on emitter #1 of CommandIR +irsend set_transmitters 1 +REMOTE_NAME=DCT700 +cmd="$1" +irsend -d /dev/lircd SEND_ONCE $REMOTE_NAME menu +sleep 1 +irsend -d /dev/lircd SEND_ONCE $REMOTE_NAME exit +sleep 1 + +case $cmd in + [0-9]*) + for digit in $(echo $1 | sed -e 's/./& /g'); do + irsend -d /dev/lircd SEND_ONCE $REMOTE_NAME $digit + sleep .2 + # If things work OK with sleep 1, try this for faster channel changes: + # sleep 0.3 + done + irsend -d /dev/lircd SEND_ONCE $REMOTE_NAME ok +sleep .3 + irsend -d /dev/lircd SEND_ONCE $REMOTE_NAME exit + ;; + + *) + irsend SEND_ONCE $REMOTE_NAME $cmd + ;; +esac |