2016-03-29 13:23:18 +02:00
|
|
|
|
|
|
|
case $1 in
|
|
|
|
klein) curl --data "command=set_pos&posX=0&posY=12" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;;
|
|
|
|
groot) curl --data "command=set_pos&posX=50&posY=10" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;;
|
|
|
|
zetel) curl --data "command=set_pos&posX=50&posY=22" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;;
|
|
|
|
esac > /dev/null
|
|
|
|
|
2016-04-10 20:09:34 +02:00
|
|
|
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"
|
|
|
|
|