X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=powersensordaemon%2Fswitch.cgi;h=fb67efa368f8cc61f6fc3a884427e488ee61d4f6;hb=765ac7367ce595ce150b511ec25dc1eb90117d1a;hp=12ee06d1ae9fd9c551de2b77800b7f5760071f13;hpb=0e326e42ef606133ae7d2f8cb9ddb8bd48193ae3;p=svn42.git diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index 12ee06d..fb67efa 100755 --- a/powersensordaemon/switch.cgi +++ b/powersensordaemon/switch.cgi @@ -20,9 +20,9 @@ for QUERY in `echo $QUERY_STRING | tr '&' ' '`; do done UNIXSOCK=/var/run/powersensordaemon/cmd.sock -VALID_ONOFF_IDS="decke ambientlights lichter all werkzeug labor dart logo spots1 deckehinten deckevorne boiler" +VALID_ONOFF_IDS="decke ambientlights lichter all werkzeug labor dart logo spots1 deckehinten deckevorne boiler lichterkette" 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_BANSHEE_IDS="playPause next prev" [ "$POWER" == "send" ] && POWER=on if [ "$POWER" == "on" -o "$POWER" == "off" ]; then @@ -39,6 +39,20 @@ if [ "$POWER" == "on" -o "$POWER" == "off" ]; then exit 0 fi done + + for CHECKID in $VALID_BANSHEE_IDS; do + if [ "$CHECKID" == "$ID" ]; then + echo "$ID/" | nc wuerfel.realraum.at 8484 + echo "Content-type: text/html" + echo "" + echo "" + echo "
" + echo "