Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3044 7 December 2018. See the Wiki for download

webcam refresh webpage

Hardware/software/hints and tips/discussion/webcam links etc
User avatar
beteljuice
Posts: 2516
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: webcam refresh webpage

Post by beteljuice » Fri 01 Jul 2016 11:09 am

First of all REMOVE

Code: Select all

<head><script type="text/javascript"> // at the bottom of your page, you shouldn't have TWO <head> statements.
Replace the code you have at the bottom of your page BEFORE the closing </body> tag with this ...

Code: Select all

<script type="text/javascript">
// <![CDATA[
var refreshrate = 30;          // seconds between refresh
var image       = "http://www.davisworthing.co.uk/images/picture.jpg";    // image name

function refresh() { document.body.style.background ="url('image + '?' + new Date()') size 100% 100%"; setTimeout('refresh()', refreshrate * 1000); }

if(document.images)window.onload=refresh;
// ]]>
</script>
Untested .. may have my syntax wrong !!![/quote]
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
dazza1223
Posts: 428
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: webcam refresh webpage

Post by dazza1223 » Fri 01 Jul 2016 11:13 am

ok i will try later mate thank for helping me
have fun and keep learning

dazza :D

User avatar
dazza1223
Posts: 428
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: webcam refresh webpage

Post by dazza1223 » Fri 01 Jul 2016 6:43 pm

hey there just added it but it stil now refreshing
have fun and keep learning

dazza :D

Post Reply