node-red-contrib-lgtv-with-fullscreen
Version:
Node-RED Nodes to control LG webOS Smart TVs, with browser fullscreen
53 lines (50 loc) • 1.61 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('lgtv-app', {
category: 'lgtv',
color: '#C0DEED',
outputs: 1,
inputs: 1,
defaults: {
tv: {
value: '',
type: 'lgtv-config',
required: true
},
name: {
value: ''
},
passthru: {
value: true
}
},
label() {
return this.name || 'app';
},
icon: 'lgtv-app.png',
paletteLabel: 'app'
});
</script>
<script type="text/x-red" data-template-name="lgtv-app">
<div class="form-row">
<label for="node-input-tv"><i class="icon-bookmark"></i> TV</label>
<input type="text" id="node-input-tv">
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-bookmark"></i> Name</label>
<input type="text" id="node-input-name">
</div>
</div>
<div class="form-row">
<label style="width:auto" for="node-input-passthru"><i class="fa fa-arrow-right"></i> Pass <code>msg</code> through to output after successfully sending to TV: </label>
<input type="checkbox" checked id="node-input-passthru" style="display:inline-block; width:auto; vertical-align:baseline;">
</div>
</script>
<script type="text/x-red" data-help-name="lgtv-app">
<p><code>msg.payload</code> Examples:
<ul>
<li>netflix</li>
<li>com.webos.app.livetv</li>
<li>com.webos.app.hdmi1</li>
</ul>
</p>
</script>