2017-03-11 01:38:11 +01:00
|
|
|
#!/bin/sh
|
2016-03-29 13:23:18 +02:00
|
|
|
|
2019-03-11 10:44:30 +01:00
|
|
|
cmd_url="https://kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi"
|
2016-05-17 17:03:40 +02:00
|
|
|
|
|
|
|
if [ -n "$1" ]; then
|
|
|
|
while [ -n "$1" ]; do
|
|
|
|
case $1 in
|
|
|
|
scrot) foto="$(mktemp XXXXXX.jpg)"
|
|
|
|
curl http://kelder.zeus.ugent.be/webcam/video/mjpg.cgi \
|
|
|
|
| ffmpeg -y -ss 0 -i - -vframes 1 -q:v 2 "$foto"
|
|
|
|
feh "$foto"
|
|
|
|
rm "$foto"
|
|
|
|
;;
|
2018-04-09 23:02:52 +02:00
|
|
|
klein) curl --data "command=set_pos&posX=16&posY=16" "$cmd_url" ;;
|
2016-05-17 17:03:40 +02:00
|
|
|
groot) curl --data "command=set_pos&posX=50&posY=10" "$cmd_url" ;;
|
2018-04-09 23:02:52 +02:00
|
|
|
zetel) curl --data "command=set_pos&posX=0&posY=12" "$cmd_url" ;;
|
2018-10-08 14:00:43 +02:00
|
|
|
r|\>) curl --data "command=set_relative_pos&posX=10&posY=0" "$cmd_url" ;;
|
|
|
|
l|\<) curl --data "command=set_relative_pos&posX=-10&posY=0" "$cmd_url" ;;
|
|
|
|
d|v) curl --data "command=set_relative_pos&posX=0&posY=-10" "$cmd_url" ;;
|
|
|
|
u|\^) curl --data "command=set_relative_pos&posX=0&posY=10" "$cmd_url" ;;
|
2016-05-17 17:03:40 +02:00
|
|
|
esac > /dev/null 2>&1
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
else
|
2018-10-08 14:00:43 +02:00
|
|
|
mpv --no-correct-pts --fps 4 http://kelder.zeus.ugent.be/webcam/video/mjpg.cgi
|
2016-05-17 17:03:40 +02:00
|
|
|
fi
|
|
|
|
|
2016-03-29 13:23:18 +02:00
|
|
|
|