forked from haydendonald/node-red-contrib-panasonicprojector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpanasonicprojector.html
More file actions
79 lines (76 loc) · 3.41 KB
/
panasonicprojector.html
File metadata and controls
79 lines (76 loc) · 3.41 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!-- Settings Panel -->
<script type="text/x-red" data-template-name="panasonicprojector-panasonicprojector">
<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-ipAddress"><i class="icon-bookmark"></i> IP Address</label>
<input type="text" id="node-input-ipAddress">
</div>
<div class="form-row">
<label for="node-input-port"><i class="icon-bookmark"></i> Port</label>
<input type="text" id="node-input-port">
</div>
<div class="form-row">
<label for="node-input-username"><i class="icon-bookmark"></i> Username</label>
<input type="text" id="node-input-username">
</div>
<div class="form-row">
<label for="node-input-password"><i class="icon-bookmark"></i> Password</label>
<input type="text" id="node-input-password">
</div>
<div class="form-row">
<label for="node-input-projectorId"><i class="icon-bookmark"></i> ID</label>
<input type="text" id="node-input-projectorId">
</div>
</script>
<!-- Register -->
<script type="text/javascript">
RED.nodes.registerType('panasonicprojector-panasonicprojector', {
category: 'Panasonic',
color: '#ffffef',
defaults: {
name: {value: ""},
ipAddress: {value: "0.0.0.0", required: true},
port: {value: 1024, required: true, validate: RED.validators.number()},
username: {value: "admin1", required: true},
password: {value: "panasonic", required: true},
projectorId: {value: "ZZ", required: true},
},
inputs: 1,
outputs: 1,
icon: "panasonic.png",
label: function() {
return this.name||"Panasonic Projector";
}
});
</script>
<!-- Information Panel -->
<script type="text/x-red" data-help-name="panasonicprojector-panasonicprojector">
<h1>Panasonic Projector Control Node</h1>
<p>Controls a panasonic projector over TCP</p>
<p><a href="https://github.com/haydendonald/node-red-contrib-panasonicprojector"<a>Github</a></p>
</br>
<h2>How To Use:</h2>
<p>Simply pass the following into the module</p>
<h3>Using Basic Commands</h3>
<p><strong>msg.payload.command</strong>: The command to be processed</p>
<p><strong>msg.payload.parameter</strong>: The parameter(s) of the command, not required if there is none</p>
<h3>Using Sub Commands</h3>
<p><strong>msg.payload.command</strong>: The command to be processed</p>
<p><strong>msg.payload.subcommand</strong>: The sub command to be processed</p>
<p><strong>msg.payload.parameter</strong>: The parameter(s) of the command, not required if there is none</p>
</br>
<h2>Error Codes:</h2>
<p><strong>ERR1</strong>: Undefined control command</p>
<p><strong>ERR2</strong>: Out of parameter range</p>
<p><strong>ERR3</strong>: Busy state</p>
<p><strong>ERR4</strong>: Timeout</p>
<p><strong>ERR5</strong>: Wrong data length</p>
<p><strong>ERRA</strong>: Password mismatch</p>
<p><strong>ER401</strong>: Command cannot be executed</p>
<p><strong>ER402</strong>: Invalid parameter</p>
</br>
<img src="https://raw.githubusercontent.com/haydendonald/node-red-contrib-panasonicprojector/master/img/commands.png" alt="Panasonic Projector Commands"/>
</script>