Code: Select all
<div id="cell3"><img src="http://yourIp:yourport/snapshot.cgi?user=yourusername&pwd=yourpassword&resolution=8&t=" onload='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 800)' onerror='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 5000)' onClick="lightbox_open('camera5', 15400);" width="273px" class='camera' style='margin-top: 30px;' /></div>
Code: Select all
<div id="popup_camera5"><img src="http://yourIp:yourport/videostream.cgi?user=yourusername&pwd=yourpassword" onClick="lightbox_close('camera5');" width="100%" /></div>
There is one big thing that took some time for me to discover , the camera has limitiation on amount of parallel connections and on data transfer rate ( esp on WIFI)
If you hit one of the limitations you can solve by reducing but in some cases it was needed for me to reboot the camera. I have now a similar setup as in Bewired house,
4 cams (4 side FrontPage with on each 2 cams) buienradar, some traffic info (work in progress) & Still image from last doorbell action/
I run with 2 tables, and android Phone. When also connecting with more equipments it caused some divises to be locked out on the above limitations.
Currently i have broke something to cause the display of cells is wrong on IPhone

I am also struggling with amount of data transfer on the page as i also use VPN to connect to my FrontPage. My 1 GB data plan was done within a week ..I think manly due to the camera's. so i have no w special VPN light version without live cameras (switched based on IP dectection ).
Edit :
Please remember to alter the camera field as i have done in above code (camera5) for useing multiple camera's but also create the CSS values for it and in the bottem the popup
