+if [ "$_COOKIE[watch]" = raspi ]; then
+ actionuri='//atoemchen/?action=playctl'
+ volume="$({ncat atoemchen 80 <<-EOF
+ GET /?action=playctl&api=volume HTTP/1.0${CR}
+ Host: atoemchen${CR}
+ ${CR}
+ EOF
+ } | sed -r '1,/^\r$/d')"
+ volume=$(validate "${volume}" '[1-9]?[0-9]|100' 20)
+else
+ actionuri='?action=playctl'
+ volume=$(validate "$(cat "$_DATA/mplayer.volume")" '[1-9]?[0-9]|100' 20)
+fi
+