UNPKG

node-red-contrib-lgtv-with-fullscreen

Version:

Node-RED Nodes to control LG webOS Smart TVs, with browser fullscreen

65 lines (62 loc) 1.69 kB
<script type="text/javascript"> RED.nodes.registerType('lgtv-button', { category: 'lgtv', color: '#C0DEED', inputs: 1, defaults: { tv: { value: '', type: 'lgtv-config', required: true }, name: { value: '' } }, label() { return this.name || 'button'; }, icon: 'lgtv-button.png', paletteLabel: 'button', align: 'right' }); </script> <script type="text/x-red" data-template-name="lgtv-button"> <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> </script> <script type="text/x-red" data-help-name="lgtv-button"> <p>Press a Button</p> <p> <code>msg.payload</code> can be one of:<br> <ul> <li>MUTE</li> <li>RED</li> <li>GREEN</li> <li>YELLOW</li> <li>BLUE</li> <li>HOME</li> <li>MENU</li> <li>VOLUMEUP</li> <li>VOLUMEDOWN</li> <li>CHANNELUP</li> <li>CHANNELDOWN</li> <li>*</li> <li>CC</li> <li>BACK</li> <li>UP</li> <li>DOWN</li> <li>LEFT</li> <li>ENTER</li> <li>DASH</li> <li>0-9</li> <li>EXIT</li> </ul> </p> </script>