The Wall: Difference between revisions

From Unallocated Space
Jump to navigation Jump to search
No edit summary
 
Line 37: 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