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...")
 
 
(One intermediate revision by one other user not shown)
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.


Line 34: Line 37:


</pre>
</pre>
[[Category:Project]]

Latest revision as of 20:43, 5 January 2023


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