From: Bernhard Tittelbach Date: Wed, 27 Mar 2013 02:34:28 +0000 (+0000) Subject: switch.cgi custom buttons X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=2bfc092c0484a6f3c61c518205afd45b13d47743;p=svn42.git switch.cgi custom buttons --- diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index 3777b22..bd77e61 100755 --- a/powersensordaemon/switch.cgi +++ b/powersensordaemon/switch.cgi @@ -25,11 +25,13 @@ done UNIXSOCK=/var/run/powersensordaemon/cmd.sock VALID_ONOFF_IDS="decke ambientlights lichter all werkzeug labor dart logo spots1 deckehinten deckevorne boiler whiteboard pcblueleds bikewcblue" -VALID_SEND_IDS="ymhpoweron ymhpoweroff ymhpower ymhvolup ymhvoldown ymhcd ymhwdtv ymhtuner ymhaux ymhsattv ymhvolmute ymhmenu ymhplus ymhminus ymhtest ymhtimelevel ymheffect ymhprgup ymhprgdown ymhtunplus ymhtunminus ymhtunabcde ymhtape ymhvcr ymhextdec ymhsleep ymhp5 panicled blueled moviemode" +VALID_SEND_IDS_CUSTOM_DISPLAY="ymhpoweroff ymhpower ymhvolup ymhvoldown" +VALID_SEND_IDS="ymhpoweron ymhcd ymhwdtv ymhtuner ymhaux ymhsattv ymhvolmute ymhmenu ymhplus ymhminus ymhtest ymhtimelevel ymheffect ymhprgup ymhprgdown ymhtunplus ymhtunminus ymhtunabcde ymhtape ymhvcr ymhextdec ymhsleep ymhp5 panicled blueled moviemode" #VALID_BANSHEE_IDS="playPause next prev" #VALID_CAM_MOTOR_IDS="c C w W" -[ "$POWER" == "send" ] && POWER=on +[ "$POWER" == "Off" ] && POWER=off +[ "$POWER" != "off" ] && POWER=on if [ "$POWER" == "on" -o "$POWER" == "off" ]; then for CHECKID in $VALID_ONOFF_IDS $VALID_SEND_IDS; do if [ "$CHECKID" == "$ID" ]; then @@ -91,7 +93,7 @@ DESC_whiteboard="Whiteboard Vorne" DESC_decke="Deckenlichter" DESC_lichter="Alle Lichter" DESC_all="Alles" -DESC_ymhpoweron="Receiver On" +DESC_ymhpoweron="Receiver On (off+tgl)" DESC_ymhpoweroff="Receiver Off" DESC_ymhpower="Receiver On/Off" DESC_ymhvolup="VolumeUp" @@ -143,7 +145,8 @@ echo '