From: Calin Crisan Date: Sun, 7 Dec 2014 16:14:29 +0000 (+0200) Subject: set default event gap to 10 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=93a960bca5ca7df2aba42d03e1211024827b9eb4;p=motioneye-debian set default event gap to 10 --- diff --git a/src/config.py b/src/config.py index 49659e2..aaa1554 100644 --- a/src/config.py +++ b/src/config.py @@ -1328,13 +1328,13 @@ def _set_default_motion_camera(camera_id, data, old_motion=False): data.setdefault('output_normal', False) data.setdefault('jpeg_filename', '') data.setdefault('output_all', False) - data.setdefault('gap', 30) + data.setdefault('gap', 10) else: data.setdefault('output_pictures', False) data.setdefault('picture_filename', '') data.setdefault('emulate_motion', False) - data.setdefault('event_gap', 30) + data.setdefault('event_gap', 10) data.setdefault('snapshot_interval', 0) data.setdefault('snapshot_filename', '') diff --git a/src/remote.py b/src/remote.py index 45f5167..92d5b31 100644 --- a/src/remote.py +++ b/src/remote.py @@ -244,7 +244,7 @@ def get_current_picture(local_config, callback, width, height): cookies = cookies.split(';') cookies = [[i.strip() for i in c.split('=')] for c in cookies] cookies = dict([c for c in cookies if len(c) == 2]) - motion_detected = cookies.get('motion_detected_' + camera_id) == 'true' + motion_detected = cookies.get('motion_detected_' + str(camera_id)) == 'true' if response.error: logging.error('failed to get current picture for remote camera %(id)s on %(url)s: %(msg)s' % {