Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.3.0 build 3063 - 10 January 2020.
    Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

    See the Wiki for downloading either version.

    webcam refresh webpage

    Hardware/software/hints and tips/discussion/webcam links etc
    User avatar
    beteljuice
    Posts: 2806
    Joined: Tue 09 Dec 2008 1:37 pm
    Weather Station: None !
    Operating System: ex XP SP3 - now W10 laptop grr
    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: 506
    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

    Image

    User avatar
    dazza1223
    Posts: 506
    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

    Image

    Post Reply