node-red-contrib-hik-media-buffer 1.1.129 → 1.1.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,42 +9,12 @@
9
9
  port: { value: "80", required: true },
10
10
  user: { value: "admin", required: true },
11
11
  pass: { value: "" },
12
- camPass: { value: "" },
13
- cameras: { value: [] }
14
12
  },
15
13
  inputs: 0,
16
14
  outputs: 1,
17
15
  icon: "font-awesome/fa-bell",
18
16
  label: function() { return this.name || "Hik Multi Cam"; },
19
- oneditprepare: function() {
20
- $("#node-input-cameras-container").css('min-height','150px').editableList({
21
- addItem: function(container, i, data) {
22
- var row = $('<div/>').appendTo(container);
23
- $('<input/>',{class:"node-input-camera-channel",type:"text",placeholder:"Canale (es. 1)",style:"width:30%; margin-right:5px;"}).appendTo(row).val(data.channel);
24
- $('<input/>',{class:"node-input-camera-ip",type:"text",placeholder:"IP Telecamera",style:"width:60%;"}).appendTo(row).val(data.ip);
25
- },
26
- removable: true,
27
- sortable: true
28
- });
29
- if (this.cameras) {
30
- this.cameras.forEach(function(cam) {
31
- $("#node-input-cameras-container").editableList('addItem', cam);
32
- });
33
- }
34
- },
35
- oneditsave: function() {
36
- var cams = $("#node-input-cameras-container").editableList('items');
37
- var node = this;
38
- node.cameras = [];
39
- cams.each(function(i) {
40
- var cam = $(this);
41
- var o = {
42
- channel: cam.find(".node-input-camera-channel").val(),
43
- ip: cam.find(".node-input-camera-ip").val()
44
- };
45
- if (o.channel && o.ip) node.cameras.push(o);
46
- });
47
- }
17
+
48
18
  });
49
19
  </script>
50
20
 
@@ -84,16 +54,6 @@
84
54
  <option value="8008">8008</option>
85
55
  </select>
86
56
  </div>
87
-
88
- <hr>
89
- <h4>Elenco Telecamere (Download)</h4>
90
- <div class="form-row node-input-cameras-container-row">
91
- <ol id="node-input-cameras-container"></ol>
92
- </div>
93
- <div class="form-row">
94
- <label for="node-input-camPass"><i class="fa fa-key"></i> Password Telecamera</label>
95
- <input type="password" id="node-input-camPass" placeholder="Password comune alle telecamere">
96
- </div>
97
57
  </script>
98
58
  <script type="text/markdown" data-help-name="hik-media-buffer">
99
59
  ## HIK MEDIA BUFFER NODE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-hik-media-buffer",
3
- "version": "1.1.129",
3
+ "version": "1.1.130",
4
4
  "description": "Ottiene buffer video e immagine da camere Hikvision via ISAPI",
5
5
  "keywords": [
6
6
  "node-red",