-
Notifications
You must be signed in to change notification settings - Fork 25
/
onvif_discovery.html
55 lines (53 loc) · 2.68 KB
/
onvif_discovery.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!--
Copyright 2018, Bart Butenaers
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script type="text/javascript">
RED.nodes.registerType('onvif-discovery',{
category: 'OnVif',
color: '#ff758d',
defaults: {
name: {value:""},
timeout: {value:5},
separate: {value:true}
},
inputs:1,
outputs:1,
icon: "discovery.png",
label: function() {
return this.name||"OnVif discovery";
}
});
</script>
<script type="text/x-red" data-template-name="onvif-discovery">
<div class="form-row">
<label for="node-input-timeout"><i class="fa fa-clock"></i> Timeout</label>
<input type="number" id="node-input-timeout" min="0" style="width:50px;">
<span> seconds</span>
</div>
<div class="form-row">
<input type="checkbox" id="node-input-separate" style="display: inline-block; width: auto; vertical-align: top;">
<label for="node-input-separate" style="width: auto">Separate output message for each device</label>
</div>
<br>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="onvif-discovery">
<p>A node to discover IP devices which support the ONVIF specifications.</p>
<p>The discovery can be started by sending an input message. A broadcast takes about 3 seconds in normal circumstances. The input message will be ignored if another broadcast is already active.</p>
<p><strong>Timeout:</strong><br/>
The timeout is the number of seconds we will wait for OnVif devices to respond. After the timeout interval, the broadcast will be considered completed. Any device responses afterwards will be ignored.</p>
<p><strong>Separate output message for each device:</strong><br/>
When deselected a single output message will be generated, with <code>msg.payload</code> containing an array of available all devices. When deselected, a separate output message will be generated for every available device.</p>
</script>