@mschaeffler/node-red-logic 2.3.1 → 2.3.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 +1 -0
- package/examples/bool.json +79 -26
- package/examples/bool.png +0 -0
- package/examples/math.json +80 -28
- package/examples/math.png +0 -0
- package/examples/statistics.json +61 -12
- package/examples/statistics.png +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/examples/bool.json
CHANGED
|
@@ -2,11 +2,38 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "874e3c59e7510080",
|
|
4
4
|
"type": "tab",
|
|
5
|
-
"label": "
|
|
5
|
+
"label": "boolean flow",
|
|
6
6
|
"disabled": false,
|
|
7
7
|
"info": "",
|
|
8
8
|
"env": []
|
|
9
9
|
},
|
|
10
|
+
{
|
|
11
|
+
"id": "3319084cf1aed1a2",
|
|
12
|
+
"type": "junction",
|
|
13
|
+
"z": "874e3c59e7510080",
|
|
14
|
+
"x": 260,
|
|
15
|
+
"y": 120,
|
|
16
|
+
"wires": [
|
|
17
|
+
[
|
|
18
|
+
"3638e932e6cd704e",
|
|
19
|
+
"9b0ce6b2f677fd0c",
|
|
20
|
+
"ebe75a205d692b15"
|
|
21
|
+
]
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "ebe75a205d692b15",
|
|
26
|
+
"type": "junction",
|
|
27
|
+
"z": "874e3c59e7510080",
|
|
28
|
+
"x": 280,
|
|
29
|
+
"y": 240,
|
|
30
|
+
"wires": [
|
|
31
|
+
[
|
|
32
|
+
"7d8ce3c91fad2f4c",
|
|
33
|
+
"59a5371d04a4ad46"
|
|
34
|
+
]
|
|
35
|
+
]
|
|
36
|
+
},
|
|
10
37
|
{
|
|
11
38
|
"id": "3638e932e6cd704e",
|
|
12
39
|
"type": "tobool",
|
|
@@ -14,8 +41,8 @@
|
|
|
14
41
|
"name": "",
|
|
15
42
|
"property": "payload",
|
|
16
43
|
"showState": false,
|
|
17
|
-
"x":
|
|
18
|
-
"y":
|
|
44
|
+
"x": 370,
|
|
45
|
+
"y": 140,
|
|
19
46
|
"wires": [
|
|
20
47
|
[
|
|
21
48
|
"59187eb10a59d119"
|
|
@@ -30,8 +57,8 @@
|
|
|
30
57
|
"topic": "",
|
|
31
58
|
"property": "payload",
|
|
32
59
|
"minData": "1",
|
|
33
|
-
"x":
|
|
34
|
-
"y":
|
|
60
|
+
"x": 370,
|
|
61
|
+
"y": 220,
|
|
35
62
|
"wires": [
|
|
36
63
|
[
|
|
37
64
|
"c9d4c13317184fd5"
|
|
@@ -46,8 +73,8 @@
|
|
|
46
73
|
"topic": "",
|
|
47
74
|
"property": "payload",
|
|
48
75
|
"minData": "1",
|
|
49
|
-
"x":
|
|
50
|
-
"y":
|
|
76
|
+
"x": 370,
|
|
77
|
+
"y": 260,
|
|
51
78
|
"wires": [
|
|
52
79
|
[
|
|
53
80
|
"1b5361bc5d9fa406"
|
|
@@ -67,8 +94,8 @@
|
|
|
67
94
|
"targetType": "msg",
|
|
68
95
|
"statusVal": "payload",
|
|
69
96
|
"statusType": "auto",
|
|
70
|
-
"x":
|
|
71
|
-
"y":
|
|
97
|
+
"x": 550,
|
|
98
|
+
"y": 140,
|
|
72
99
|
"wires": []
|
|
73
100
|
},
|
|
74
101
|
{
|
|
@@ -96,8 +123,7 @@
|
|
|
96
123
|
"y": 320,
|
|
97
124
|
"wires": [
|
|
98
125
|
[
|
|
99
|
-
"
|
|
100
|
-
"7d8ce3c91fad2f4c"
|
|
126
|
+
"ebe75a205d692b15"
|
|
101
127
|
]
|
|
102
128
|
]
|
|
103
129
|
},
|
|
@@ -126,7 +152,7 @@
|
|
|
126
152
|
"y": 80,
|
|
127
153
|
"wires": [
|
|
128
154
|
[
|
|
129
|
-
"
|
|
155
|
+
"3319084cf1aed1a2"
|
|
130
156
|
]
|
|
131
157
|
]
|
|
132
158
|
},
|
|
@@ -155,9 +181,7 @@
|
|
|
155
181
|
"y": 120,
|
|
156
182
|
"wires": [
|
|
157
183
|
[
|
|
158
|
-
"
|
|
159
|
-
"7d8ce3c91fad2f4c",
|
|
160
|
-
"59a5371d04a4ad46"
|
|
184
|
+
"3319084cf1aed1a2"
|
|
161
185
|
]
|
|
162
186
|
]
|
|
163
187
|
},
|
|
@@ -186,9 +210,7 @@
|
|
|
186
210
|
"y": 160,
|
|
187
211
|
"wires": [
|
|
188
212
|
[
|
|
189
|
-
"
|
|
190
|
-
"7d8ce3c91fad2f4c",
|
|
191
|
-
"59a5371d04a4ad46"
|
|
213
|
+
"3319084cf1aed1a2"
|
|
192
214
|
]
|
|
193
215
|
]
|
|
194
216
|
},
|
|
@@ -205,8 +227,8 @@
|
|
|
205
227
|
"targetType": "msg",
|
|
206
228
|
"statusVal": "payload",
|
|
207
229
|
"statusType": "auto",
|
|
208
|
-
"x":
|
|
209
|
-
"y":
|
|
230
|
+
"x": 550,
|
|
231
|
+
"y": 220,
|
|
210
232
|
"wires": []
|
|
211
233
|
},
|
|
212
234
|
{
|
|
@@ -222,8 +244,8 @@
|
|
|
222
244
|
"targetType": "msg",
|
|
223
245
|
"statusVal": "payload",
|
|
224
246
|
"statusType": "auto",
|
|
225
|
-
"x":
|
|
226
|
-
"y":
|
|
247
|
+
"x": 550,
|
|
248
|
+
"y": 260,
|
|
227
249
|
"wires": []
|
|
228
250
|
},
|
|
229
251
|
{
|
|
@@ -251,8 +273,7 @@
|
|
|
251
273
|
"y": 260,
|
|
252
274
|
"wires": [
|
|
253
275
|
[
|
|
254
|
-
"
|
|
255
|
-
"7d8ce3c91fad2f4c"
|
|
276
|
+
"ebe75a205d692b15"
|
|
256
277
|
]
|
|
257
278
|
]
|
|
258
279
|
},
|
|
@@ -281,9 +302,41 @@
|
|
|
281
302
|
"y": 220,
|
|
282
303
|
"wires": [
|
|
283
304
|
[
|
|
284
|
-
"
|
|
285
|
-
"59a5371d04a4ad46"
|
|
305
|
+
"ebe75a205d692b15"
|
|
286
306
|
]
|
|
287
307
|
]
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"id": "9b0ce6b2f677fd0c",
|
|
311
|
+
"type": "not",
|
|
312
|
+
"z": "874e3c59e7510080",
|
|
313
|
+
"name": "",
|
|
314
|
+
"property": "payload",
|
|
315
|
+
"showState": false,
|
|
316
|
+
"filter": false,
|
|
317
|
+
"x": 370,
|
|
318
|
+
"y": 100,
|
|
319
|
+
"wires": [
|
|
320
|
+
[
|
|
321
|
+
"30f2426c23193783"
|
|
322
|
+
]
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"id": "30f2426c23193783",
|
|
327
|
+
"type": "debug",
|
|
328
|
+
"z": "874e3c59e7510080",
|
|
329
|
+
"name": "",
|
|
330
|
+
"active": true,
|
|
331
|
+
"tosidebar": true,
|
|
332
|
+
"console": false,
|
|
333
|
+
"tostatus": false,
|
|
334
|
+
"complete": "payload",
|
|
335
|
+
"targetType": "msg",
|
|
336
|
+
"statusVal": "",
|
|
337
|
+
"statusType": "auto",
|
|
338
|
+
"x": 550,
|
|
339
|
+
"y": 100,
|
|
340
|
+
"wires": []
|
|
288
341
|
}
|
|
289
342
|
]
|
package/examples/bool.png
CHANGED
|
Binary file
|
package/examples/math.json
CHANGED
|
@@ -2,11 +2,38 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "e7a1598e6f6358b9",
|
|
4
4
|
"type": "tab",
|
|
5
|
-
"label": "
|
|
5
|
+
"label": "math flow",
|
|
6
6
|
"disabled": false,
|
|
7
7
|
"info": "",
|
|
8
8
|
"env": []
|
|
9
9
|
},
|
|
10
|
+
{
|
|
11
|
+
"id": "abfd3bd5f2b524a9",
|
|
12
|
+
"type": "junction",
|
|
13
|
+
"z": "e7a1598e6f6358b9",
|
|
14
|
+
"x": 300,
|
|
15
|
+
"y": 180,
|
|
16
|
+
"wires": [
|
|
17
|
+
[
|
|
18
|
+
"244e769e05d8b030",
|
|
19
|
+
"43298eb40b87f0ac",
|
|
20
|
+
"7be607a719dad008"
|
|
21
|
+
]
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "7be607a719dad008",
|
|
26
|
+
"type": "junction",
|
|
27
|
+
"z": "e7a1598e6f6358b9",
|
|
28
|
+
"x": 320,
|
|
29
|
+
"y": 300,
|
|
30
|
+
"wires": [
|
|
31
|
+
[
|
|
32
|
+
"3c37bb4e8785f015",
|
|
33
|
+
"b387e894bd2d43ef"
|
|
34
|
+
]
|
|
35
|
+
]
|
|
36
|
+
},
|
|
10
37
|
{
|
|
11
38
|
"id": "b387e894bd2d43ef",
|
|
12
39
|
"type": "reduce",
|
|
@@ -18,8 +45,8 @@
|
|
|
18
45
|
"maxMean": "1",
|
|
19
46
|
"minData": "2",
|
|
20
47
|
"algo": "add",
|
|
21
|
-
"x":
|
|
22
|
-
"y":
|
|
48
|
+
"x": 430,
|
|
49
|
+
"y": 280,
|
|
23
50
|
"wires": [
|
|
24
51
|
[
|
|
25
52
|
"ae068d25a90dae25"
|
|
@@ -31,7 +58,7 @@
|
|
|
31
58
|
"type": "counter",
|
|
32
59
|
"z": "e7a1598e6f6358b9",
|
|
33
60
|
"name": "",
|
|
34
|
-
"x":
|
|
61
|
+
"x": 440,
|
|
35
62
|
"y": 120,
|
|
36
63
|
"wires": [
|
|
37
64
|
[
|
|
@@ -46,7 +73,7 @@
|
|
|
46
73
|
"name": "",
|
|
47
74
|
"property": "payload",
|
|
48
75
|
"showState": true,
|
|
49
|
-
"x":
|
|
76
|
+
"x": 450,
|
|
50
77
|
"y": 200,
|
|
51
78
|
"wires": [
|
|
52
79
|
[
|
|
@@ -67,7 +94,7 @@
|
|
|
67
94
|
"targetType": "msg",
|
|
68
95
|
"statusVal": "payload",
|
|
69
96
|
"statusType": "auto",
|
|
70
|
-
"x":
|
|
97
|
+
"x": 630,
|
|
71
98
|
"y": 120,
|
|
72
99
|
"wires": []
|
|
73
100
|
},
|
|
@@ -84,7 +111,7 @@
|
|
|
84
111
|
"targetType": "msg",
|
|
85
112
|
"statusVal": "payload",
|
|
86
113
|
"statusType": "auto",
|
|
87
|
-
"x":
|
|
114
|
+
"x": 630,
|
|
88
115
|
"y": 200,
|
|
89
116
|
"wires": []
|
|
90
117
|
},
|
|
@@ -101,8 +128,8 @@
|
|
|
101
128
|
"targetType": "msg",
|
|
102
129
|
"statusVal": "payload",
|
|
103
130
|
"statusType": "auto",
|
|
104
|
-
"x":
|
|
105
|
-
"y":
|
|
131
|
+
"x": 630,
|
|
132
|
+
"y": 280,
|
|
106
133
|
"wires": []
|
|
107
134
|
},
|
|
108
135
|
{
|
|
@@ -131,9 +158,7 @@
|
|
|
131
158
|
"wires": [
|
|
132
159
|
[
|
|
133
160
|
"b3daecdca91d5857",
|
|
134
|
-
"
|
|
135
|
-
"b387e894bd2d43ef",
|
|
136
|
-
"3c37bb4e8785f015"
|
|
161
|
+
"abfd3bd5f2b524a9"
|
|
137
162
|
]
|
|
138
163
|
]
|
|
139
164
|
},
|
|
@@ -162,9 +187,7 @@
|
|
|
162
187
|
"y": 200,
|
|
163
188
|
"wires": [
|
|
164
189
|
[
|
|
165
|
-
"
|
|
166
|
-
"b387e894bd2d43ef",
|
|
167
|
-
"3c37bb4e8785f015"
|
|
190
|
+
"abfd3bd5f2b524a9"
|
|
168
191
|
]
|
|
169
192
|
]
|
|
170
193
|
},
|
|
@@ -193,9 +216,7 @@
|
|
|
193
216
|
"y": 160,
|
|
194
217
|
"wires": [
|
|
195
218
|
[
|
|
196
|
-
"
|
|
197
|
-
"b387e894bd2d43ef",
|
|
198
|
-
"3c37bb4e8785f015"
|
|
219
|
+
"abfd3bd5f2b524a9"
|
|
199
220
|
]
|
|
200
221
|
]
|
|
201
222
|
},
|
|
@@ -224,8 +245,7 @@
|
|
|
224
245
|
"y": 260,
|
|
225
246
|
"wires": [
|
|
226
247
|
[
|
|
227
|
-
"
|
|
228
|
-
"3c37bb4e8785f015"
|
|
248
|
+
"7be607a719dad008"
|
|
229
249
|
]
|
|
230
250
|
]
|
|
231
251
|
},
|
|
@@ -254,8 +274,7 @@
|
|
|
254
274
|
"y": 340,
|
|
255
275
|
"wires": [
|
|
256
276
|
[
|
|
257
|
-
"
|
|
258
|
-
"3c37bb4e8785f015"
|
|
277
|
+
"7be607a719dad008"
|
|
259
278
|
]
|
|
260
279
|
]
|
|
261
280
|
},
|
|
@@ -284,8 +303,7 @@
|
|
|
284
303
|
"y": 300,
|
|
285
304
|
"wires": [
|
|
286
305
|
[
|
|
287
|
-
"
|
|
288
|
-
"3c37bb4e8785f015"
|
|
306
|
+
"7be607a719dad008"
|
|
289
307
|
]
|
|
290
308
|
]
|
|
291
309
|
},
|
|
@@ -300,8 +318,8 @@
|
|
|
300
318
|
"maxMean": "3",
|
|
301
319
|
"minData": "2",
|
|
302
320
|
"algo": "mean",
|
|
303
|
-
"x":
|
|
304
|
-
"y":
|
|
321
|
+
"x": 430,
|
|
322
|
+
"y": 320,
|
|
305
323
|
"wires": [
|
|
306
324
|
[
|
|
307
325
|
"e48c5acab52f93e3"
|
|
@@ -321,8 +339,42 @@
|
|
|
321
339
|
"targetType": "msg",
|
|
322
340
|
"statusVal": "payload",
|
|
323
341
|
"statusType": "auto",
|
|
324
|
-
"x":
|
|
325
|
-
"y":
|
|
342
|
+
"x": 630,
|
|
343
|
+
"y": 320,
|
|
344
|
+
"wires": []
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"id": "43298eb40b87f0ac",
|
|
348
|
+
"type": "negate",
|
|
349
|
+
"z": "e7a1598e6f6358b9",
|
|
350
|
+
"name": "",
|
|
351
|
+
"property": "payload",
|
|
352
|
+
"propertyType": "msg",
|
|
353
|
+
"showState": false,
|
|
354
|
+
"filter": false,
|
|
355
|
+
"x": 430,
|
|
356
|
+
"y": 160,
|
|
357
|
+
"wires": [
|
|
358
|
+
[
|
|
359
|
+
"1603aaa3760fb2ff"
|
|
360
|
+
]
|
|
361
|
+
]
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"id": "1603aaa3760fb2ff",
|
|
365
|
+
"type": "debug",
|
|
366
|
+
"z": "e7a1598e6f6358b9",
|
|
367
|
+
"name": "",
|
|
368
|
+
"active": true,
|
|
369
|
+
"tosidebar": true,
|
|
370
|
+
"console": false,
|
|
371
|
+
"tostatus": true,
|
|
372
|
+
"complete": "payload",
|
|
373
|
+
"targetType": "msg",
|
|
374
|
+
"statusVal": "payload",
|
|
375
|
+
"statusType": "auto",
|
|
376
|
+
"x": 630,
|
|
377
|
+
"y": 160,
|
|
326
378
|
"wires": []
|
|
327
379
|
}
|
|
328
380
|
]
|
package/examples/math.png
CHANGED
|
Binary file
|
package/examples/statistics.json
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"id": "15a68aee9e4b93d8",
|
|
4
|
+
"type": "tab",
|
|
5
|
+
"label": "statistics flow",
|
|
6
|
+
"disabled": false,
|
|
7
|
+
"info": "",
|
|
8
|
+
"env": []
|
|
9
|
+
},
|
|
2
10
|
{
|
|
3
11
|
"id": "8b8b9dd67621a97e",
|
|
4
12
|
"type": "statistics",
|
|
5
|
-
"z": "
|
|
13
|
+
"z": "15a68aee9e4b93d8",
|
|
6
14
|
"name": "",
|
|
7
15
|
"property": "payload",
|
|
16
|
+
"propertyType": "msg",
|
|
8
17
|
"deltaTime": "10",
|
|
9
18
|
"minData": "2",
|
|
10
|
-
"x":
|
|
11
|
-
"y":
|
|
19
|
+
"x": 320,
|
|
20
|
+
"y": 80,
|
|
12
21
|
"wires": [
|
|
13
22
|
[
|
|
14
23
|
"1a6086132fd93e1a"
|
|
@@ -18,8 +27,8 @@
|
|
|
18
27
|
{
|
|
19
28
|
"id": "1a6086132fd93e1a",
|
|
20
29
|
"type": "debug",
|
|
21
|
-
"z": "
|
|
22
|
-
"name": "
|
|
30
|
+
"z": "15a68aee9e4b93d8",
|
|
31
|
+
"name": "",
|
|
23
32
|
"active": true,
|
|
24
33
|
"tosidebar": true,
|
|
25
34
|
"console": false,
|
|
@@ -28,14 +37,14 @@
|
|
|
28
37
|
"targetType": "full",
|
|
29
38
|
"statusVal": "",
|
|
30
39
|
"statusType": "auto",
|
|
31
|
-
"x":
|
|
32
|
-
"y":
|
|
40
|
+
"x": 490,
|
|
41
|
+
"y": 80,
|
|
33
42
|
"wires": []
|
|
34
43
|
},
|
|
35
44
|
{
|
|
36
45
|
"id": "40735ba7d52d0d38",
|
|
37
46
|
"type": "inject",
|
|
38
|
-
"z": "
|
|
47
|
+
"z": "15a68aee9e4b93d8",
|
|
39
48
|
"name": "",
|
|
40
49
|
"props": [
|
|
41
50
|
{
|
|
@@ -53,12 +62,52 @@
|
|
|
53
62
|
"topic": "random",
|
|
54
63
|
"payload": "$random()*100",
|
|
55
64
|
"payloadType": "jsonata",
|
|
56
|
-
"x":
|
|
57
|
-
"y":
|
|
65
|
+
"x": 150,
|
|
66
|
+
"y": 80,
|
|
67
|
+
"wires": [
|
|
68
|
+
[
|
|
69
|
+
"8b8b9dd67621a97e",
|
|
70
|
+
"112b54f517725aaf"
|
|
71
|
+
]
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "112b54f517725aaf",
|
|
76
|
+
"type": "mean",
|
|
77
|
+
"z": "15a68aee9e4b93d8",
|
|
78
|
+
"name": "",
|
|
79
|
+
"property": "payload",
|
|
80
|
+
"propertyType": "msg",
|
|
81
|
+
"deltaTime": "60",
|
|
82
|
+
"minData": "1",
|
|
83
|
+
"filter": "0",
|
|
84
|
+
"filterVal": "0",
|
|
85
|
+
"filterMul": "10",
|
|
86
|
+
"zeroIsZero": false,
|
|
87
|
+
"showState": true,
|
|
88
|
+
"x": 310,
|
|
89
|
+
"y": 140,
|
|
58
90
|
"wires": [
|
|
59
91
|
[
|
|
60
|
-
"
|
|
92
|
+
"c85e2783dab69e05"
|
|
61
93
|
]
|
|
62
94
|
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "c85e2783dab69e05",
|
|
98
|
+
"type": "debug",
|
|
99
|
+
"z": "15a68aee9e4b93d8",
|
|
100
|
+
"name": "",
|
|
101
|
+
"active": true,
|
|
102
|
+
"tosidebar": true,
|
|
103
|
+
"console": false,
|
|
104
|
+
"tostatus": false,
|
|
105
|
+
"complete": "true",
|
|
106
|
+
"targetType": "full",
|
|
107
|
+
"statusVal": "",
|
|
108
|
+
"statusType": "auto",
|
|
109
|
+
"x": 490,
|
|
110
|
+
"y": 140,
|
|
111
|
+
"wires": []
|
|
63
112
|
}
|
|
64
|
-
]
|
|
113
|
+
]
|
package/examples/statistics.png
CHANGED
|
Binary file
|
package/package.json
CHANGED