exes - add relative movement to sphere script
This commit is contained in:
parent
ddbbfe10b5
commit
bf1e52fb94
@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
cmd_url=kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi
|
||||||
|
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
while [ -n "$1" ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
scrot) foto="$(mktemp XXXXXX.jpg)"
|
scrot) foto="$(mktemp XXXXXX.jpg)"
|
||||||
curl http://kelder.zeus.ugent.be/webcam/video/mjpg.cgi \
|
curl http://kelder.zeus.ugent.be/webcam/video/mjpg.cgi \
|
||||||
@ -6,9 +10,18 @@ case $1 in
|
|||||||
feh "$foto"
|
feh "$foto"
|
||||||
rm "$foto"
|
rm "$foto"
|
||||||
;;
|
;;
|
||||||
klein) curl --data "command=set_pos&posX=0&posY=12" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;;
|
klein) curl --data "command=set_pos&posX=0&posY=12" "$cmd_url" ;;
|
||||||
groot) curl --data "command=set_pos&posX=50&posY=10" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;;
|
groot) curl --data "command=set_pos&posX=50&posY=10" "$cmd_url" ;;
|
||||||
zetel) curl --data "command=set_pos&posX=50&posY=22" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;;
|
zetel) curl --data "command=set_pos&posX=50&posY=22" "$cmd_url" ;;
|
||||||
*) curl http://kelder.zeus.ugent.be/webcam/video/mjpg.cgi | mpv --no-correct-pts --fps 4 - ;;
|
\>) curl --data "command=set_relative_pos&posX=10&posY=0" "$cmd_url" ;;
|
||||||
|
\<) curl --data "command=set_relative_pos&posX=-10&posY=0" "$cmd_url" ;;
|
||||||
|
v) curl --data "command=set_relative_pos&posX=0&posY=-10" "$cmd_url" ;;
|
||||||
|
\^) curl --data "command=set_relative_pos&posX=0&posY=10" "$cmd_url" ;;
|
||||||
esac > /dev/null 2>&1
|
esac > /dev/null 2>&1
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
else
|
||||||
|
curl http://kelder.zeus.ugent.be/webcam/video/mjpg.cgi | mpv --no-correct-pts --fps 4 -
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user