-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathalexa-speak.html
62 lines (52 loc) · 2 KB
/
alexa-speak.html
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
<script type="text/x-red" data-template-name="Alexa-music">
<div class="form-row">
<label for="node-input-account"><i class="fa fa-globe"></i> Account</label>
<input type="text" id="node-input-account">
</div>
<div class="form-row">
<label for="node-input-serialOrName"><i class="fa fa-globe"></i> Serial or Name</label>
<input type="text" id="node-input-serialOrName">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-globe"></i> Node Name</label>
<input type="text" id="node-input-name">
</div>
<div class="form-row">
<label for="node-input-providerId"><i class="icon-tag"></i> Music Provider ID</label>
<input type="text" id="node-input-providerId">
</div>
<div class="form-row">
<label for="node-input-searchPhrase"><i class="icon-tag"></i> Search Phrase</label>
<input type="text" id="node-input-searchPhrase">
</div>
<div class="form-row">
<label for="node-input-volume"><i class="icon-tag"></i> Volume</label>
<input type="number" id="node-input-volume">
</div>
</script>
<script type="text/x-red" data-help-name="Alexa-music">
<p>An Alexa Remote client for node-red, a wrapper for <a href="https://github.com/Apollon77/alexa-remote">Alexa-remote</a></p>
<p>Each variable can be overriden with msg.xxx</p>
<p>More to come later</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('Alexa-music',{
category: 'media',
color: '#3FADB5',
label: function() {
return this.name || "Alexa Music";
},
paletteLabel: "Alexa Music",
defaults: {
name: {value:""},
serialOrName: { value:"" },
volume: { value:"" },
providerId: { value:"SPOTIFY" },
searchPhrase: {value:""},
account: { type:"Alexa-credentials", required:true }
},
inputs: 1,
outputs: 1,
icon: "alexa.png"
});
</script>