]> www.vanbest.org Git - motioneye-debian/commitdiff
motion version is now displayed in the settings panel
authorCalin Crisan <ccrisan@gmail.com>
Mon, 31 Oct 2016 20:50:19 +0000 (22:50 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Mon, 31 Oct 2016 20:50:19 +0000 (22:50 +0200)
motioneye/handlers.py
motioneye/templates/main.html

index 18739aabe3c9d4d9161bcaa3da57cf744b23d4db..33fd33aae605b8924072bef8839f442f9689d09d 100644 (file)
@@ -193,10 +193,13 @@ class MainHandler(BaseHandler):
         # additional config
         main_sections = config.get_additional_structure(camera=False, separators=True)[0]
         camera_sections = config.get_additional_structure(camera=True, separators=True)[0]
+        
+        motion_info = motionctl.find_motion(); 
 
         self.render('main.html',
                 frame=False,
                 version=motioneye.VERSION,
+                motion_version=motion_info[1] if motion_info else '(none)',
                 enable_update=settings.ENABLE_UPDATE,
                 enable_reboot=settings.ENABLE_REBOOT,
                 add_remove_cameras=settings.ADD_REMOVE_CAMERAS,
index 1f180229d12405e2ce3d890ce4e22b9d0c9a2297..76f6685a65088618527d461a070c638124ae8b4d 100644 (file)
                         <td colspan="100"><div class="settings-item-separator"></div></td>
                     </tr>
                     <tr class="settings-item advanced-setting">
-                        <td class="settings-item-label"><span class="settings-item-label">Current Version</span></td>
+                        <td class="settings-item-label"><span class="settings-item-label">motionEye Version</span></td>
                         <td class="settings-item-value"><span class="settings-item-label">{{version}}</span></td>
                     </tr>
+                    <tr class="settings-item advanced-setting">
+                        <td class="settings-item-label"><span class="settings-item-label">Motion Version</span></td>
+                        <td class="settings-item-value"><span class="settings-item-label">{{motion_version}}</span></td>
+                    </tr>
                     {% if enable_update %}
                     <tr class="settings-item advanced-setting">
                         <td class="settings-item-label"><span class="settings-item-label">Software Update</span></td>