node-red-contrib-apple-tv-x
Version:
Nodes for controlling Apple TVs in Node-RED (wrapper pyatv)
33 lines (30 loc) • 878 B
HTML
<script type="text/javascript">
RED.nodes.registerType("atvx-in", {
category: "Apple TV",
paletteLabel: "in",
color: "#FFAAAA",
outputs: 1,
icon: "icon.png",
align: "left",
defaults: {
name: { value: "" },
atvx: { type: "atvx-config", required: true }
},
label: function () {
return this.name || "in";
},
});
</script>
<script type="text/html" data-template-name="atvx-in">
<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-row">
<label for="node-input-atvx"><i class="fa fa-tv"></i> Apple TV</label>
<input type="text" id="node-input-atvx">
</div>
</script>
<script type="text/html" data-help-name="atvx-in">
<p>Events from Apple TV on msg.payload</p>
</script>