]> www.vanbest.org Git - motioneye-debian/commitdiff
only attempt to disable motion detection for local cameras
authorCalin Crisan <ccrisan@gmail.com>
Sun, 28 Sep 2014 08:40:16 +0000 (11:40 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Sun, 28 Sep 2014 08:40:16 +0000 (11:40 +0300)
src/motionctl.py

index e3e6734a0d30d12e4b5eccb5d348479766c73910..8fa4f3203fb7efdddb5c040c83df01c6f7dd360c 100644 (file)
@@ -64,6 +64,9 @@ def find_motion():
 def _disable_motion_detection():
     for camera_id in config.get_camera_ids():
         camera_config = config.get_camera(camera_id)
+        if not utils.local_camera(camera_config):
+            continue
+
         if not camera_config['@motion_detection']:
             logging.debug('motion detection disabled by config for camera with id %s' % camera_id)
             set_motion_detection(camera_id, False)