-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
195 lines (190 loc) · 6.16 KB
/
index.html
File metadata and controls
195 lines (190 loc) · 6.16 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<script type="text/x-red" data-template-name="viera read">
<div class="form-row">
<label for="node-input-host">
<i class="fa fa-globe"></i> Host</label>
<input type="text" id="node-input-host" placeholder="127.0.0.1">
</div>
<div class="form-row">
<label for="node-input-function">
<i class="fa fa-code"></i> Function</label>
<select type="text" id="node-input-function">
<option value=""></option>
<option value="getVolume">getVolume</option>
<option value="getMute">getMute</option>
</select>
</div>
<div class="form-row">
<label for="node-input-name">
<i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-tips">Tip: Leave function blank if you want to set them via msg.function.</div>
</script>
<script type="text/x-red" data-help-name="viera read">
<p>Read value from viera TV.</p>
</script>
<script type="text/javascript">
RED.nodes.registerType("viera read", {
category: "input",
defaults: {
name: {
name: ""
},
host: {
required: true
},
function: {
value: ""
}
},
color: "#C0DEED",
inputs: 1,
outputs: 1,
icon: "tv.png",
paletteLabel: "viera",
label: function () {
return this.name || "viera";
},
labelStyle: function () {
return this.name ? "node_label_italic" : "";
}
});
</script>
<script type="text/x-red" data-template-name="viera write">
<div class="form-row">
<label for="node-input-host">
<i class="fa fa-globe"></i> Host</label>
<input type="text" id="node-input-host" placeholder="127.0.0.1">
</div>
<div class="form-row">
<label for="node-input-function">
<i class="fa fa-code"></i> Function</label>
<select type="text" id="node-input-function">
<option value=""></option>
<option value="sendCommand">sendCommand</option>
<option value="setVolume">setVolume</option>
<option value="setMute">setMute</option>
</select>
</div>
<div class="form-row">
<label for="node-input-name">
<i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-tips">Tip: Leave function blank if you want to set them via msg.function.</div>
</script>
<script type="text/x-red" data-help-name="viera write">
<p>Write value to viera TV.</p>
<p>
<b>Commands:</b>
<ul>
<li>CH_DOWN - channel down</li>
<li>CH_UP - channel up</li>
<li>VOLUP - volume up</li>
<li>VOLDOWN - volume down</li>
<li>POWER - Power off</li>
<li>MUTE - mute</li>
<li>TV - TV</li>
<li>CHG_INPUT - AV</li>
<li>HOME - Home screen</li>
<li>APPS - Apps</li>
<li>GUIDE - Guide</li>
<li>RED - red</li>
<li>GREEN - green</li>
<li>YELLOW - yellow</li>
<li>BLUE - blue</li>
<li>VTOOLS - VIERA tools</li>
<li>CANCEL - Cancel / Exit</li>
<li>SUBMENU - Option</li>
<li>RETURN - Return</li>
<li>ENTER - Control Center click / enter</li>
<li>RIGHT - Control RIGHT</li>
<li>LEFT - Control LEFT</li>
<li>UP - Control UP</li>
<li>DOWN - Control DOWN</li>
<li>3D - 3D button</li>
<li>SD_CARD - SD-card</li>
<li>DISP_MODE - Display mode / Aspect ratio</li>
<li>MENU - Menu</li>
<li>INTERNET - VIERA connect</li>
<li>VIERA_LINK - VIERA link</li>
<li>EPG - Guide / EPG</li>
<li>TEXT - Text / TTV</li>
<li>STTL - STTL / Subtitles</li>
<li>INFO - info</li>
<li>INDEX - TTV index</li>
<li>HOLD - TTV hold / image freeze</li>
<li>R_TUNE - Last view</li>
</br>
<li>REW - rewind</li>
<li>PLAY - play</li>
<li>FF - fast forward</li>
<li>SKIP_PREV - skip previous</li>
<li>PAUSE - pause</li>
<li>SKIP_NEXT - skip next</li>
<li>STOP - stop</li>
<li>REC - record</li>
</br>
<b>numeric buttons</b>
<li>D1 D2 D3 D4 D5 D6 D7 D8 D9 D0</li>
</br>
<li>P_NR - P-NR (Noise reduction)</li>
<li>OFFTIMER - off timer</li>
<li>R_TUNE - Seems to do the same as INFO</li>
</br>
<b>others (depends on type of your TV)</b>
<li>CHG_NETWORK</li>
<li>CC</li>
<li>SAP</li>
<li>RECLIST</li>
<li>DRIVE</li>
<li>DATA</li>
<li>BD</li>
<li>FAVORITE</li>
<li>DIGA_CTL</li>
<li>VOD</li>
<li>ECO</li>
<li>GAME</li>
<li>EZ_SYNC</li>
<li>PICTAI</li>
<li>MPX</li>
<li>SPLIT</li>
<li>SWAP</li>
<li>R_SCREEN</li>
<li>30S_SKIP</li>
<li>PROG</li>
<li>TV_MUTE_ON</li>
<li>TV_MUTE_OFF</li>
<li>DMS_CH_UP</li>
<li>DMS_CH_DOWN</li>
</ul>
</p>
</script>
<script type="text/javascript">
RED.nodes.registerType("viera write", {
category: "output",
defaults: {
name: {
name: ""
},
host: {
required: true
},
function: {
value: ""
}
},
color: "#C0DEED",
inputs: 1,
outputs: 0,
icon: "tv.png",
align: "right",
paletteLabel: "viera",
label: function () {
return this.name || "viera";
},
labelStyle: function () {
return this.name ? "node_label_italic" : "";
}
});
</script>