]> www.vanbest.org Git - motioneye-debian/commitdiff
added settings to configure the motion HTTP control interface
authorCalin Crisan <ccrisan@gmail.com>
Sun, 11 Oct 2015 14:06:10 +0000 (17:06 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Sun, 11 Oct 2015 14:06:25 +0000 (17:06 +0300)
extra/motioneye.conf.sample
motioneye/__init__.py
motioneye/config.py
motioneye/settings.py
motioneye/templates/main.html

index 79503c5984bfe119d9fd96164161e72d311e4491..50cb251a50cbb7ac731daf8446dc65d781165290 100644 (file)
@@ -29,6 +29,13 @@ listen 0.0.0.0
 # the TCP port to listen on
 port 8765
 
+# whether motion HTTP control interface listens on
+# localhost or on all interfaces
+motion_control_localhost true
+
+# the TCP port that motion HTTP control interface listens on
+motion_control_port 7999
+
 # interval in seconds at which motionEye checks the SMB mounts
 mount_check_interval 300
 
index f1fe1b04d8e9e0d299ea19d96ab13bdf4645203c..fda9095beab225210b0dfe757877461264e2d040 100644 (file)
@@ -1,2 +1,2 @@
 
-VERSION = "0.28"
+VERSION = "0.28-git"
index a050da26ddfd13e62169a616a986382eada056b6..69608946b5c378047f5068f6e37be56e1f277948 100644 (file)
@@ -1577,10 +1577,14 @@ def _set_default_motion(data, old_motion):
     data.setdefault('@normal_password', '')
 
     if old_motion:
-        data.setdefault('control_port', 7999)
+        data.setdefault('control_port', settings.MOTION_CONTROL_PORT)
+        data.setdefault('control_html_output', True)
+        data.setdefault('control_localhost', settings.MOTION_CONTROL_LISTEN_LOCALHOST)
     
     else:
-        data.setdefault('webcontrol_port', 7999)
+        data.setdefault('webcontrol_port', settings.MOTION_CONTROL_PORT)
+        data.setdefault('webcontrol_html_output', True)
+        data.setdefault('webcontrol_localhost', settings.MOTION_CONTROL_LISTEN_LOCALHOST)
 
 
 def _set_default_motion_camera(camera_id, data):
index 965a2ab5c991c549e8800f39e23ed22ced551ecd..1c02a4a6d75c5792a48724ba8f307d418b740eee 100644 (file)
@@ -56,6 +56,13 @@ LISTEN = '0.0.0.0'
 # the TCP port to listen on
 PORT = 8765
 
+# whether motion HTTP control interface listens on
+# localhost or on all interfaces
+MOTION_CONTROL_LISTEN_LOCALHOST = True
+
+# the TCP port that motion HTTP control interface listens on
+MOTION_CONTROL_PORT = 7999
+
 # interval in seconds at which motionEye checks the SMB mounts
 MOUNT_CHECK_INTERVAL = 300
 
index 18e7137c17446395a2df19c40aae2ddff20dae24..1abebdde77c54818d9f92678d0541ddbbd59b26b 100644 (file)
                     <tr class="settings-item advanced-setting" min="0" max="100" snap="2" ticksnum="5" decimals="0" unit="%">
                         <td class="settings-item-label"><span class="settings-item-label">Light Switch Detection</span></td>
                         <td class="settings-item-value"><input type="text" class="range styled device camera-config" id="lightSwitchDetectSlider"></td>
-                        <td><span class="help-mark" title="sets the percentage of the image that needs to change so that the event is treated as a sudden light change instead of motion">?</span></td>
+                        <td><span class="help-mark" title="sets the percentage of the image that needs to change so that the event is treated as a sudden light change instead of motion (0% disables the function)">?</span></td>
                     </tr>
                     <tr class="settings-item advanced-setting" min="0" max="100" snap="2" ticksnum="5" decimals="0" unit="%">
                         <td class="settings-item-label"><span class="settings-item-label">Brightness</span></td>