-
Notifications
You must be signed in to change notification settings - Fork 5
/
haier-roboot.html
56 lines (53 loc) · 1.47 KB
/
haier-roboot.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
<script type="text/javascript">
RED.nodes.registerType('haier-roboot', {
category: '海尔',
color: '#c07780',
paletteLabel: '海尔机器人',
label () {
return this.name || '海尔机器人'
},
defaults: {
haier: {
value: '',
type: 'haier-configurator'
},
name: {
value: ''
},
message: {
value: ''
}
},
inputs: 1,
outputs: 1,
icon: 'roboot.svg'
})
</script>
<script type="text/x-red" data-template-name="haier-roboot">
<div class="form-row">
<label for="node-input-haier"><i class="icon-tag"></i>配置</label>
<input type="text" id="node-input-haier">
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i>名称</label>
<input type="text" id="node-input-name">
</div>
<div class="form-row">
<label for="node-input-message"><i class="icon-tag"></i>指令</label>
<input type="text" id="node-input-message" placeholder="ai 指令消息">
</div>
</script>
<script type="text/x-red" data-help-name="haier-roboot">
<h3>输入</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">string</span>
</dt>
<dd>控制指令</dd>
<dt>device
<span class="property-type">string</span>
</dt>
</dl>
<h3>输出</h3>
<p>结果</p>
</script>