@gregoriusrippenstein/node-red-contrib-introspection 0.4.5 → 0.5.1

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.
@@ -7,15 +7,6 @@
7
7
  "info": "",
8
8
  "env": []
9
9
  },
10
- {
11
- "id": "97790509b555e06a",
12
- "type": "DrawSVG",
13
- "z": "214f1986d70db2a6",
14
- "name": "",
15
- "x": 488,
16
- "y": 997,
17
- "wires": []
18
- },
19
10
  {
20
11
  "id": "be970616115487ae",
21
12
  "type": "http request",
@@ -24,7 +15,7 @@
24
15
  "method": "GET",
25
16
  "ret": "txt",
26
17
  "paytoqs": "ignore",
27
- "url": "https://demo.openmindmap.org/content/open_mind.svg",
18
+ "url": "https://cdn.openmindmap.org/content/open_mind.svg",
28
19
  "tls": "",
29
20
  "persist": false,
30
21
  "proxy": "",
@@ -32,11 +23,11 @@
32
23
  "authType": "",
33
24
  "senderr": false,
34
25
  "headers": [],
35
- "x": 347,
36
- "y": 923,
26
+ "x": 367,
27
+ "y": 932,
37
28
  "wires": [
38
29
  [
39
- "97790509b555e06a"
30
+ "1eb4bf477ee7ccf6"
40
31
  ]
41
32
  ]
42
33
  },
@@ -68,5 +59,18 @@
68
59
  "be970616115487ae"
69
60
  ]
70
61
  ]
62
+ },
63
+ {
64
+ "id": "1eb4bf477ee7ccf6",
65
+ "type": "ClientCode",
66
+ "z": "214f1986d70db2a6",
67
+ "name": "",
68
+ "clientcode": "var version = RED.settings.version.split(\".\");\n\nconsole.log( _msg.payload )\n\nif (version[0] == \"3\" && version[1] == \"0\") {\n $($($('svg')[0]).find('> g > g > g')[2]).append(\n _msg.payload\n );\n}\n\nif (version[0] == \"3\" && version[1] == \"1\") {\n $($($('svg[width=8000]')[0]).find('> g > g > g')[2]).append(\n _msg.payload\n );\n}",
69
+ "format": "javascript",
70
+ "x": 531,
71
+ "y": 1015,
72
+ "wires": [
73
+ []
74
+ ]
71
75
  }
