node-red-contrib-tdn-eventsub 0.2.2 → 0.2.3
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.
- package/README.md +120 -69
- package/examples/rest-basic.json +387 -72
- package/lib/client.js +177 -76
- package/lib/outputs.js +2 -0
- package/lib/subscription.js +117 -0
- package/nodes/rest-events.html +133 -0
- package/nodes/rest-events.js +172 -0
- package/nodes/rest-item-status.html +15 -7
- package/nodes/rest-item-status.js +53 -96
- package/nodes/rest-lists.html +379 -60
- package/nodes/rest-lists.js +214 -75
- package/nodes/rest-server.html +36 -9
- package/nodes/rest-server.js +108 -53
- package/package.json +3 -2
package/examples/rest-basic.json
CHANGED
|
@@ -6,48 +6,62 @@
|
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"z": "rest_tab",
|
|
9
|
-
"id": "
|
|
10
|
-
"type": "
|
|
11
|
-
"name": "
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"targetType": "msg",
|
|
16
|
-
"x": 760,
|
|
17
|
-
"y": 100,
|
|
9
|
+
"id": "cmt",
|
|
10
|
+
"type": "comment",
|
|
11
|
+
"name": "Set global.rest_server first (host / port / basePath / protocol), then trigger any node",
|
|
12
|
+
"info": "",
|
|
13
|
+
"x": 330,
|
|
14
|
+
"y": 20,
|
|
18
15
|
"wires": []
|
|
19
16
|
},
|
|
20
17
|
{
|
|
21
18
|
"z": "rest_tab",
|
|
22
|
-
"id": "
|
|
23
|
-
"type": "
|
|
24
|
-
"name": "
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
19
|
+
"id": "inj_srv",
|
|
20
|
+
"type": "inject",
|
|
21
|
+
"name": "on deploy",
|
|
22
|
+
"props": [
|
|
23
|
+
{
|
|
24
|
+
"p": "payload"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"repeat": "",
|
|
28
|
+
"once": true,
|
|
29
|
+
"onceDelay": 0.1,
|
|
30
|
+
"payload": "",
|
|
31
|
+
"payloadType": "date",
|
|
32
|
+
"x": 130,
|
|
33
|
+
"y": 60,
|
|
34
|
+
"wires": [
|
|
35
|
+
[
|
|
36
|
+
"set_srv"
|
|
37
|
+
]
|
|
38
|
+
]
|
|
32
39
|
},
|
|
33
40
|
{
|
|
34
41
|
"z": "rest_tab",
|
|
35
|
-
"id": "
|
|
36
|
-
"type": "
|
|
37
|
-
"name": "
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
"id": "set_srv",
|
|
43
|
+
"type": "change",
|
|
44
|
+
"name": "global.rest_server",
|
|
45
|
+
"rules": [
|
|
46
|
+
{
|
|
47
|
+
"t": "set",
|
|
48
|
+
"p": "rest_server",
|
|
49
|
+
"pt": "global",
|
|
50
|
+
"to": "{\"host\":\"192.168.1.10\",\"port\":8904,\"basePath\":\"/api\",\"protocol\":\"https\"}",
|
|
51
|
+
"tot": "json"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"x": 340,
|
|
55
|
+
"y": 60,
|
|
56
|
+
"wires": [
|
|
57
|
+
[]
|
|
58
|
+
]
|
|
45
59
|
},
|
|
46
60
|
{
|
|
47
61
|
"z": "rest_tab",
|
|
48
|
-
"id": "
|
|
62
|
+
"id": "inj_ch",
|
|
49
63
|
"type": "inject",
|
|
50
|
-
"name": "
|
|
64
|
+
"name": "list",
|
|
51
65
|
"props": [
|
|
52
66
|
{
|
|
53
67
|
"p": "payload"
|
|
@@ -58,29 +72,57 @@
|
|
|
58
72
|
"payload": "",
|
|
59
73
|
"payloadType": "date",
|
|
60
74
|
"x": 140,
|
|
61
|
-
"y":
|
|
75
|
+
"y": 120,
|
|
62
76
|
"wires": [
|
|
63
77
|
[
|
|
64
|
-
"
|
|
78
|
+
"n_ch"
|
|
65
79
|
]
|
|
66
80
|
]
|
|
67
81
|
},
|
|
68
82
|
{
|
|
69
83
|
"z": "rest_tab",
|
|
70
|
-
"id": "
|
|
71
|
-
"type": "
|
|
72
|
-
"name": "
|
|
84
|
+
"id": "inj_ch_id",
|
|
85
|
+
"type": "inject",
|
|
86
|
+
"name": "cardholder 325",
|
|
87
|
+
"props": [
|
|
88
|
+
{
|
|
89
|
+
"p": "payload"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"repeat": "",
|
|
93
|
+
"once": false,
|
|
94
|
+
"payload": "325",
|
|
95
|
+
"payloadType": "str",
|
|
96
|
+
"x": 140,
|
|
97
|
+
"y": 160,
|
|
98
|
+
"wires": [
|
|
99
|
+
[
|
|
100
|
+
"n_ch"
|
|
101
|
+
]
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"z": "rest_tab",
|
|
106
|
+
"id": "n_ch",
|
|
107
|
+
"type": "tdn-rest-cardholders",
|
|
108
|
+
"name": "get cardholders",
|
|
73
109
|
"server": "rest_srv",
|
|
74
|
-
"
|
|
110
|
+
"creds": "credentials",
|
|
111
|
+
"credsType": "msg",
|
|
112
|
+
"contextKey": "",
|
|
75
113
|
"contextStore": "",
|
|
76
114
|
"top": 1000,
|
|
77
115
|
"sort": "id",
|
|
78
116
|
"fields": "",
|
|
79
117
|
"query": "",
|
|
80
118
|
"maxPages": 0,
|
|
81
|
-
"includePages":
|
|
82
|
-
"
|
|
83
|
-
"
|
|
119
|
+
"includePages": false,
|
|
120
|
+
"retries": 3,
|
|
121
|
+
"retryDelay": 5000,
|
|
122
|
+
"maxRetryDelay": 60000,
|
|
123
|
+
"queueLimit": 100,
|
|
124
|
+
"x": 420,
|
|
125
|
+
"y": 140,
|
|
84
126
|
"wires": [
|
|
85
127
|
[
|
|
86
128
|
"dbg_resp"
|
|
@@ -91,15 +133,13 @@
|
|
|
91
133
|
[
|
|
92
134
|
"dbg_err"
|
|
93
135
|
]
|
|
94
|
-
]
|
|
95
|
-
"creds": "credentials",
|
|
96
|
-
"credsType": "msg"
|
|
136
|
+
]
|
|
97
137
|
},
|
|
98
138
|
{
|
|
99
139
|
"z": "rest_tab",
|
|
100
|
-
"id": "
|
|
140
|
+
"id": "inj_ag",
|
|
101
141
|
"type": "inject",
|
|
102
|
-
"name": "
|
|
142
|
+
"name": "list",
|
|
103
143
|
"props": [
|
|
104
144
|
{
|
|
105
145
|
"p": "payload"
|
|
@@ -110,29 +150,57 @@
|
|
|
110
150
|
"payload": "",
|
|
111
151
|
"payloadType": "date",
|
|
112
152
|
"x": 140,
|
|
113
|
-
"y":
|
|
153
|
+
"y": 220,
|
|
114
154
|
"wires": [
|
|
115
155
|
[
|
|
116
|
-
"
|
|
156
|
+
"n_ag"
|
|
117
157
|
]
|
|
118
158
|
]
|
|
119
159
|
},
|
|
120
160
|
{
|
|
121
161
|
"z": "rest_tab",
|
|
122
|
-
"id": "
|
|
123
|
-
"type": "
|
|
124
|
-
"name": "
|
|
162
|
+
"id": "inj_ag_id",
|
|
163
|
+
"type": "inject",
|
|
164
|
+
"name": "members of 352",
|
|
165
|
+
"props": [
|
|
166
|
+
{
|
|
167
|
+
"p": "payload"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"repeat": "",
|
|
171
|
+
"once": false,
|
|
172
|
+
"payload": "352",
|
|
173
|
+
"payloadType": "str",
|
|
174
|
+
"x": 140,
|
|
175
|
+
"y": 260,
|
|
176
|
+
"wires": [
|
|
177
|
+
[
|
|
178
|
+
"n_ag"
|
|
179
|
+
]
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"z": "rest_tab",
|
|
184
|
+
"id": "n_ag",
|
|
185
|
+
"type": "tdn-rest-access-groups",
|
|
186
|
+
"name": "get access groups",
|
|
125
187
|
"server": "rest_srv",
|
|
126
|
-
"
|
|
188
|
+
"creds": "credentials",
|
|
189
|
+
"credsType": "msg",
|
|
190
|
+
"contextKey": "",
|
|
127
191
|
"contextStore": "",
|
|
128
192
|
"top": 1000,
|
|
129
193
|
"sort": "id",
|
|
130
194
|
"fields": "",
|
|
131
195
|
"query": "",
|
|
132
196
|
"maxPages": 0,
|
|
133
|
-
"includePages":
|
|
134
|
-
"
|
|
135
|
-
"
|
|
197
|
+
"includePages": false,
|
|
198
|
+
"retries": 3,
|
|
199
|
+
"retryDelay": 5000,
|
|
200
|
+
"maxRetryDelay": 60000,
|
|
201
|
+
"queueLimit": 100,
|
|
202
|
+
"x": 420,
|
|
203
|
+
"y": 240,
|
|
136
204
|
"wires": [
|
|
137
205
|
[
|
|
138
206
|
"dbg_resp"
|
|
@@ -143,15 +211,13 @@
|
|
|
143
211
|
[
|
|
144
212
|
"dbg_err"
|
|
145
213
|
]
|
|
146
|
-
]
|
|
147
|
-
"creds": "credentials",
|
|
148
|
-
"credsType": "msg"
|
|
214
|
+
]
|
|
149
215
|
},
|
|
150
216
|
{
|
|
151
217
|
"z": "rest_tab",
|
|
152
218
|
"id": "inj_it",
|
|
153
219
|
"type": "inject",
|
|
154
|
-
"name": "
|
|
220
|
+
"name": "list",
|
|
155
221
|
"props": [
|
|
156
222
|
{
|
|
157
223
|
"p": "payload"
|
|
@@ -162,7 +228,7 @@
|
|
|
162
228
|
"payload": "",
|
|
163
229
|
"payloadType": "date",
|
|
164
230
|
"x": 140,
|
|
165
|
-
"y":
|
|
231
|
+
"y": 320,
|
|
166
232
|
"wires": [
|
|
167
233
|
[
|
|
168
234
|
"n_it"
|
|
@@ -175,16 +241,22 @@
|
|
|
175
241
|
"type": "tdn-rest-items",
|
|
176
242
|
"name": "get items",
|
|
177
243
|
"server": "rest_srv",
|
|
178
|
-
"
|
|
244
|
+
"creds": "credentials",
|
|
245
|
+
"credsType": "msg",
|
|
246
|
+
"contextKey": "",
|
|
179
247
|
"contextStore": "",
|
|
180
248
|
"top": 1000,
|
|
181
249
|
"sort": "id",
|
|
182
250
|
"fields": "",
|
|
183
251
|
"query": "",
|
|
184
252
|
"maxPages": 0,
|
|
185
|
-
"includePages":
|
|
186
|
-
"
|
|
187
|
-
"
|
|
253
|
+
"includePages": false,
|
|
254
|
+
"retries": 3,
|
|
255
|
+
"retryDelay": 5000,
|
|
256
|
+
"maxRetryDelay": 60000,
|
|
257
|
+
"queueLimit": 100,
|
|
258
|
+
"x": 420,
|
|
259
|
+
"y": 320,
|
|
188
260
|
"wires": [
|
|
189
261
|
[
|
|
190
262
|
"dbg_resp"
|
|
@@ -195,9 +267,119 @@
|
|
|
195
267
|
[
|
|
196
268
|
"dbg_err"
|
|
197
269
|
]
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"z": "rest_tab",
|
|
274
|
+
"id": "inj_pd",
|
|
275
|
+
"type": "inject",
|
|
276
|
+
"name": "list",
|
|
277
|
+
"props": [
|
|
278
|
+
{
|
|
279
|
+
"p": "payload"
|
|
280
|
+
}
|
|
198
281
|
],
|
|
282
|
+
"repeat": "",
|
|
283
|
+
"once": false,
|
|
284
|
+
"payload": "",
|
|
285
|
+
"payloadType": "date",
|
|
286
|
+
"x": 140,
|
|
287
|
+
"y": 380,
|
|
288
|
+
"wires": [
|
|
289
|
+
[
|
|
290
|
+
"n_pd"
|
|
291
|
+
]
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"z": "rest_tab",
|
|
296
|
+
"id": "n_pd",
|
|
297
|
+
"type": "tdn-rest-pdfs",
|
|
298
|
+
"name": "get personal data fields",
|
|
299
|
+
"server": "rest_srv",
|
|
199
300
|
"creds": "credentials",
|
|
200
|
-
"credsType": "msg"
|
|
301
|
+
"credsType": "msg",
|
|
302
|
+
"contextKey": "",
|
|
303
|
+
"contextStore": "",
|
|
304
|
+
"top": 1000,
|
|
305
|
+
"sort": "id",
|
|
306
|
+
"fields": "",
|
|
307
|
+
"query": "",
|
|
308
|
+
"maxPages": 0,
|
|
309
|
+
"includePages": false,
|
|
310
|
+
"retries": 3,
|
|
311
|
+
"retryDelay": 5000,
|
|
312
|
+
"maxRetryDelay": 60000,
|
|
313
|
+
"queueLimit": 100,
|
|
314
|
+
"x": 420,
|
|
315
|
+
"y": 380,
|
|
316
|
+
"wires": [
|
|
317
|
+
[
|
|
318
|
+
"dbg_resp"
|
|
319
|
+
],
|
|
320
|
+
[
|
|
321
|
+
"dbg_status"
|
|
322
|
+
],
|
|
323
|
+
[
|
|
324
|
+
"dbg_err"
|
|
325
|
+
]
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"z": "rest_tab",
|
|
330
|
+
"id": "inj_eg",
|
|
331
|
+
"type": "inject",
|
|
332
|
+
"name": "list",
|
|
333
|
+
"props": [
|
|
334
|
+
{
|
|
335
|
+
"p": "payload"
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"repeat": "",
|
|
339
|
+
"once": false,
|
|
340
|
+
"payload": "",
|
|
341
|
+
"payloadType": "date",
|
|
342
|
+
"x": 140,
|
|
343
|
+
"y": 440,
|
|
344
|
+
"wires": [
|
|
345
|
+
[
|
|
346
|
+
"n_eg"
|
|
347
|
+
]
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"z": "rest_tab",
|
|
352
|
+
"id": "n_eg",
|
|
353
|
+
"type": "tdn-rest-event-groups",
|
|
354
|
+
"name": "get event groups",
|
|
355
|
+
"server": "rest_srv",
|
|
356
|
+
"creds": "credentials",
|
|
357
|
+
"credsType": "msg",
|
|
358
|
+
"contextKey": "",
|
|
359
|
+
"contextStore": "",
|
|
360
|
+
"top": 1000,
|
|
361
|
+
"sort": "id",
|
|
362
|
+
"fields": "",
|
|
363
|
+
"query": "",
|
|
364
|
+
"maxPages": 0,
|
|
365
|
+
"includePages": false,
|
|
366
|
+
"retries": 3,
|
|
367
|
+
"retryDelay": 5000,
|
|
368
|
+
"maxRetryDelay": 60000,
|
|
369
|
+
"queueLimit": 100,
|
|
370
|
+
"x": 420,
|
|
371
|
+
"y": 440,
|
|
372
|
+
"wires": [
|
|
373
|
+
[
|
|
374
|
+
"dbg_resp"
|
|
375
|
+
],
|
|
376
|
+
[
|
|
377
|
+
"dbg_status"
|
|
378
|
+
],
|
|
379
|
+
[
|
|
380
|
+
"dbg_err"
|
|
381
|
+
]
|
|
382
|
+
]
|
|
201
383
|
},
|
|
202
384
|
{
|
|
203
385
|
"z": "rest_tab",
|
|
@@ -209,10 +391,12 @@
|
|
|
209
391
|
"p": "payload"
|
|
210
392
|
}
|
|
211
393
|
],
|
|
394
|
+
"repeat": "",
|
|
395
|
+
"once": false,
|
|
212
396
|
"payload": "508,526",
|
|
213
397
|
"payloadType": "str",
|
|
214
|
-
"x":
|
|
215
|
-
"y":
|
|
398
|
+
"x": 140,
|
|
399
|
+
"y": 520,
|
|
216
400
|
"wires": [
|
|
217
401
|
[
|
|
218
402
|
"n_st"
|
|
@@ -229,10 +413,12 @@
|
|
|
229
413
|
"p": "payload"
|
|
230
414
|
}
|
|
231
415
|
],
|
|
416
|
+
"repeat": "",
|
|
417
|
+
"once": false,
|
|
232
418
|
"payload": "stop",
|
|
233
419
|
"payloadType": "str",
|
|
234
|
-
"x":
|
|
235
|
-
"y":
|
|
420
|
+
"x": 140,
|
|
421
|
+
"y": 560,
|
|
236
422
|
"wires": [
|
|
237
423
|
[
|
|
238
424
|
"n_st"
|
|
@@ -245,14 +431,16 @@
|
|
|
245
431
|
"type": "tdn-rest-item-status",
|
|
246
432
|
"name": "door status",
|
|
247
433
|
"server": "rest_srv",
|
|
434
|
+
"creds": "credentials",
|
|
435
|
+
"credsType": "msg",
|
|
248
436
|
"pollDelay": 1000,
|
|
249
437
|
"retryDelay": 5000,
|
|
250
438
|
"maxRetryDelay": 60000,
|
|
251
439
|
"emitTimeouts": false,
|
|
252
440
|
"contextKey": "rest_itemStatus",
|
|
253
441
|
"contextStore": "",
|
|
254
|
-
"x":
|
|
255
|
-
"y":
|
|
442
|
+
"x": 420,
|
|
443
|
+
"y": 540,
|
|
256
444
|
"wires": [
|
|
257
445
|
[
|
|
258
446
|
"dbg_upd"
|
|
@@ -263,9 +451,95 @@
|
|
|
263
451
|
[
|
|
264
452
|
"dbg_err"
|
|
265
453
|
]
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"z": "rest_tab",
|
|
458
|
+
"id": "inj_ev",
|
|
459
|
+
"type": "inject",
|
|
460
|
+
"name": "start",
|
|
461
|
+
"props": [
|
|
462
|
+
{
|
|
463
|
+
"p": "payload"
|
|
464
|
+
}
|
|
465
|
+
],
|
|
466
|
+
"repeat": "",
|
|
467
|
+
"once": false,
|
|
468
|
+
"payload": "",
|
|
469
|
+
"payloadType": "date",
|
|
470
|
+
"x": 140,
|
|
471
|
+
"y": 620,
|
|
472
|
+
"wires": [
|
|
473
|
+
[
|
|
474
|
+
"n_ev"
|
|
475
|
+
]
|
|
476
|
+
]
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"z": "rest_tab",
|
|
480
|
+
"id": "inj_ev_stop",
|
|
481
|
+
"type": "inject",
|
|
482
|
+
"name": "stop",
|
|
483
|
+
"props": [
|
|
484
|
+
{
|
|
485
|
+
"p": "payload"
|
|
486
|
+
}
|
|
266
487
|
],
|
|
488
|
+
"repeat": "",
|
|
489
|
+
"once": false,
|
|
490
|
+
"payload": "stop",
|
|
491
|
+
"payloadType": "str",
|
|
492
|
+
"x": 140,
|
|
493
|
+
"y": 660,
|
|
494
|
+
"wires": [
|
|
495
|
+
[
|
|
496
|
+
"n_ev"
|
|
497
|
+
]
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"z": "rest_tab",
|
|
502
|
+
"id": "n_ev",
|
|
503
|
+
"type": "tdn-rest-events",
|
|
504
|
+
"name": "event updates",
|
|
505
|
+
"server": "rest_srv",
|
|
267
506
|
"creds": "credentials",
|
|
268
|
-
"credsType": "msg"
|
|
507
|
+
"credsType": "msg",
|
|
508
|
+
"query": "",
|
|
509
|
+
"autoStart": false,
|
|
510
|
+
"pollDelay": 0,
|
|
511
|
+
"retryDelay": 5000,
|
|
512
|
+
"maxRetryDelay": 60000,
|
|
513
|
+
"emitTimeouts": false,
|
|
514
|
+
"contextKey": "rest_events",
|
|
515
|
+
"keepEvents": 100,
|
|
516
|
+
"contextStore": "",
|
|
517
|
+
"x": 420,
|
|
518
|
+
"y": 640,
|
|
519
|
+
"wires": [
|
|
520
|
+
[
|
|
521
|
+
"dbg_ev"
|
|
522
|
+
],
|
|
523
|
+
[
|
|
524
|
+
"dbg_status"
|
|
525
|
+
],
|
|
526
|
+
[
|
|
527
|
+
"dbg_err"
|
|
528
|
+
]
|
|
529
|
+
]
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"z": "rest_tab",
|
|
533
|
+
"id": "dbg_resp",
|
|
534
|
+
"type": "debug",
|
|
535
|
+
"name": "responses",
|
|
536
|
+
"active": true,
|
|
537
|
+
"tosidebar": true,
|
|
538
|
+
"complete": "payload",
|
|
539
|
+
"targetType": "msg",
|
|
540
|
+
"x": 760,
|
|
541
|
+
"y": 140,
|
|
542
|
+
"wires": []
|
|
269
543
|
},
|
|
270
544
|
{
|
|
271
545
|
"z": "rest_tab",
|
|
@@ -277,15 +551,56 @@
|
|
|
277
551
|
"complete": "updates",
|
|
278
552
|
"targetType": "msg",
|
|
279
553
|
"x": 760,
|
|
280
|
-
"y":
|
|
554
|
+
"y": 520,
|
|
555
|
+
"wires": []
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"z": "rest_tab",
|
|
559
|
+
"id": "dbg_ev",
|
|
560
|
+
"type": "debug",
|
|
561
|
+
"name": "events",
|
|
562
|
+
"active": true,
|
|
563
|
+
"tosidebar": true,
|
|
564
|
+
"complete": "events",
|
|
565
|
+
"targetType": "msg",
|
|
566
|
+
"x": 760,
|
|
567
|
+
"y": 620,
|
|
568
|
+
"wires": []
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"z": "rest_tab",
|
|
572
|
+
"id": "dbg_status",
|
|
573
|
+
"type": "debug",
|
|
574
|
+
"name": "status (all nodes)",
|
|
575
|
+
"active": true,
|
|
576
|
+
"tosidebar": true,
|
|
577
|
+
"complete": "payload",
|
|
578
|
+
"targetType": "msg",
|
|
579
|
+
"x": 760,
|
|
580
|
+
"y": 300,
|
|
581
|
+
"wires": []
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"z": "rest_tab",
|
|
585
|
+
"id": "dbg_err",
|
|
586
|
+
"type": "debug",
|
|
587
|
+
"name": "errors (all nodes)",
|
|
588
|
+
"active": true,
|
|
589
|
+
"tosidebar": true,
|
|
590
|
+
"complete": "payload",
|
|
591
|
+
"targetType": "msg",
|
|
592
|
+
"x": 760,
|
|
593
|
+
"y": 360,
|
|
281
594
|
"wires": []
|
|
282
595
|
},
|
|
283
596
|
{
|
|
284
597
|
"id": "rest_srv",
|
|
285
598
|
"type": "tdn-rest-server",
|
|
286
599
|
"name": "REST Server",
|
|
600
|
+
"serverKey": "rest_server",
|
|
287
601
|
"url": "192.168.1.10",
|
|
288
602
|
"port": 8904,
|
|
603
|
+
"basePath": "/api",
|
|
289
604
|
"authType": "authorization",
|
|
290
605
|
"authScheme": "",
|
|
291
606
|
"headerName": "X-API-Key",
|