The Wall

From Unallocated Space
Revision as of 17:33, 24 October 2011 by C-P (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


The Wall is a section of whiteboard that is imaged by Big Brother each time the Occupancy Sensor detects a change from closed to open.

The image is then uploaded to

It's done this way to ensure that the lights are on when the photo is taken, this is usually about once every 24 hours.

Images are archived for the lulz.

Source Code

curl "http://***.***.***.***/axis-cgi/com/ptz.cgi?gotoserverpresetname=TheWall&camera=1"
sleep 3
curl "http://***.***.***.***/axis-cgi/com/ptz.cgi?camera=1&rzoom=-2500"
sleep 1
curl "http://***.***.***.***/axis-cgi/com/ptz.cgi?camera=1&rzoom=+2500"
sleep 1
curl "http://***.***.***.***/axis-cgi/com/ptz.cgi?camera=1&autofocus=on"
sleep 5
wget http://***.***.***.***/axis-cgi/jpg/image.cgi -q -O /tmp/thewall.jpg
curl http://***.***.***.***/axis-cgi/com/ptz.cgi?gotoserverpresetname=ocs2&camera=1

# Code Omitted 
# Upload The Wall image to the website
# Code Omitted

cp /tmp/thewall.jpg /home/unallocated/ocs/wallimages/`date +"%F%T"`.jpg

exit 0