-
Notifications
You must be signed in to change notification settings - Fork 0
/
doorbird.html
57 lines (50 loc) · 1.74 KB
/
doorbird.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
56
57
<script type="text/javascript">
RED.nodes.registerType('doorbird',{
category: 'function',
color: '#a6bbcf',
defaults: {
name: {value:""}
},
credentials: {
username: {type:"text", required:true},
password: {type:"password", required:true}
},
inputs:1,
outputs:1,
icon: "feed.png",
label: function() {
return this.name || "DoorBird";
}
});
</script>
<script type="text/x-red" data-template-name="doorbird">
<div class="form-row">
<label for="node-input-username"><i class="icon-tag"></i> Username</label>
<input type="text" id="node-input-username" placeholder="Benutzername">
</div>
<div class="form-row">
<label for="node-input-password"><i class="icon-tag"></i> Password</label>
<input type="password" id="node-input-password" placeholder="Passwort">
</div>
<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="doorbird">
<p>Raise output if doorbird-broadcast is evaluated as ringing</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload<span class="property-type">buffer</span></dt>
<dd>the doorbird-broadcast.</dd>
</dl>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload<span class="property-type">boolean</span></dt>
<dd><code>true</code> - if ringing.</dd>
<dd><code>false</code> - if movement.</dd>
</dl>
<h3>Details</h3>
<p><code>msg.payload</code> contains the payload of the doorbird-broadcast.
If broadcast is evaluated as ringing, msg.payload of output will send out as true.</p>
</script>