X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=powersensordaemon%2Fswitch.cgi;h=1565c532b065e525cfc7b60d4144eb990e1ab7bf;hp=ffa428eb0360b3d084dc92c78c75ba84c0164197;hb=80032eb297f006d43491a29f96bc4a003ca45fce;hpb=d3fff6b992e8da2f399835976ba4e6f62b28dd28 diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index ffa428e..1565c53 100755 --- a/powersensordaemon/switch.cgi +++ b/powersensordaemon/switch.cgi @@ -17,7 +17,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 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 ymhtunabcde ymhtape ymhvcr ymhextdec" [ "$POWER" == "send" ] && POWER=on @@ -51,6 +51,7 @@ DESC_lichter="Alle Lichter" DESC_all="Alles" DESC_ymhpoweron="Reciever On" DESC_ymhpoweroff="Reciever Off" +DESC_ymhpower="Reciever On/Off" DESC_ymhvolup="VolumeUp" DESC_ymhvoldown="VolumeDown" DESC_ymhcd="Input CD" @@ -78,6 +79,7 @@ echo "Realraum rf433ctl" echo "" echo "" #echo "

Realraum rf433ctl

" +echo "
" for DISPID in $VALID_ONOFF_IDS; do NAME="$(eval echo \$DESC_$DISPID)" [ -z "$NAME" ] && NAME=$DISPID @@ -89,6 +91,8 @@ for DISPID in $VALID_ONOFF_IDS; do echo "
" echo "" done +echo "" +echo "
" for DISPID in $VALID_SEND_IDS; do NAME="$(eval echo \$DESC_$DISPID)" [ -z "$NAME" ] && NAME=$DISPID @@ -99,5 +103,6 @@ for DISPID in $VALID_SEND_IDS; do echo "
" echo "" done +echo "" echo "" echo ""