@mschaeffler/node-red-logic 0.3.0 → 0.4.4

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.
@@ -0,0 +1,323 @@
1
+ [
2
+ {
3
+ "id": "4970749d37068d6b",
4
+ "type": "tab",
5
+ "label": "Flow 1",
6
+ "disabled": false,
7
+ "info": "",
8
+ "env": []
9
+ },
10
+ {
11
+ "id": "52d9bc78e16a9148",
12
+ "type": "fallingEdge",
13
+ "z": "4970749d37068d6b",
14
+ "name": "",
15
+ "property": "payload",
16
+ "threshold": "0.5",
17
+ "showState": true,
18
+ "x": 350,
19
+ "y": 180,
20
+ "wires": [
21
+ [
22
+ "77726eaa088e280b"
23
+ ]
24
+ ]
25
+ },
26
+ {
27
+ "id": "77726eaa088e280b",
28
+ "type": "debug",
29
+ "z": "4970749d37068d6b",
30
+ "name": "",
31
+ "active": false,
32
+ "tosidebar": true,
33
+ "console": false,
34
+ "tostatus": true,
35
+ "complete": "edge",
36
+ "targetType": "msg",
37
+ "statusVal": "payload",
38
+ "statusType": "auto",
39
+ "x": 520,
40
+ "y": 180,
41
+ "wires": []
42
+ },
43
+ {
44
+ "id": "ac8e06cc38b44b25",
45
+ "type": "inject",
46
+ "z": "4970749d37068d6b",
47
+ "name": "",
48
+ "props": [
49
+ {
50
+ "p": "topic",
51
+ "vt": "str"
52
+ },
53
+ {
54
+ "p": "payload"
55
+ }
56
+ ],
57
+ "repeat": "",
58
+ "crontab": "",
59
+ "once": false,
60
+ "onceDelay": 0.1,
61
+ "topic": "A",
62
+ "payload": "invalid",
63
+ "payloadType": "str",
64
+ "x": 140,
65
+ "y": 140,
66
+ "wires": [
67
+ [
68
+ "a24056951606f51c",
69
+ "52d9bc78e16a9148"
70
+ ]
71
+ ]
72
+ },
73
+ {
74
+ "id": "c3c3954adcb27b9f",
75
+ "type": "inject",
76
+ "z": "4970749d37068d6b",
77
+ "name": "",
78
+ "props": [
79
+ {
80
+ "p": "topic",
81
+ "vt": "str"
82
+ },
83
+ {
84
+ "p": "payload"
85
+ }
86
+ ],
87
+ "repeat": "",
88
+ "crontab": "",
89
+ "once": false,
90
+ "onceDelay": 0.1,
91
+ "topic": "B",
92
+ "payload": "5",
93
+ "payloadType": "num",
94
+ "x": 150,
95
+ "y": 280,
96
+ "wires": [
97
+ [
98
+ "a24056951606f51c",
99
+ "52d9bc78e16a9148",
100
+ "6c0fc0087d21517c"
101
+ ]
102
+ ]
103
+ },
104
+ {
105
+ "id": "f968bad2f0afca41",
106
+ "type": "inject",
107
+ "z": "4970749d37068d6b",
108
+ "name": "",
109
+ "props": [
110
+ {
111
+ "p": "topic",
112
+ "vt": "str"
113
+ },
114
+ {
115
+ "p": "payload"
116
+ }
117
+ ],
118
+ "repeat": "",
119
+ "crontab": "",
120
+ "once": false,
121
+ "onceDelay": 0.1,
122
+ "topic": "A",
123
+ "payload": "true",
124
+ "payloadType": "bool",
125
+ "x": 150,
126
+ "y": 180,
127
+ "wires": [
128
+ [
129
+ "a24056951606f51c",
130
+ "52d9bc78e16a9148"
131
+ ]
132
+ ]
133
+ },
134
+ {
135
+ "id": "ad9fbb99931a81c4",
136
+ "type": "inject",
137
+ "z": "4970749d37068d6b",
138
+ "name": "",
139
+ "props": [
140
+ {
141
+ "p": "topic",
142
+ "vt": "str"
143
+ },
144
+ {
145
+ "p": "payload"
146
+ }
147
+ ],
148
+ "repeat": "",
149
+ "crontab": "",
150
+ "once": false,
151
+ "onceDelay": 0.1,
152
+ "topic": "A",
153
+ "payload": "false",
154
+ "payloadType": "bool",
155
+ "x": 150,
156
+ "y": 220,
157
+ "wires": [
158
+ [
159
+ "a24056951606f51c",
160
+ "52d9bc78e16a9148"
161
+ ]
162
+ ]
163
+ },
164
+ {
165
+ "id": "f1ab2e7739f49adf",
166
+ "type": "inject",
167
+ "z": "4970749d37068d6b",
168
+ "name": "",
169
+ "props": [
170
+ {
171
+ "p": "topic",
172
+ "vt": "str"
173
+ },
174
+ {
175
+ "p": "payload"
176
+ }
177
+ ],
178
+ "repeat": "",
179
+ "crontab": "",
180
+ "once": false,
181
+ "onceDelay": 0.1,
182
+ "topic": "B",
183
+ "payload": "-5",
184
+ "payloadType": "num",
185
+ "x": 150,
186
+ "y": 320,
187
+ "wires": [
188
+ [
189
+ "a24056951606f51c",
190
+ "52d9bc78e16a9148",
191
+ "6c0fc0087d21517c"
192
+ ]
193
+ ]
194
+ },
195
+ {
196
+ "id": "a24056951606f51c",
197
+ "type": "raisingEdge",
198
+ "z": "4970749d37068d6b",
199
+ "name": "",
200
+ "property": "payload",
201
+ "threshold": "0.5",
202
+ "showState": true,
203
+ "x": 350,
204
+ "y": 240,
205
+ "wires": [
206
+ [
207
+ "fe404d9f9c32f265"
208
+ ]
209
+ ]
210
+ },
211
+ {
212
+ "id": "fe655bd06e553598",
213
+ "type": "inject",
214
+ "z": "4970749d37068d6b",
215
+ "name": "reset",
216
+ "props": [
217
+ {
218
+ "p": "reset",
219
+ "v": "true",
220
+ "vt": "bool"
221
+ },
222
+ {
223
+ "p": "topic",
224
+ "vt": "str"
225
+ }
226
+ ],
227
+ "repeat": "",
228
+ "crontab": "",
229
+ "once": false,
230
+ "onceDelay": 0.1,
231
+ "topic": "",
232
+ "x": 150,
233
+ "y": 80,
234
+ "wires": [
235
+ [
236
+ "a24056951606f51c",
237
+ "52d9bc78e16a9148",
238
+ "6c0fc0087d21517c"
239
+ ]
240
+ ]
241
+ },
242
+ {
243
+ "id": "fe404d9f9c32f265",
244
+ "type": "debug",
245
+ "z": "4970749d37068d6b",
246
+ "name": "",
247
+ "active": false,
248
+ "tosidebar": true,
249
+ "console": false,
250
+ "tostatus": true,
251
+ "complete": "edge",
252
+ "targetType": "msg",
253
+ "statusVal": "",
254
+ "statusType": "auto",
255
+ "x": 520,
256
+ "y": 240,
257
+ "wires": []
258
+ },
259
+ {
260
+ "id": "50bd9f615e8929df",
261
+ "type": "debug",
262
+ "z": "4970749d37068d6b",
263
+ "name": "",
264
+ "active": true,
265
+ "tosidebar": true,
266
+ "console": false,
267
+ "tostatus": true,
268
+ "complete": "edge",
269
+ "targetType": "msg",
270
+ "statusVal": "payload",
271
+ "statusType": "auto",
272
+ "x": 520,
273
+ "y": 320,
274
+ "wires": []
275
+ },
276
+ {
277
+ "id": "6c0fc0087d21517c",
278
+ "type": "hysteresisEdge",
279
+ "z": "4970749d37068d6b",
280
+ "name": "",
281
+ "property": "payload",
282
+ "threshold_raise": "1",
283
+ "threshold_fall": "-1",
284
+ "initial": "falling",
285
+ "showState": true,
286
+ "x": 360,
287
+ "y": 320,
288
+ "wires": [
289
+ [
290
+ "50bd9f615e8929df"
291
+ ]
292
+ ]
293
+ },
294
+ {
295
+ "id": "23a7bae9cad0dd16",
296
+ "type": "inject",
297
+ "z": "4970749d37068d6b",
298
+ "name": "",
299
+ "props": [
300
+ {
301
+ "p": "topic",
302
+ "vt": "str"
303
+ },
304
+ {
305
+ "p": "payload"
306
+ }
307
+ ],
308
+ "repeat": "",
309
+ "crontab": "",
310
+ "once": false,
311
+ "onceDelay": 0.1,
312
+ "topic": "B",
313
+ "payload": "0",
314
+ "payloadType": "num",
315
+ "x": 150,
316
+ "y": 360,
317
+ "wires": [
318
+ [
319
+ "6c0fc0087d21517c"
320
+ ]
321
+ ]
322
+ }
323
+ ]
Binary file
Binary file
@@ -0,0 +1,328 @@
1
+ [
2
+ {
3
+ "id": "e7a1598e6f6358b9",
4
+ "type": "tab",
5
+ "label": "Flow 3",
6
+ "disabled": false,
7
+ "info": "",
8
+ "env": []
9
+ },
10
+ {
11
+ "id": "b387e894bd2d43ef",
12
+ "type": "reduce",
13
+ "z": "e7a1598e6f6358b9",
14
+ "name": "",
15
+ "topic": "",
16
+ "property": "payload",
17
+ "minMean": "1",
18
+ "maxMean": "1",
19
+ "minData": "2",
20
+ "algo": "add",
21
+ "x": 350,
22
+ "y": 260,
23
+ "wires": [
24
+ [
25
+ "ae068d25a90dae25"
26
+ ]
27
+ ]
28
+ },
29
+ {
30
+ "id": "b3daecdca91d5857",
31
+ "type": "counter",
32
+ "z": "e7a1598e6f6358b9",
33
+ "name": "",
34
+ "x": 360,
35
+ "y": 120,
36
+ "wires": [
37
+ [
38
+ "8d3bba1d6e5cb22f"
39
+ ]
40
+ ]
41
+ },
42
+ {
43
+ "id": "244e769e05d8b030",
44
+ "type": "tonumber",
45
+ "z": "e7a1598e6f6358b9",
46
+ "name": "",
47
+ "property": "payload",
48
+ "showState": true,
49
+ "x": 360,
50
+ "y": 200,
51
+ "wires": [
52
+ [
53
+ "5a783605c2561d00"
54
+ ]
55
+ ]
56
+ },
57
+ {
58
+ "id": "8d3bba1d6e5cb22f",
59
+ "type": "debug",
60
+ "z": "e7a1598e6f6358b9",
61
+ "name": "",
62
+ "active": true,
63
+ "tosidebar": true,
64
+ "console": false,
65
+ "tostatus": true,
66
+ "complete": "payload",
67
+ "targetType": "msg",
68
+ "statusVal": "payload",
69
+ "statusType": "auto",
70
+ "x": 550,
71
+ "y": 120,
72
+ "wires": []
73
+ },
74
+ {
75
+ "id": "5a783605c2561d00",
76
+ "type": "debug",
77
+ "z": "e7a1598e6f6358b9",
78
+ "name": "",
79
+ "active": true,
80
+ "tosidebar": true,
81
+ "console": false,
82
+ "tostatus": true,
83
+ "complete": "payload",
84
+ "targetType": "msg",
85
+ "statusVal": "payload",
86
+ "statusType": "auto",
87
+ "x": 550,
88
+ "y": 200,
89
+ "wires": []
90
+ },
91
+ {
92
+ "id": "ae068d25a90dae25",
93
+ "type": "debug",
94
+ "z": "e7a1598e6f6358b9",
95
+ "name": "",
96
+ "active": true,
97
+ "tosidebar": true,
98
+ "console": false,
99
+ "tostatus": true,
100
+ "complete": "payload",
101
+ "targetType": "msg",
102
+ "statusVal": "payload",
103
+ "statusType": "auto",
104
+ "x": 550,
105
+ "y": 260,
106
+ "wires": []
107
+ },
108
+ {
109
+ "id": "b7f75f4a22ecd0ee",
110
+ "type": "inject",
111
+ "z": "e7a1598e6f6358b9",
112
+ "name": "",
113
+ "props": [
114
+ {
115
+ "p": "topic",
116
+ "vt": "str"
117
+ },
118
+ {
119
+ "p": "payload"
120
+ }
121
+ ],
122
+ "repeat": "",
123
+ "crontab": "",
124
+ "once": false,
125
+ "onceDelay": 0.1,
126
+ "topic": "A",
127
+ "payload": "5",
128
+ "payloadType": "str",
129
+ "x": 190,
130
+ "y": 120,
131
+ "wires": [
132
+ [
133
+ "b3daecdca91d5857",
134
+ "244e769e05d8b030",
135
+ "b387e894bd2d43ef",
136
+ "3c37bb4e8785f015"
137
+ ]
138
+ ]
139
+ },
140
+ {
141
+ "id": "19ad2b1afbfee8cf",
142
+ "type": "inject",
143
+ "z": "e7a1598e6f6358b9",
144
+ "name": "",
145
+ "props": [
146
+ {
147
+ "p": "topic",
148
+ "vt": "str"
149
+ },
150
+ {
151
+ "p": "payload"
152
+ }
153
+ ],
154
+ "repeat": "",
155
+ "crontab": "",
156
+ "once": false,
157
+ "onceDelay": 0.1,
158
+ "topic": "A",
159
+ "payload": "-5",
160
+ "payloadType": "num",
161
+ "x": 190,
162
+ "y": 200,
163
+ "wires": [
164
+ [
165
+ "244e769e05d8b030",
166
+ "b387e894bd2d43ef",
167
+ "3c37bb4e8785f015"
168
+ ]
169
+ ]
170
+ },
171
+ {
172
+ "id": "ac9dd1323d3d60ae",
173
+ "type": "inject",
174
+ "z": "e7a1598e6f6358b9",
175
+ "name": "",
176
+ "props": [
177
+ {
178
+ "p": "topic",
179
+ "vt": "str"
180
+ },
181
+ {
182
+ "p": "payload"
183
+ }
184
+ ],
185
+ "repeat": "",
186
+ "crontab": "",
187
+ "once": false,
188
+ "onceDelay": 0.1,
189
+ "topic": "A",
190
+ "payload": "0",
191
+ "payloadType": "str",
192
+ "x": 190,
193
+ "y": 160,
194
+ "wires": [
195
+ [
196
+ "244e769e05d8b030",
197
+ "b387e894bd2d43ef",
198
+ "3c37bb4e8785f015"
199
+ ]
200
+ ]
201
+ },
202
+ {
203
+ "id": "144150b47c7b7f5e",
204
+ "type": "inject",
205
+ "z": "e7a1598e6f6358b9",
206
+ "name": "",
207
+ "props": [
208
+ {
209
+ "p": "topic",
210
+ "vt": "str"
211
+ },
212
+ {
213
+ "p": "payload"
214
+ }
215
+ ],
216
+ "repeat": "",
217
+ "crontab": "",
218
+ "once": false,
219
+ "onceDelay": 0.1,
220
+ "topic": "B",
221
+ "payload": "2",
222
+ "payloadType": "num",
223
+ "x": 190,
224
+ "y": 260,
225
+ "wires": [
226
+ [
227
+ "b387e894bd2d43ef",
228
+ "3c37bb4e8785f015"
229
+ ]
230
+ ]
231
+ },
232
+ {
233
+ "id": "424f044c65f13d95",
234
+ "type": "inject",
235
+ "z": "e7a1598e6f6358b9",
236
+ "name": "",
237
+ "props": [
238
+ {
239
+ "p": "topic",
240
+ "vt": "str"
241
+ },
242
+ {
243
+ "p": "payload"
244
+ }
245
+ ],
246
+ "repeat": "",
247
+ "crontab": "",
248
+ "once": false,
249
+ "onceDelay": 0.1,
250
+ "topic": "B",
251
+ "payload": "-2",
252
+ "payloadType": "num",
253
+ "x": 190,
254
+ "y": 340,
255
+ "wires": [
256
+ [
257
+ "b387e894bd2d43ef",
258
+ "3c37bb4e8785f015"
259
+ ]
260
+ ]
261
+ },
262
+ {
263
+ "id": "5fa26abfa096ab15",
264
+ "type": "inject",
265
+ "z": "e7a1598e6f6358b9",
266
+ "name": "",
267
+ "props": [
268
+ {
269
+ "p": "topic",
270
+ "vt": "str"
271
+ },
272
+ {
273
+ "p": "payload"
274
+ }
275
+ ],
276
+ "repeat": "",
277
+ "crontab": "",
278
+ "once": false,
279
+ "onceDelay": 0.1,
280
+ "topic": "B",
281
+ "payload": "0",
282
+ "payloadType": "num",
283
+ "x": 190,
284
+ "y": 300,
285
+ "wires": [
286
+ [
287
+ "b387e894bd2d43ef",
288
+ "3c37bb4e8785f015"
289
+ ]
290
+ ]
291
+ },
292
+ {
293
+ "id": "3c37bb4e8785f015",
294
+ "type": "reduce",
295
+ "z": "e7a1598e6f6358b9",
296
+ "name": "",
297
+ "topic": "",
298
+ "property": "payload",
299
+ "minMean": "1",
300
+ "maxMean": "3",
301
+ "minData": "2",
302
+ "algo": "mean",
303
+ "x": 350,
304
+ "y": 340,
305
+ "wires": [
306
+ [
307
+ "e48c5acab52f93e3"
308
+ ]
309
+ ]
310
+ },
311
+ {
312
+ "id": "e48c5acab52f93e3",
313
+ "type": "debug",
314
+ "z": "e7a1598e6f6358b9",
315
+ "name": "",
316
+ "active": true,
317
+ "tosidebar": true,
318
+ "console": false,
319
+ "tostatus": true,
320
+ "complete": "payload",
321
+ "targetType": "msg",
322
+ "statusVal": "payload",
323
+ "statusType": "auto",
324
+ "x": 550,
325
+ "y": 340,
326
+ "wires": []
327
+ }
328
+ ]
Binary file
Binary file
Binary file
Binary file