change constants to new upload interval
parent
52ddfe1f59
commit
46744a6ca5
|
@ -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
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue