Waiting for Bigfoot

Image Campsite Feed (no longer active!)

Fly into Bigfoot Campsite Location

Below are two images. During the performance, the first was a live feed of images updated in real time directly from the bigfoot campsite via solar powered satellite uplink. The second was a 12 hour delayed feed. The images cycle through all three camera inputs.

"; // echo "
$mostRecent"; echo "

Live Feed"; // FORMATTING echo "

"; // DELAYED IMAGE $mostRecent = mostRecentModifiedFileTime("images/cam",FALSE); $mostRecent = $mostRecent - 60 * 60 * 12; $delayedFile = closestFile($mostRecent,"images/cam",FALSE); echo ""; // echo "
$delayedFile"; echo "

12 Hour Delay Feed"; function closestFile($searchTime,$dirName,$doRecursive) { $d = dir($dirName); $currentMin = -1; $lastfilename = "none.jpg"; while($entry = $d->read()) { if ($entry != "." && $entry != "..") { if (!is_dir($dirName."/".$entry)) { if (strstr($entry, 'tmp') == FALSE) { $currentModified = filemtime($dirName."/".$entry); } } else if ($doRecursive && is_dir($dirName."/".$entry)) { $currentModified = mostRecentModifiedFileTime($dirName."/".$entry,true); } if ($currentModified > $searchTime) { // candidate see if it is smallest (i.e. closest) // first one is always smallest if ($currentMin < 0) { $currentMin = $currentModified - $searchTime; $lastfilename = $entry; } // may do better check elseif (($currentModified - $searchTime) < $currentMin) { $currentMin = $currentModified - $searchTime; $lastfilename = $entry; } } } } $d->close(); // return $lastModified; return $lastfilename; } function mostRecentModifiedFile($dirName,$doRecursive) { $d = dir($dirName); $lastModified = 0; $lastfilename = "none.jpg"; while($entry = $d->read()) { if ($entry != "." && $entry != "..") { if (!is_dir($dirName."/".$entry)) { if (strstr($entry, 'tmp') == FALSE) { $currentModified = filemtime($dirName."/".$entry); } } else if ($doRecursive && is_dir($dirName."/".$entry)) { $currentModified = mostRecentModifiedFileTime($dirName."/".$entry,true); } if ($currentModified > $lastModified){ $lastModified = $currentModified; $lastfilename = $entry; } } } $d->close(); // return $lastModified; return $lastfilename; } function mostRecentModifiedFileTime($dirName,$doRecursive) { $d = dir($dirName); $lastModified = 0; $lastfilename = "none.jpg"; while($entry = $d->read()) { if ($entry != "." && $entry != "..") { if (!is_dir($dirName."/".$entry)) { $currentModified = filemtime($dirName."/".$entry); } else if ($doRecursive && is_dir($dirName."/".$entry)) { $currentModified = mostRecentModifiedFileTime($dirName."/".$entry,true); } if ($currentModified > $lastModified){ $lastModified = $currentModified; $lastfilename = $entry; } } } $d->close(); return $lastModified; // return $lastfilename; } ?>