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

    Hardware/software/hints and tips/discussion/webcam links etc
    Post Reply
    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:

    webcam

    Post by dazza1223 » Mon 03 Apr 2017 8:55 am

    hi all i have my webcam setup but erver so offen the webpage refresh and it ony got half as it will be in the middle of writing the jpg to a directory when the ajax refresh occurs, so instead of displaying a broken image

    so here the js
    file var t_webcam = 1 // interval in seconds
    image_webcam = "/images/webcam.jpg" //name of the image
    function Start_webcam() {
    tmp_webcam = new Date();
    tmp_webcam = "?"+tmp_webcam.getTime()
    document.images["refreshwebcam"].src = image_webcam+tmp_webcam
    setTimeout("Start_webcam()", t_webcam*1000)
    }
    Start_webcam();
    Have fun and keep learning

    dazza :D

    Image

    Post Reply