diff --git a/msv-webcam-frontend.service b/msv-webcam-frontend.service index 52a5d39..ed9e83a 100644 --- a/msv-webcam-frontend.service +++ b/msv-webcam-frontend.service @@ -10,7 +10,7 @@ Group=wwwrun Restart=on-failure RestartSec=5s WorkingDirectory=/opt/msv-webcam-frontend/ -ExecStart=/usr/bin/python3 /opt/msv-webcam-frontend/msv_webcam_frontend.py source_dir=/tmp/msv_webcam_current destination_dir=/var/www/html/msv-buehl-moos.de/webcam/data/camera/ timeout=300 min_size=100000 +ExecStart=/usr/bin/python3 /opt/msv-webcam-frontend/msv_webcam_frontend.py source_dir=/tmp/msv_webcam_current destination_dir=/var/www/html/msv-buehl-moos.de/webcam/data/camera/ timeout=540 min_size=100000 [Install] WantedBy=multi-user.target \ No newline at end of file diff --git a/msv_webcam_frontend.py b/msv_webcam_frontend.py index a81f9fa..ce24e6e 100644 --- a/msv_webcam_frontend.py +++ b/msv_webcam_frontend.py @@ -93,7 +93,7 @@ def main(): if ((source_dir == -1) or (destination_dir_path == -1)): print("Unable to parse config!") print("Example usage:") - print(" python msv_webcam_frontend.py source_dir=/tmp/msv_webcam_current destination_dir=www/camera/ timeout=300 min_size=100000") + print(" python msv_webcam_frontend.py source_dir=/tmp/msv_webcam_current destination_dir=www/camera/ timeout=540 min_size=100000") sys.exit(-1) diff --git a/www/js/webcam.js b/www/js/webcam.js index 78f96b9..5b7b0dc 100644 --- a/www/js/webcam.js +++ b/www/js/webcam.js @@ -1,5 +1,5 @@ const images = document.getElementsByClassName('current_webcam_image'); -const reload_interval = setInterval(reloadImages, 10000); +const reload_interval = setInterval(reloadImages, 60000); window.onload = function() { reloadImages();