sil:/usr/local/src/kuro-rs# cp send /usr/local/bin/rs_send sil:/usr/local/src/kuro-rs# cp rec /usr/local/bin/rs_rec sil:/usr/local/src/kuro-rs#
sil:/usr/local/src/kuro-rs# mkdir -p /usr/local/lib/kuro-rs/DST-BX500 sil:/usr/local/src/kuro-rs# cd !$ cd /usr/local/lib/kuro-rs/DST-BX500 sil:/usr/local/lib/kuro-rs/DST-BX500# mv /usr/local/src/kuro-rs/BU* . sil:/usr/local/lib/kuro-rs/DST-BX500# ls BUTTON_1 BUTTON_11 BUTTON_2 BUTTON_4 BUTTON_6 BUTTON_8 BUTTON_POWER BUTTON_10 BUTTON_12 BUTTON_3 BUTTON_5 BUTTON_7 BUTTON_9 sil:/usr/local/lib/kuro-rs/DST-BX500#
sil:/usr/local/bin# vi infrared_remocon : : sil:/usr/local/bin# cat infrared_remocon #!/bin/sh DATADIR=/usr/local/lib/kuro-rs MACHINE=DST-BX500 SEND=/usr/local/bin/rs_send while : do if [ $# = 0 ] then break fi FILE=$DATADIR/$MACHINE/$1 if [ ! -f $FILE ] then echo $FILE not found exit fi $SEND $FILE shift done sil:/usr/local/bin# chmod +x infrared_remocon
sil:/usr/local/bin# infrared_remocon BUTTON_POWER BUTTON_1 /usr/local/lib/kuro-rs/DST-BX500/BUTTON_POWER - 1 - /dev/ttyUSB0 Send File : [/usr/local/lib/kuro-rs/DST-BX500/BUTTON_POWER] /usr/local/lib/kuro-rs/DST-BX500/BUTTON_1 - 1 - /dev/ttyUSB0 Send File : [/usr/local/lib/kuro-rs/DST-BX500/BUTTON_1] sil:/usr/local/bin#OK
電源を切る
sil:/usr/local/bin# infrared_remocon BUTTON_POWER /usr/local/lib/kuro-rs/DST-BX500/BUTTON_POWER - 1 - /dev/ttyUSB0 Send File : [/usr/local/lib/kuro-rs/DST-BX500/BUTTON_POWER] sil:/usr/local/bin#よし。
|
|
← Movable Type 4.0(4)エントリが日付順に並ばない |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ KURO-RS リモコンスクリプトの指定時刻実行 |