72
- ]
76
+ ]
@@ -1,76 +1,516 @@
1
1
  [
2
2
  {
3
- "id": "7185cd493586e55a",
4
- "type": "inject",
5
- "z": "6bab6804614c2612",
3
+ "id": "c0bd9dd2d55e41ac",
4
+ "type": "group",
5
+ "z": "0b1bfbf6e540be66",
6
+ "name": "basic usage",
7
+ "style": {
8
+ "label": true
9
+ },
10
+ "nodes": [
11
+ "8b84f7f866c48532",
12
+ "db4d722d40dcaa8b",
13
+ "b984213932b55c95"
14
+ ],
15
+ "x": 196,
16
+ "y": 79,
17
+ "w": 702,
18
+ "h": 149
19
+ },
20
+ {
21
+ "id": "8b84f7f866c48532",
22
+ "type": "GetFlows",
23
+ "z": "0b1bfbf6e540be66",
24
+ "g": "c0bd9dd2d55e41ac",
6
25
  "name": "",
7
- "props": [
26
+ "flowVersion": "v1",
27
+ "useAuthentication": false,
28
+ "apiUsername": "",
29
+ "apiUsernameType": "env",
30
+ "apiPassword": "",
31
+ "apiPasswordType": "env",
32
+ "x": 513,
33
+ "y": 187,
34
+ "wires": [
35
+ [
36
+ "b984213932b55c95"
37
+ ]
38
+ ]
39
+ },
40
+ {
41
+ "id": "db4d722d40dcaa8b",
42
+ "type": "inject",
43
+ "z": "0b1bfbf6e540be66",
44
+ "g": "c0bd9dd2d55e41ac",
45
+ "name": "trigger",
46
+ "props": [],
47
+ "repeat": "",
48
+ "crontab": "",
49
+ "once": false,
50
+ "onceDelay": 0.1,
51
+ "topic": "",
52
+ "x": 292,
53
+ "y": 120,
54
+ "wires": [
55
+ [
56
+ "8b84f7f866c48532"
57
+ ]
58
+ ]
59
+ },
60
+ {
61
+ "id": "b984213932b55c95",
62
+ "type": "debug",
63
+ "z": "0b1bfbf6e540be66",
64
+ "g": "c0bd9dd2d55e41ac",
65
+ "name": "debug 40",
66
+ "active": true,
67
+ "tosidebar": true,
68
+ "console": false,
69
+ "tostatus": false,
70
+ "complete": "false",
71
+ "statusVal": "",
72
+ "statusType": "auto",
73
+ "x": 792,
74
+ "y": 187,
75
+ "wires": []
76
+ },
77
+ {
78
+ "id": "e72cbb5c6dcc75be",
79
+ "type": "group",
80
+ "z": "0b1bfbf6e540be66",
81
+ "name": "Backup flow",
82
+ "style": {
83
+ "label": true
84
+ },
85
+ "nodes": [
86
+ "394ed3490fddc914",
87
+ "2489efac7f075c1f",
88
+ "78093def4cb38dfa",
89
+ "0b57e926350b9c34",
90
+ "029ac133e20bb374",
91
+ "1c0a11ad9ff50aa5",
92
+ "c619f252f806865a",
93
+ "5189ba04ae064278"
94
+ ],
95
+ "x": 198,
96
+ "y": 273,
97
+ "w": 1165,
98
+ "h": 279
99
+ },
100
+ {
101
+ "id": "394ed3490fddc914",
102
+ "type": "cronplus",
103
+ "z": "0b1bfbf6e540be66",
104
+ "g": "e72cbb5c6dcc75be",
105
+ "name": "Every 4 hours",
106
+ "outputField": "payload",
107
+ "timeZone": "",
108
+ "storeName": "",
109
+ "commandResponseMsgOutput": "output1",
110
+ "defaultLocation": "",
111
+ "defaultLocationType": "default",
112
+ "outputs": 1,
113
+ "options": [
8
114
  {
9
- "p": "payload"
10
- },
115
+ "name": "schedule1",
116
+ "topic": "topic1",
117
+ "payloadType": "default",
118
+ "payload": "",
119
+ "expressionType": "cron",
120
+ "expression": "0 * */4 * * * *",
121
+ "location": "",
122
+ "offset": "0",
123
+ "solarType": "all",
124
+ "solarEvents": "sunrise,sunset"
125
+ }
126
+ ],
127
+ "x": 324,
128
+ "y": 386,
129
+ "wires": [
130
+ [
131
+ "2489efac7f075c1f"
132
+ ]
133
+ ]
134
+ },
135
+ {
136
+ "id": "2489efac7f075c1f",
137
+ "type": "GetFlows",
138
+ "z": "0b1bfbf6e540be66",
139
+ "g": "e72cbb5c6dcc75be",
140
+ "name": "",
141
+ "flowVersion": "v1",
142
+ "useAuthentication": false,
143
+ "apiUsername": "",
144
+ "apiUsernameType": "env",
145
+ "apiPassword": "",
146
+ "apiPasswordType": "env",
147
+ "x": 569,
148
+ "y": 386,
149
+ "wires": [
150
+ [
151
+ "0b57e926350b9c34"
152
+ ]
153
+ ]
154
+ },
155
+ {
156
+ "id": "78093def4cb38dfa",
157
+ "type": "zip",
158
+ "z": "0b1bfbf6e540be66",
159
+ "g": "e72cbb5c6dcc75be",
160
+ "name": "",
161
+ "mode": "compress",
162
+ "filename": "",
163
+ "compressionlevel": "9",
164
+ "outasstring": false,
165
+ "x": 880,
166
+ "y": 387,
167
+ "wires": [
168
+ [
169
+ "1c0a11ad9ff50aa5",
170
+ "c619f252f806865a"
171
+ ]
172
+ ]
173
+ },
174
+ {
175
+ "id": "0b57e926350b9c34",
176
+ "type": "change",
177
+ "z": "0b1bfbf6e540be66",
178
+ "g": "e72cbb5c6dcc75be",
179
+ "name": "",
180
+ "rules": [
11
181
  {
12
- "p": "topic",
13
- "vt": "str"
182
+ "t": "set",
183
+ "p": "filename",
184
+ "pt": "msg",
185
+ "to": "flows.json",
186
+ "tot": "str"
14
187
  }
15
188
  ],
189
+ "action": "",
190
+ "property": "",
191
+ "from": "",
192
+ "to": "",
193
+ "reg": false,
194
+ "x": 697,
195
+ "y": 491,
196
+ "wires": [
197
+ [
198
+ "78093def4cb38dfa"
199
+ ]
200
+ ]
201
+ },
202
+ {
203
+ "id": "029ac133e20bb374",
204
+ "type": "debug",
205
+ "z": "0b1bfbf6e540be66",
206
+ "g": "e72cbb5c6dcc75be",
207
+ "name": "debug 41",
208
+ "active": true,
209
+ "tosidebar": true,
210
+ "console": false,
211
+ "tostatus": false,
212
+ "complete": "true",
213
+ "targetType": "full",
214
+ "statusVal": "",
215
+ "statusType": "auto",
216
+ "x": 1257,
217
+ "y": 511,
218
+ "wires": []
219
+ },
220
+ {
221
+ "id": "1c0a11ad9ff50aa5",
222
+ "type": "function",
223
+ "z": "0b1bfbf6e540be66",
224
+ "g": "e72cbb5c6dcc75be",
225
+ "name": "send email",
226
+ "func": "/* placeholder function */\n\nreturn msg;",
227
+ "outputs": 1,
228
+ "timeout": 0,
229
+ "noerr": 0,
230
+ "initialize": "",
231
+ "finalize": "",
232
+ "libs": [],
233
+ "x": 1103,
234
+ "y": 314,
235
+ "wires": [
236
+ []
237
+ ]
238
+ },
239
+ {
240
+ "id": "c619f252f806865a",
241
+ "type": "zip",
242
+ "z": "0b1bfbf6e540be66",
243
+ "g": "e72cbb5c6dcc75be",
244
+ "name": "",
245
+ "mode": "decompress",
246
+ "filename": "",
247
+ "compressionlevel": "9",
248
+ "outasstring": true,
249
+ "x": 1020,
250
+ "y": 511,
251
+ "wires": [
252
+ [
253
+ "029ac133e20bb374",
254
+ "5189ba04ae064278"
255
+ ]
256
+ ]
257
+ },
258
+ {
259
+ "id": "5189ba04ae064278",
260
+ "type": "http request",
261
+ "z": "0b1bfbf6e540be66",
262
+ "g": "e72cbb5c6dcc75be",
263
+ "name": "backup server",
264
+ "method": "POST",
265
+ "ret": "txt",
266
+ "paytoqs": "ignore",
267
+ "url": "http://localhost:1880/_backup/_server",
268
+ "tls": "",
269
+ "persist": false,
270
+ "proxy": "",
271
+ "insecureHTTPParser": false,
272
+ "authType": "",
273
+ "senderr": false,
274
+ "headers": [],
275
+ "x": 1241,
276
+ "y": 409,
277
+ "wires": [
278
+ []
279
+ ]
280
+ },
281
+ {
282
+ "id": "8f847dc12c15c2de",
283
+ "type": "group",
284
+ "z": "0b1bfbf6e540be66",
285
+ "name": "find all nodes on this flow",
286
+ "style": {
287
+ "label": true
288
+ },
289
+ "nodes": [
290
+ "4d67f57277011dce",
291
+ "31e1dded3c20487b",
292
+ "f1a40ab0d0a1343e",
293
+ "2bc6587fdbbe2cbc",
294
+ "d89ccf54e06f6400"
295
+ ],
296
+ "x": 192,
297
+ "y": 833,
298
+ "w": 1043,
299
+ "h": 158
300
+ },
301
+ {
302
+ "id": "4d67f57277011dce",
303
+ "type": "GetFlows",
304
+ "z": "0b1bfbf6e540be66",
305
+ "g": "8f847dc12c15c2de",
306
+ "name": "",
307
+ "flowVersion": "v1",
308
+ "useAuthentication": false,
309
+ "apiUsername": "",
310
+ "apiUsernameType": "env",
311
+ "apiPassword": "",
312
+ "apiPasswordType": "env",
313
+ "x": 484,
314
+ "y": 875,
315
+ "wires": [
316
+ [
317
+ "f1a40ab0d0a1343e"
318
+ ]
319
+ ]
320
+ },
321
+ {
322
+ "id": "31e1dded3c20487b",
323
+ "type": "inject",
324
+ "z": "0b1bfbf6e540be66",
325
+ "g": "8f847dc12c15c2de",
326
+ "name": "trigger",
327
+ "props": [],
16
328
  "repeat": "",
17
329
  "crontab": "",
18
330
  "once": false,
19
331
  "onceDelay": 0.1,
20
332
  "topic": "",
21
- "payload": "",
22
- "payloadType": "date",
23
- "x": 542,
24
- "y": 156,
333
+ "x": 288,
334
+ "y": 909,
25
335
  "wires": [
26
336
  [
27
- "6af8626dd463e3bb"
337
+ "4d67f57277011dce"
28
338
  ]
29
339
  ]
30
340
  },
31
341
  {
32
- "id": "7c18a75ca7a625eb",
342
+ "id": "f1a40ab0d0a1343e",
343
+ "type": "json",
344
+ "z": "0b1bfbf6e540be66",
345
+ "g": "8f847dc12c15c2de",
346
+ "name": "",
347
+ "property": "payload",
348
+ "action": "",
349
+ "pretty": false,
350
+ "x": 637,
351
+ "y": 950,
352
+ "wires": [
353
+ [
354
+ "2bc6587fdbbe2cbc"
355
+ ]
356
+ ]
357
+ },
358
+ {
359
+ "id": "2bc6587fdbbe2cbc",
360
+ "type": "function",
361
+ "z": "0b1bfbf6e540be66",
362
+ "g": "8f847dc12c15c2de",
363
+ "name": "only nodes from this flow tab",
364
+ "func": "msg.flid = msg.flid || path.dirname(node.path);\n\nmsg.payload = msg.payload.filter(function (obj) {\n return (obj.id == msg.flid || obj.z == msg.flid )\n});\n\nvar flow_node = msg.payload.filter( (obj) => {\n return obj.id == msg.flid \n})[0];\n\nmsg.payload = msg.payload.map((nde) => {\n return {\n flow: flow_node.name || flow_node.label,\n name: nde.name || nde.label,\n type: nde.type,\n id: nde.id\n }\n})\n\nreturn msg;",
365
+ "outputs": 1,
366
+ "timeout": "",
367
+ "noerr": 0,
368
+ "initialize": "",
369
+ "finalize": "",
370
+ "libs": [
371
+ {
372
+ "var": "path",
373
+ "module": "path"
374
+ }
375
+ ],
376
+ "x": 856,
377
+ "y": 874,
378
+ "wires": [
379
+ [
380
+ "d89ccf54e06f6400"
381
+ ]
382
+ ]
383
+ },
384
+ {
385
+ "id": "d89ccf54e06f6400",
33
386
  "type": "debug",
34
- "z": "6bab6804614c2612",
35
- "name": "debug 3",
387
+ "z": "0b1bfbf6e540be66",
388
+ "g": "8f847dc12c15c2de",
389
+ "name": "debug 42",
36
390
  "active": true,
37
391
  "tosidebar": true,
38
392
  "console": false,
39
393
  "tostatus": false,
40
- "complete": "false",
394
+ "complete": "true",
395
+ "targetType": "full",
41
396
  "statusVal": "",
42
397
  "statusType": "auto",
43
- "x": 955,
44
- "y": 367,
398
+ "x": 1129,
399
+ "y": 874,
45
400
  "wires": []
46
401
  },
47
402
  {
48
- "id": "6af8626dd463e3bb",
49
- "type": "GetFlows",
50
- "z": "6bab6804614c2612",
403
+ "id": "263cdabcbbbd5045",
404
+ "type": "group",
405
+ "z": "0b1bfbf6e540be66",
406
+ "name": "backup server endpoint",
407
+ "style": {
408
+ "label": true
409
+ },
410
+ "nodes": [
411
+ "8d3a631088e1f1aa",
412
+ "b1cba365a93417cd",
413
+ "14dff9849fab824a",
414
+ "29098d2d0630671c",
415
+ "3cf3bc72e145a3a5"
416
+ ],
417
+ "x": 197,
418
+ "y": 621,
419
+ "w": 910,
420
+ "h": 174
421
+ },
422
+ {
423
+ "id": "8d3a631088e1f1aa",
424
+ "type": "http in",
425
+ "z": "0b1bfbf6e540be66",
426
+ "g": "263cdabcbbbd5045",
427
+ "name": "",
428
+ "url": "/_backup/_server",
429
+ "method": "post",
430
+ "upload": false,
431
+ "swaggerDoc": "",
432
+ "x": 323,
433
+ "y": 718,
434
+ "wires": [
435
+ [
436
+ "b1cba365a93417cd",
437
+ "14dff9849fab824a"
438
+ ]
439
+ ]
440
+ },
441
+ {
442
+ "id": "b1cba365a93417cd",
443
+ "type": "http response",
444
+ "z": "0b1bfbf6e540be66",
445
+ "g": "263cdabcbbbd5045",
446
+ "name": "",
447
+ "statusCode": "200",
448
+ "headers": {},
449
+ "x": 600,
450
+ "y": 662,
451
+ "wires": []
452
+ },
453
+ {
454
+ "id": "14dff9849fab824a",
455
+ "type": "change",
456
+ "z": "0b1bfbf6e540be66",
457
+ "g": "263cdabcbbbd5045",
51
458
  "name": "",
52
- "x": 672,
53
- "y": 222,
459
+ "rules": [
460
+ {
461
+ "t": "set",
462
+ "p": "payload",
463
+ "pt": "msg",
464
+ "to": "payload[0].payload",
465
+ "tot": "msg"
466
+ }
467
+ ],
468
+ "action": "",
469
+ "property": "",
470
+ "from": "",
471
+ "to": "",
472
+ "reg": false,
473
+ "x": 566,
474
+ "y": 754,
54
475
  "wires": [
55
476
  [
56
- "a84edc1bacf03204"
477
+ "29098d2d0630671c"
57
478
  ]
58
479
  ]
59
480
  },
60
481
  {
61
- "id": "a84edc1bacf03204",
482
+ "id": "29098d2d0630671c",
62
483
  "type": "json",
63
- "z": "6bab6804614c2612",
484
+ "z": "0b1bfbf6e540be66",
485
+ "g": "263cdabcbbbd5045",
64
486
  "name": "",
65
487
  "property": "payload",
66
488
  "action": "",
67
489
  "pretty": false,
68
- "x": 797,
69
- "y": 292,
490
+ "x": 793,
491
+ "y": 725,
70
492
  "wires": [
71
493
  [
72
- "7c18a75ca7a625eb"
494
+ "3cf3bc72e145a3a5"
73
495
  ]
74
496
  ]
497
+ },
498
+ {
499
+ "id": "3cf3bc72e145a3a5",
500
+ "type": "debug",
501
+ "z": "0b1bfbf6e540be66",
502
+ "g": "263cdabcbbbd5045",
503
+ "name": "debug 43",
504
+ "active": true,
505
+ "tosidebar": true,
506
+ "console": false,
507
+ "tostatus": false,
508
+ "complete": "true",
509
+ "targetType": "full",
510
+ "statusVal": "",
511
+ "statusType": "auto",
512
+ "x": 1001,
513
+ "y": 665,
514
+ "wires": []
75
515
  }
76
- ]
516
+ ]