From: Calin Crisan Date: Thu, 24 Nov 2016 14:58:07 +0000 (+0200) Subject: added camera id field in settings panel X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=a5ed73f64521de1e1140ecb2e2668617c4bd21d1;p=motioneye-debian added camera id field in settings panel --- diff --git a/motioneye/static/js/main.js b/motioneye/static/js/main.js index e551f62..79ca95f 100644 --- a/motioneye/static/js/main.js +++ b/motioneye/static/js/main.js @@ -2035,6 +2035,7 @@ function dict2CameraUi(dict) { $('#videoDeviceEnabledSwitch')[0].checked = dict['enabled']; markHideIfNull('enabled', 'videoDeviceEnabledSwitch'); $('#deviceNameEntry').val(dict['name']); markHideIfNull('name', 'deviceNameEntry'); + $('#deviceIdEntry').val(dict['id']); markHideIfNull('id', 'deviceIdEntry'); $('#deviceUrlEntry').val(dict['device_url']); markHideIfNull('device_url', 'deviceUrlEntry'); $('#deviceTypeEntry').val(prettyType); markHideIfNull(!prettyType, 'deviceTypeEntry'); $('#deviceTypeEntry')[0].proto = dict['proto']; diff --git a/motioneye/templates/main.html b/motioneye/templates/main.html index fac8930..cdc7a4b 100644 --- a/motioneye/templates/main.html +++ b/motioneye/templates/main.html @@ -245,6 +245,11 @@ ? + + Camera ID + + ? + Camera Device