From 116dd2b7ad50221b59df6b657e23bad5d1da56f1 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Thu, 21 Oct 2010 12:19:26 +0000 Subject: [PATCH] movie mode via webinterface --- powersensordaemon/powerids.txt | 1 + powersensordaemon/switch.cgi | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/powersensordaemon/powerids.txt b/powersensordaemon/powerids.txt index 09d6fae..d636119 100644 --- a/powersensordaemon/powerids.txt +++ b/powersensordaemon/powerids.txt @@ -40,3 +40,4 @@ ymhprgdown $ ymhprgup % ymhsleep ( ymhp5 ) +moviemode :acd.fgh54 diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index 8e4f4b5..346a788 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 ymhaux ymhsattv ymhvolmute ymhmenu ymhplus ymhminus ymhtest ymhtimelevel ymheffect ymhprgup ymhprgdown ymhtunplus ymhtunminus ymhtunabcde ymhtape ymhvcr ymhextdec ymhsleep ymhp5 panicled blueled" +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" [ "$POWER" == "send" ] && POWER=on @@ -79,6 +79,7 @@ DESC_ymhextdec="ExtDec Toggle" DESC_seep="Sleep Modus" DESC_panicled="HAL9000 says hi" DESC_blueled="Blue Led" +DESC_moviemode="Movie Mode" echo "Content-type: text/html" echo "" echo "" -- 1.7.10.4