]> www.vanbest.org Git - motioneye-debian/commitdiff
fixed simple mjpeg cameras
authorCalin Crisan <ccrisan@gmail.com>
Sun, 13 Dec 2015 17:53:38 +0000 (19:53 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Sun, 13 Dec 2015 20:04:49 +0000 (22:04 +0200)
motioneye/config.py
motioneye/static/css/main.css
motioneye/static/js/main.js

index bebafd4931d1091dbc5cab6b827daa93638e045e..9f73da9d70d00602ef57412659989f9e0ce4bca6 100644 (file)
@@ -866,8 +866,6 @@ def motion_camera_ui_to_dict(ui, old_config=None):
     # event start
     on_event_start = ['%(script)s start %%t' % {'script': meyectl.find_command('relayevent')}]
     if ui['email_notifications_enabled']:
-        send_mail_path = os.path.join(settings.PROJECT_PATH, 'sendmail.py')
-        send_mail_path = os.path.abspath(send_mail_path)
         emails = re.sub('\\s', '', ui['email_notifications_addresses'])
         
         on_event_start.append("%(script)s '%(server)s' '%(port)s' '%(account)s' '%(password)s' '%(tls)s' '%(to)s' 'motion_start' '%%t' '%%Y-%%m-%%dT%%H:%%M:%%S' '%(timespan)s'" % {
@@ -1365,6 +1363,10 @@ def simple_mjpeg_camera_dict_to_ui(data):
         
         ui[name[1:]] = value
     
+    # action commands
+    action_commands = get_action_commands(data['@id'])
+    ui['actions'] = action_commands.keys()
+
     return ui
 
 
index 289ba01094abff108943e192799751de9f7b678e..22d04539827c1e84c7dc6a8c16f3265a22689e0e 100644 (file)
@@ -924,7 +924,8 @@ div.camera-overlay-top {
 
 div.camera-name {
     display: inline-block;
-    font-size: 1.5em;
+    font-size: 1.2em;
+    font-weight: bold;
     white-space: nowrap;
     width: 33.33%;
     overflow: hidden;
index d45839259ebec70e8804b3092db07afeed9a52ae..957a3260645a07c54f74a58490b3901201cb2a2f 100644 (file)
@@ -4337,7 +4337,7 @@ function checkCameraErrors() {
         }
 
         /* fps timeout */
-        if (this.fpsTimes.length && (now - this.fpsTimes[this.fpsTimes.length - 1]) > 2000) {
+        if (this.fpsTimes && this.fpsTimes.length && (now - this.fpsTimes[this.fpsTimes.length - 1]) > 2000) {
             $(this).parents('div.camera-frame').find('span.camera-info.fps').html('0 fps');
         }
     });