ymhtunminus buttons
authorBernhard Tittelbach <xro@realraum.at>
Thu, 12 Aug 2010 06:54:35 +0000 (06:54 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Thu, 12 Aug 2010 06:54:35 +0000 (06:54 +0000)
powersensordaemon/powerids.txt
powersensordaemon/switch.cgi
powersensordaemon/ymhremote.html

index 07bb89e..7e612f2 100644 (file)
@@ -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        ?
index ee8074e..9d1cc30 100755 (executable)
@@ -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 "<html>"
index c9423ad..5a37b8a 100755 (executable)
@@ -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;
 <area shape ="circle" coords ="36,455,17" onClick="sendButton('ymhsleep');" alt="ymhsleep" />
 <!--area shape ="circle" coords ="142,455,17" onClick="sendButton('ymhdsp');" alt="ymhdsp" /-->
 
-<!--area shape ="rect" coords ="18,278,67,301" onClick="sendButton('ymhminus');"  /-->
+<area shape ="rect" coords ="18,278,67,301" onClick="sendButton('ymhtunminus');"  />
 <area shape ="rect" coords ="111,278,160,301" onClick="sendButton('ymhtunplus');"  />
 
 <area shape ="polygon" coords ="57,524,89,496,119,521,110,524,66,533" onClick="sendButton('ymhprgup');" alt="ymhprgup" />