The Wall: Difference between revisions

From Unallocated Space
Jump to navigation Jump to search
(Created page with "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 [htt...")
 
No edit summary
Line 1: Line 1:
[[File:noonestopsthewall.jpg]]
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 Wall is a section of whiteboard that is imaged by [[Big Brother]] each time the [[Occupancy Sensor]] detects a change from closed to open.



Revision as of 18:33, 24 October 2011


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 http://www.unallocatedspace.org/thewall/.

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


#!/bin/bash
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