forked from Xumpy/node-red-solaredge-modbus-client
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathse-modbus-json.html
More file actions
49 lines (47 loc) · 1.72 KB
/
se-modbus-json.html
File metadata and controls
49 lines (47 loc) · 1.72 KB
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
<script type="text/javascript">
RED.nodes.registerType('se-modbus',{
category: 'network',
color: '#fff665',
defaults: {
name: {value:"Solar Edge Modbus"},
host: {value:"192.168.1.200"},
port: {value:"1502"},
poll: {value:"1000"},
device: {value: "se_inverter"}
},
inputs:0,
outputs:1,
icon: "bridge.png",
label: function() {
return this.name||"se-modbus";
}
});
</script>
<script type="text/html" data-template-name="se-modbus">
<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>
<div class="form-row">
<label for="node-input-host"><i class="icon-tag"></i> Host</label>
<input type="text" id="node-input-host" placeholder="Host">
</div>
<div class="form-row">
<label for="node-input-port"><i class="icon-tag"></i> Port</label>
<input type="text" id="node-input-port" placeholder="Port">
</div>
<div class="form-row">
<label for="node-input-poll"><i class="icon-tag"></i> Poller</label>
<input type="text" id="node-input-poll" placeholder="Poller">
</div>
<div class="form-row">
<label for="node-input-device"><i class="icon-tag"></i> Device</label>
<select id="node-input-device">
<option value="se_inverter">Solar Edge Inverter</option>
<option value="em_300">EM 300 Power Meter</option>
</select>
</div>
</script>
<script type="text/html" data-help-name="lower-case">
<p>A simple node that fetches data from the modbus of solar edge solar panels</p>
</script>