From 75d3e955b7445b15c9c25a425e888ae76af6c3db Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Thu, 12 Aug 2010 06:54:35 +0000 Subject: [PATCH] ymhtunminus buttons --- powersensordaemon/powerids.txt | 4 +++- powersensordaemon/switch.cgi | 4 +++- powersensordaemon/ymhremote.html | 9 ++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/powersensordaemon/powerids.txt b/powersensordaemon/powerids.txt index 07bb89e..7e612f2 100644 --- a/powersensordaemon/powerids.txt +++ b/powersensordaemon/powerids.txt @@ -6,10 +6,11 @@ logo e idee f deckehinten g deckevorne h -all a1cdefgh +all acdefgh decke gh lichter acdfgh ambientlights acf +panicled ^ ymhpoweroff 0 ymhpower 1 ymhpoweron 01 @@ -28,6 +29,7 @@ ymheffect % ymhprgup & ymhprgdown / ymhtunplus ( +ymhtunminus [ ymhtunabcde ) ymhtape 9 ymhvcr ? diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index ee8074e..9d1cc30 100755 --- a/powersensordaemon/switch.cgi +++ b/powersensordaemon/switch.cgi @@ -21,7 +21,7 @@ done UNIXSOCK=/var/run/powersensordaemon/cmd.sock VALID_ONOFF_IDS="decke ambientlights lichter all werkzeug labor dart logo idee deckehinten deckevorne" -VALID_SEND_IDS="ymhpoweron ymhpoweroff ymhpower ymhvolup ymhvoldown ymhcd ymhwdtv ymhtuner ymhvolmute ymhmenu ymhplus ymhminus ymhtest ymhtimelevel ymheffect ymhprgup ymhprgdown ymhtunplus ymhtunabcde ymhtape ymhvcr ymhextdec" +VALID_SEND_IDS="ymhpoweron ymhpoweroff ymhpower ymhvolup ymhvoldown ymhcd ymhwdtv ymhtuner ymhvolmute ymhmenu ymhplus ymhminus ymhtest ymhtimelevel ymheffect ymhprgup ymhprgdown ymhtunplus ymhtunminus ymhtunabcde ymhtape ymhvcr ymhextdec panicled" [ "$POWER" == "send" ] && POWER=on @@ -71,10 +71,12 @@ DESC_ymheffect="DSP Effect Toggle" DESC_ymhprgup="DSP Up" DESC_ymhprgdown="DSP Down" DESC_ymhtunplus="Tuner +" +DESC_ymhtunminus="Tuner -" DESC_ymhtunabcde="Tuner ABCDE" DESC_ymhtape="Tape" DESC_ymhvcr="VCR" DESC_ymhextdec="ExtDec Toggle" +DESC_panicled="HAL9000 says hi" echo "Content-type: text/html" echo "" echo "" diff --git a/powersensordaemon/ymhremote.html b/powersensordaemon/ymhremote.html index c9423ad..5a37b8a 100755 --- a/powersensordaemon/ymhremote.html +++ b/powersensordaemon/ymhremote.html @@ -37,9 +37,12 @@ function remoteKeyboard( e ) case 83: sendButton( 'ymhsleep' ); break; // S case 36: sendButton( 'ymhmute' ); break; //pos1 case 33: sendButton( 'ymhvolup' ); break; // P = 80, PAGEUP = 33 + case 43: sendButton( 'ymhvolup' ); break; // + case 34: sendButton( 'ymhvoldown' ); break; // N = 78, PAGEDOWN = 34 - case 43: sendButton( 'ymhtunplus' ); break; // + - case 65: sendButton( 'ymhtunabcde' ); break; // A + case 45: sendButton( 'ymhvoldown' ); break; // - + case 46: sendButton( 'ymhtunplus' ); break; // . + case 44: sendButton( 'ymhtunminus' ); break; // , + case 59: sendButton( 'ymhtunabcde' ); break; // ; case 69: sendButton( 'ymheffect' ); break; // E case 80: sendButton( 'ymhpower' ); break; // P case 48: sendButton( 'ymhtest' ); break; // 0 @@ -92,7 +95,7 @@ document.onkeydown = remoteKeyboard; ymhsleep - + ymhprgup -- 1.7.10.4