From: Bernhard Tittelbach Date: Sat, 24 Apr 2010 15:05:42 +0000 (+0000) Subject: switch all X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=6356227756868031449d05852d71f268383c16f0;p=svn42.git switch all --- diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index eb36804..648de32 100755 --- a/powersensordaemon/switch.cgi +++ b/powersensordaemon/switch.cgi @@ -16,14 +16,16 @@ for QUERY in `echo $QUERY_STRING | tr '&' ' '`; do done UNIXSOCK=/var/run/powersensordaemon/cmd.sock -VALIDIDS="werkzeug stereo labor schreibtisch logo idee deckehinten deckevorne" +VALIDIDS="werkzeug stereo labor schreibtisch logo idee deckehinten deckevorne decke lichter all" + + if [ "$POWER" == "on" -o "$POWER" == "off" ]; then for CHECKID in $VALIDIDS; do if [ "$CHECKID" == "$ID" ]; then echo "power $POWER $ID" | usocket $UNIXSOCK fi - done + done fi DESC_werkzeug="Werkzeug LEDs" @@ -34,6 +36,9 @@ DESC_logo="Logo" DESC_idee="Idee" DESC_deckehinten="Decke Hinten" DESC_deckevorne="Decke Vorne" +DESC_decke="Deckenlichter" +DESC_lichter="Alle Lichter" +DESC_all="Alles" echo "Content-type: text/html" echo "" @@ -48,7 +53,7 @@ for DISPID in $VALIDIDS; do [ -z "$NAME" ] && NAME=$DISPID echo "
" echo "" - echo "
$NAME
" + echo "
$NAME
" echo " " echo " " echo "
"