node-red-contrib-antenna-genius 0.2.7-beta → 0.2.8-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,6 +10,15 @@ module.exports = (RED) => {
|
|
|
10
10
|
this.bandNameB = "";
|
|
11
11
|
this.server = RED.nodes.getNode(config.server);
|
|
12
12
|
|
|
13
|
+
if(this.server == null) {
|
|
14
|
+
this.status({
|
|
15
|
+
fill: "red",
|
|
16
|
+
shape: "ring",
|
|
17
|
+
text: "disconnected",
|
|
18
|
+
});
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
|
|
13
22
|
this.server.updatesEventEmitter.on("connected", () => {
|
|
14
23
|
if (this.server.info.name) {
|
|
15
24
|
this.status({
|
|
@@ -19,6 +19,15 @@ module.exports = (RED) => {
|
|
|
19
19
|
};
|
|
20
20
|
this.server = RED.nodes.getNode(config.server);
|
|
21
21
|
|
|
22
|
+
if(this.server == null) {
|
|
23
|
+
this.status({
|
|
24
|
+
fill: "red",
|
|
25
|
+
shape: "ring",
|
|
26
|
+
text: "disconnected",
|
|
27
|
+
});
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
22
31
|
this.server.updatesEventEmitter.on("connected", () => {
|
|
23
32
|
if (this.server.info.name) {
|
|
24
33
|
this.status({
|
|
@@ -8,6 +8,15 @@ module.exports = (RED) => {
|
|
|
8
8
|
this.bandNameB = "";
|
|
9
9
|
this.server = RED.nodes.getNode(config.server);
|
|
10
10
|
|
|
11
|
+
if(this.server == null) {
|
|
12
|
+
this.status({
|
|
13
|
+
fill: "red",
|
|
14
|
+
shape: "ring",
|
|
15
|
+
text: "disconnected",
|
|
16
|
+
});
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
|
|
11
20
|
this.server.updatesEventEmitter.on("connected", () => {
|
|
12
21
|
if (this.server.info.name) {
|
|
13
22
|
this.status({
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "dae0c396900b679c",
|
|
4
|
+
"type": "tab",
|
|
5
|
+
"label": "Flow 1",
|
|
6
|
+
"disabled": false,
|
|
7
|
+
"info": "",
|
|
8
|
+
"env": []
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "490d38d6edc8b3d3",
|
|
12
|
+
"type": "ui_button",
|
|
13
|
+
"z": "dae0c396900b679c",
|
|
14
|
+
"name": "A",
|
|
15
|
+
"group": "c4ec36e264004fa8",
|
|
16
|
+
"order": 4,
|
|
17
|
+
"width": "2",
|
|
18
|
+
"height": "1",
|
|
19
|
+
"passthru": false,
|
|
20
|
+
"label": "{{payload.name}}",
|
|
21
|
+
"tooltip": "",
|
|
22
|
+
"color": "",
|
|
23
|
+
"bgcolor": "{{payload.background}}",
|
|
24
|
+
"className": "",
|
|
25
|
+
"icon": "",
|
|
26
|
+
"payload": "true",
|
|
27
|
+
"payloadType": "bool",
|
|
28
|
+
"topic": "topic",
|
|
29
|
+
"topicType": "msg",
|
|
30
|
+
"x": 650,
|
|
31
|
+
"y": 160,
|
|
32
|
+
"wires": [
|
|
33
|
+
[
|
|
34
|
+
"21cbfe61e047667a"
|
|
35
|
+
]
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "4ce85a4a6d600cbb",
|
|
40
|
+
"type": "ui_button",
|
|
41
|
+
"z": "dae0c396900b679c",
|
|
42
|
+
"name": "B",
|
|
43
|
+
"group": "c4ec36e264004fa8",
|
|
44
|
+
"order": 6,
|
|
45
|
+
"width": "2",
|
|
46
|
+
"height": "1",
|
|
47
|
+
"passthru": false,
|
|
48
|
+
"label": "{{payload.name}}",
|
|
49
|
+
"tooltip": "",
|
|
50
|
+
"color": "",
|
|
51
|
+
"bgcolor": "{{payload.background}}",
|
|
52
|
+
"className": "",
|
|
53
|
+
"icon": "",
|
|
54
|
+
"payload": "true",
|
|
55
|
+
"payloadType": "bool",
|
|
56
|
+
"topic": "topic",
|
|
57
|
+
"topicType": "msg",
|
|
58
|
+
"x": 730,
|
|
59
|
+
"y": 200,
|
|
60
|
+
"wires": [
|
|
61
|
+
[
|
|
62
|
+
"21cbfe61e047667a"
|
|
63
|
+
]
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "4fbaa2cf09147758",
|
|
68
|
+
"type": "ui_text",
|
|
69
|
+
"z": "dae0c396900b679c",
|
|
70
|
+
"group": "c4ec36e264004fa8",
|
|
71
|
+
"order": 2,
|
|
72
|
+
"width": 0,
|
|
73
|
+
"height": 0,
|
|
74
|
+
"name": "",
|
|
75
|
+
"label": "Radio A | Radio B",
|
|
76
|
+
"format": "{{msg.payload.bandLabelA}} | {{msg.payload.bandLabelB}}",
|
|
77
|
+
"layout": "col-center",
|
|
78
|
+
"className": "",
|
|
79
|
+
"x": 690,
|
|
80
|
+
"y": 100,
|
|
81
|
+
"wires": []
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "8f71346072320a9f",
|
|
85
|
+
"type": "ui_button",
|
|
86
|
+
"z": "dae0c396900b679c",
|
|
87
|
+
"name": "A",
|
|
88
|
+
"group": "c4ec36e264004fa8",
|
|
89
|
+
"order": 8,
|
|
90
|
+
"width": "2",
|
|
91
|
+
"height": "1",
|
|
92
|
+
"passthru": false,
|
|
93
|
+
"label": "{{payload.name}}",
|
|
94
|
+
"tooltip": "",
|
|
95
|
+
"color": "",
|
|
96
|
+
"bgcolor": "{{payload.background}}",
|
|
97
|
+
"className": "",
|
|
98
|
+
"icon": "",
|
|
99
|
+
"payload": "true",
|
|
100
|
+
"payloadType": "bool",
|
|
101
|
+
"topic": "topic",
|
|
102
|
+
"topicType": "msg",
|
|
103
|
+
"x": 650,
|
|
104
|
+
"y": 240,
|
|
105
|
+
"wires": [
|
|
106
|
+
[
|
|
107
|
+
"21cbfe61e047667a"
|
|
108
|
+
]
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "68254444f1308033",
|
|
113
|
+
"type": "ui_button",
|
|
114
|
+
"z": "dae0c396900b679c",
|
|
115
|
+
"name": "B",
|
|
116
|
+
"group": "c4ec36e264004fa8",
|
|
117
|
+
"order": 10,
|
|
118
|
+
"width": "2",
|
|
119
|
+
"height": "1",
|
|
120
|
+
"passthru": false,
|
|
121
|
+
"label": "{{payload.name}}",
|
|
122
|
+
"tooltip": "",
|
|
123
|
+
"color": "",
|
|
124
|
+
"bgcolor": "{{payload.background}}",
|
|
125
|
+
"className": "",
|
|
126
|
+
"icon": "",
|
|
127
|
+
"payload": "true",
|
|
128
|
+
"payloadType": "bool",
|
|
129
|
+
"topic": "topic",
|
|
130
|
+
"topicType": "msg",
|
|
131
|
+
"x": 730,
|
|
132
|
+
"y": 280,
|
|
133
|
+
"wires": [
|
|
134
|
+
[
|
|
135
|
+
"21cbfe61e047667a"
|
|
136
|
+
]
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "78617c107783edfa",
|
|
141
|
+
"type": "antenna-genius-band-labels",
|
|
142
|
+
"z": "dae0c396900b679c",
|
|
143
|
+
"name": "",
|
|
144
|
+
"server": "",
|
|
145
|
+
"x": 400,
|
|
146
|
+
"y": 100,
|
|
147
|
+
"wires": [
|
|
148
|
+
[
|
|
149
|
+
"4fbaa2cf09147758"
|
|
150
|
+
]
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "c273fac278c6addb",
|
|
155
|
+
"type": "antenna-genius-antenna-status",
|
|
156
|
+
"z": "dae0c396900b679c",
|
|
157
|
+
"name": "",
|
|
158
|
+
"server": "",
|
|
159
|
+
"antennaNb": "1",
|
|
160
|
+
"x": 390,
|
|
161
|
+
"y": 200,
|
|
162
|
+
"wires": [
|
|
163
|
+
[
|
|
164
|
+
"490d38d6edc8b3d3"
|
|
165
|
+
],
|
|
166
|
+
[
|
|
167
|
+
"4ce85a4a6d600cbb"
|
|
168
|
+
]
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "21cbfe61e047667a",
|
|
173
|
+
"type": "antenna-genius-activate-antenna",
|
|
174
|
+
"z": "dae0c396900b679c",
|
|
175
|
+
"name": "",
|
|
176
|
+
"server": "",
|
|
177
|
+
"x": 1080,
|
|
178
|
+
"y": 180,
|
|
179
|
+
"wires": []
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"id": "9efa627cb00ca277",
|
|
183
|
+
"type": "antenna-genius-antenna-status",
|
|
184
|
+
"z": "dae0c396900b679c",
|
|
185
|
+
"name": "",
|
|
186
|
+
"server": "",
|
|
187
|
+
"antennaNb": "2",
|
|
188
|
+
"x": 390,
|
|
189
|
+
"y": 280,
|
|
190
|
+
"wires": [
|
|
191
|
+
[
|
|
192
|
+
"8f71346072320a9f"
|
|
193
|
+
],
|
|
194
|
+
[
|
|
195
|
+
"68254444f1308033"
|
|
196
|
+
]
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"id": "8233785eeb4f52ab",
|
|
201
|
+
"type": "comment",
|
|
202
|
+
"z": "dae0c396900b679c",
|
|
203
|
+
"name": "Antennas",
|
|
204
|
+
"info": "",
|
|
205
|
+
"x": 660,
|
|
206
|
+
"y": 40,
|
|
207
|
+
"wires": []
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"id": "c4ec36e264004fa8",
|
|
211
|
+
"type": "ui_group",
|
|
212
|
+
"name": "Antenna Genius",
|
|
213
|
+
"tab": "ac6e9d7b975180d8",
|
|
214
|
+
"order": 1,
|
|
215
|
+
"disp": false,
|
|
216
|
+
"width": "4",
|
|
217
|
+
"collapse": false,
|
|
218
|
+
"className": ""
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "ac6e9d7b975180d8",
|
|
222
|
+
"type": "ui_tab",
|
|
223
|
+
"name": "Antenna Genius",
|
|
224
|
+
"icon": "dashboard",
|
|
225
|
+
"order": 1,
|
|
226
|
+
"disabled": false,
|
|
227
|
+
"hidden": false
|
|
228
|
+
}
|
|
229
|
+
]
|
|
Binary file
|