From e643605d21b99ea80d5d3a74fda655114783b5d9 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sat, 9 Nov 2013 12:34:04 +0200 Subject: [PATCH] still images capture mode fix --- doc/todo.txt | 6 ++++++ raspicam/README.md | 2 +- src/config.py | 8 ++++---- templates/main.html | 1 - 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/doc/todo.txt b/doc/todo.txt index ade3528..c9f150b 100644 --- a/doc/todo.txt +++ b/doc/todo.txt @@ -1,7 +1,12 @@ +-> kill mjpgclients when not used +-> add a loading progress when page loads +-> order of the cams is a bit random +-> disk usage at bottom -> make camera frames positions configurable -> add a view log functionality -> add a previewer for snapshots -> add a previewer for movies +-> increase the maximal number of threshold pixels (maybe express it in % as well) -> style scroll bars -> hint text next to section titles @@ -11,6 +16,7 @@ -> implement notifications -> implement functionalities specific to raspberry pi: network settings, smb control -> group @config rules at top +-> chaining two or more remote motionEye cameras breaks updating configuration -> browser compatibility test -> requirements test diff --git a/raspicam/README.md b/raspicam/README.md index 37c6037..f58baa5 100644 --- a/raspicam/README.md +++ b/raspicam/README.md @@ -18,7 +18,7 @@ 4. the `uv4l` daemon must be started at boot; add the following line to `/etc/rc.local`, *before* the line that starts motionEye: - test -x /usr/local/bin/motion && /usr/local/bin/motion -h > /dev/null 2>&1 + test -x /usr/local/bin/motion && sudo -u pi /usr/local/bin/motion -h > /dev/null 2>&1 || false 5. if you wish to start motionEye at boot, add this to `/etc/rc.local` (assuming motionEye lives in pi's home directory): diff --git a/src/config.py b/src/config.py index 96d7d64..ed255b8 100644 --- a/src/config.py +++ b/src/config.py @@ -729,13 +729,13 @@ def camera_dict_to_ui(data): ui['capture_mode'] = 'all-frames' ui['image_file_name'] = jpeg_filename - elif data.get('snapshot_interval'): - ui['capture-mode'] = 'interval-snapshots' + elif snapshot_interval: + ui['capture_mode'] = 'interval-snapshots' ui['image_file_name'] = snapshot_filename ui['snapshot_interval'] = snapshot_interval - elif data.get('output_normal'): - ui['capture-mode'] = 'motion-triggered' + elif output_normal: + ui['capture_mode'] = 'motion-triggered' ui['image_file_name'] = jpeg_filename ui['image_quality'] = ui.get('quality', 85) diff --git a/templates/main.html b/templates/main.html index e05fa39..570d6e4 100644 --- a/templates/main.html +++ b/templates/main.html @@ -68,7 +68,6 @@ Current Version {{VERSION}} - ? Software Update -- 2.39.5