change constants to new upload interval
This commit is contained in:
parent
52ddfe1f59
commit
46744a6ca5
@ -10,7 +10,7 @@ Group=wwwrun
|
|||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
WorkingDirectory=/opt/msv-webcam-frontend/
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
@ -93,7 +93,7 @@ def main():
|
|||||||
if ((source_dir == -1) or (destination_dir_path == -1)):
|
if ((source_dir == -1) or (destination_dir_path == -1)):
|
||||||
print("Unable to parse config!")
|
print("Unable to parse config!")
|
||||||
print("Example usage:")
|
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)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
const images = document.getElementsByClassName('current_webcam_image');
|
const images = document.getElementsByClassName('current_webcam_image');
|
||||||
const reload_interval = setInterval(reloadImages, 10000);
|
const reload_interval = setInterval(reloadImages, 60000);
|
||||||
|
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
reloadImages();
|
reloadImages();
|
||||||
|
Loading…
Reference in New Issue
Block a user