Low Bandwidth Zoneminder Stills On iPhone

The following will allow you to view your Zoneminder stills from the previous blog post on most web browsers including an iPhone. You need the stylesheet and expand settings if you plan on viewing stills through an iPhone without having to double-tap the image on every refresh. The php variable following ?time= is necessary to prevent Safari from displaying cached images.

Create a file called webcam1.php:

<html>
<head>
<meta HTTP-EQUIV="pragma" CONTENT="no-cache" />
<meta HTTP-EQUIV="cache-control" CONTENT="no-cache" />
<meta HTTP-EQUIV="refresh" CONTENT="5" URL="http://www.yourdomain.com/webcam1.php"/>
<meta HTTP-EQUIV="expires" CONTENT="-1" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

<body>
<img src="webcam1.jpg?time=<?php $timestamp = strtotime('now'); echo $timestamp; ?>" class="expand" />
</body>
</html>

Create a file called style.css or append the following to your current stylesheet:

img.expand {
width: 100%;
}

© 2008-2010 Red Audit LLC.
Page generated in: 0.000163 seconds.