forked from felixfischer/node-red-contrib-fritzbox-presence
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathfritzbox-presence.html
31 lines (29 loc) · 1 KB
/
fritzbox-presence.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
<script type="text/javascript">
RED.nodes.registerType('fritzbox-presence', {
category: 'fritzbox',
color: '#2E90DD',
paletteLabel: 'FRITZ!Box Presence',
defaults: {
fritz: { type:'fritzbox-presence-credentials', required: true },
},
inputs: 1,
outputs: 1,
icon: "fritz.png",
label: function() {
return this.name || "FRITZ!Box Presence";
}
});
</script>
<script type="text/x-red" data-template-name="fritzbox-presence">
<div class="form-row">
<label for="node-input-fritz"><i class="fa fa-keyboard-o"></i> Fritz Box</label>
<input id="node-input-fritz"></input>
</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="fritzbox-presence">
<p>A node that lists devices connected to a Fritz!Box</p>
</script>