Timed snapshot script for webpage

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
Post Reply
rheine3
Posts: 10
Joined: Fri Sep 09, 2016 1:53 pm

Timed snapshot script for webpage

Post by rheine3 »

I have two new Amcrest ip cams, 2M842B outdoors. They work great. I also have a webpage to display all my cams ( 4 other Foscams).

I am trying to find a script similar the one I use with the Foscams to refresh a snap shot on the web page every 5 seconds.

<img src="http://136.63.95.117:2003/snapshot.cgi? ... XXXXXXX&t=" onload='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 5000)' onerror='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 5000)' alt='DOCK' height="300" width="400" class="auto-style3" />


*R
Last edited by rheine3 on Fri Sep 09, 2016 4:43 pm, edited 1 time in total.
Post Reply