-
Notifications
You must be signed in to change notification settings - Fork 2
/
fibaroServer.html
46 lines (39 loc) · 1.58 KB
/
fibaroServer.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
<script type="text/javascript">
RED.nodes.registerType('fibaro-server', {
category: 'config',
defaults: {
name: { value: "", required: true, validate: RED.validators.regex(/^[a-zA-Z0-9-_]+$/) },
ipaddress: { value: "", required: true },
},
credentials: {
login: { type: "text", required: true },
password: { type: "password", required: true }
},
paletteLabel: 'hc: config',
icon: "fibaro-hc2.png",
label: function () {
return this.name;
},
});
</script>
<script type="text/x-red" data-template-name="fibaro-server">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-config-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-config-input-ipaddress"><i class="fa fa-globe"></i> IP Address</label>
<input type="text" id="node-config-input-ipaddress" placeholder="192.168.xx.xx">
</div>
<div class="form-row">
<label for="node-config-input-login"><i class="fa fa-user"></i> Login</label>
<input type="text" id="node-config-input-login">
</div>
<div class="form-row">
<label for="node-config-input-password"><i class="fa fa-key"></i> Password</label>
<input type="password" id="node-config-input-password">
</div>
</script>
<script type="text/html" data-help-name="fibaro-server">
<p>The connection to an HC(x) FIBARO server to send and receive messages.</p>
</script>