@opcua/for-node-red 3.7.1 → 3.9.0

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.
Files changed (33) hide show
  1. package/README.md +2 -1
  2. package/all.js +1 -1
  3. package/config-panel/assets/index-Cbauh_EP.css +1 -0
  4. package/config-panel/assets/index-Dbq8sVaJ.js +49 -0
  5. package/config-panel/index.html +2 -2
  6. package/examples/coffee-machine-2.json +3393 -0
  7. package/examples/explore_coffee_machine.json +1 -1
  8. package/examples/job_manager.json +1 -1
  9. package/examples/monitored-items.json +630 -0
  10. package/examples/svg_watertank.html +17 -0
  11. package/examples/tank.jsx +33 -0
  12. package/package.json +1 -1
  13. package/source/OpcUa-Client2-Browse/OpcUa-Client2-Browse.css +1 -1
  14. package/source/OpcUa-Client2-Browse/OpcUa-Client2-Browse.html +55 -9
  15. package/source/OpcUa-Client2-Call/OpcUa-Client2-Call.css +1 -1
  16. package/source/OpcUa-Client2-Call/OpcUa-Client2-Call.html +31 -5
  17. package/source/OpcUa-Client2-Explore/OpcUa-Client2-Explore.css +1 -1
  18. package/source/OpcUa-Client2-Explore/OpcUa-Client2-Explore.html +4 -4
  19. package/source/OpcUa-Client2-ExtensionObject/OpcUa-Client2-ExtensionObject.css +1 -1
  20. package/source/OpcUa-Client2-ExtensionObject/OpcUa-Client2-ExtensionObject.html +10 -4
  21. package/source/OpcUa-Client2-HistoryRead/OpcUa-Client2-HistoryRead.css +1 -1
  22. package/source/OpcUa-Client2-HistoryRead/OpcUa-Client2-HistoryRead.html +169 -92
  23. package/source/OpcUa-Client2-Monitor/OpcUa-Client2-Monitor.css +1 -1
  24. package/source/OpcUa-Client2-Monitor/OpcUa-Client2-Monitor.html +199 -38
  25. package/source/OpcUa-Client2-MonitorEvent/OpcUa-Client2-MonitorEvent.css +1 -1
  26. package/source/OpcUa-Client2-MonitorEvent/OpcUa-Client2-MonitorEvent.html +61 -13
  27. package/source/OpcUa-Client2-Read/OpcUa-Client2-Read.css +1 -1
  28. package/source/OpcUa-Client2-Read/OpcUa-Client2-Read.html +4 -4
  29. package/source/OpcUa-Client2-Write/OpcUa-Client2-Write.css +1 -1
  30. package/source/OpcUa-Client2-Write/OpcUa-Client2-Write.html +4 -4
  31. package/source/OpcUa-Endpoint2/OpcUa-Endpoint2.html +2 -2
  32. package/config-panel/assets/index-2UIiGW7e.js +0 -40
  33. package/config-panel/assets/index-D642mSgA.css +0 -1
@@ -0,0 +1,3393 @@
1
+ [
2
+ {
3
+ "id": "8914237e0d8e46c7",
4
+ "type": "tab",
5
+ "label": "CoffeeMachine",
6
+ "disabled": false,
7
+ "info": "",
8
+ "env": []
9
+ },
10
+ {
11
+ "id": "a872632f0795dffe",
12
+ "type": "group",
13
+ "z": "8914237e0d8e46c7",
14
+ "style": {
15
+ "stroke": "#999999",
16
+ "stroke-opacity": "1",
17
+ "fill": "none",
18
+ "fill-opacity": "1",
19
+ "label": true,
20
+ "label-position": "nw",
21
+ "color": "#a4a4a4"
22
+ },
23
+ "nodes": [
24
+ "5163f0e3c15147e2",
25
+ "9ce44b437e2ed4eb",
26
+ "17f15759ea0b4678",
27
+ "ae2a5d89ca13248d",
28
+ "44eeed6c80419b5f",
29
+ "7b496ba60d331069",
30
+ "1c3d6230a57c852c",
31
+ "c172f527ba188866",
32
+ "ae3fe0588bcec600",
33
+ "83de8924a1f6f2a5",
34
+ "807487cd9637d0e1",
35
+ "e181ef3ed9e6dc40",
36
+ "6c7658b34fce0ac3"
37
+ ],
38
+ "x": 1114,
39
+ "y": 119,
40
+ "w": 432,
41
+ "h": 482
42
+ },
43
+ {
44
+ "id": "23e92d93ed23febc",
45
+ "type": "group",
46
+ "z": "8914237e0d8e46c7",
47
+ "name": "Connection status",
48
+ "style": {
49
+ "stroke": "#ffC000",
50
+ "label": true
51
+ },
52
+ "nodes": [
53
+ "dc5e73eb1991eed3",
54
+ "36b2628c69b87d42",
55
+ "f79e321ce9b22631",
56
+ "46d99d7986a03b57",
57
+ "e975667424fe78b7",
58
+ "dcf7ab764b7d2921"
59
+ ],
60
+ "x": 194,
61
+ "y": 939,
62
+ "w": 812,
63
+ "h": 242
64
+ },
65
+ {
66
+ "id": "b07d4a44ddb86adf",
67
+ "type": "group",
68
+ "z": "8914237e0d8e46c7",
69
+ "name": "Heater",
70
+ "style": {
71
+ "label": true
72
+ },
73
+ "nodes": [
74
+ "3e9be0f18116b2c2",
75
+ "2b573431a25e870f",
76
+ "68e0c3653588a07d",
77
+ "bd7c7f49e974f208",
78
+ "d3b1d8b5c05c2b22",
79
+ "07bde3d3f85f2a40",
80
+ "c369c3262a3b57fa",
81
+ "f1f77b6afa4257f0"
82
+ ],
83
+ "x": 194,
84
+ "y": 719,
85
+ "w": 812,
86
+ "h": 202
87
+ },
88
+ {
89
+ "id": "62d148a7e9f5c520",
90
+ "type": "group",
91
+ "z": "8914237e0d8e46c7",
92
+ "name": "Current State",
93
+ "style": {
94
+ "label": true
95
+ },
96
+ "nodes": [
97
+ "c9717ac11b53672e",
98
+ "3a8c7eb7dc515e34",
99
+ "798535950531337a"
100
+ ],
101
+ "x": 1054,
102
+ "y": 699,
103
+ "w": 632,
104
+ "h": 82
105
+ },
106
+ {
107
+ "id": "11f19caa7b9760b7",
108
+ "type": "group",
109
+ "z": "8914237e0d8e46c7",
110
+ "name": "Pump",
111
+ "style": {
112
+ "label": true
113
+ },
114
+ "nodes": [
115
+ "f3ba9efdc12e30ce",
116
+ "24ab918428d73e5f",
117
+ "b8ba5e020aa48e2a",
118
+ "7619f93616149cdc"
119
+ ],
120
+ "x": 1054,
121
+ "y": 799,
122
+ "w": 632,
123
+ "h": 122
124
+ },
125
+ {
126
+ "id": "f250c8ad248b028d",
127
+ "type": "group",
128
+ "z": "8914237e0d8e46c7",
129
+ "name": "Process Variables",
130
+ "style": {
131
+ "fill": "#ffffbf",
132
+ "label": true
133
+ },
134
+ "nodes": [
135
+ "517edf10f355e464",
136
+ "d22591b8e78ebe7d",
137
+ "29542b83f026fb7b",
138
+ "684238fb58a91415"
139
+ ],
140
+ "x": 188,
141
+ "y": 73,
142
+ "w": 724,
143
+ "h": 634
144
+ },
145
+ {
146
+ "id": "ec1ab7ca9e060d7f",
147
+ "type": "group",
148
+ "z": "8914237e0d8e46c7",
149
+ "style": {
150
+ "stroke": "#999999",
151
+ "stroke-opacity": "1",
152
+ "fill": "none",
153
+ "fill-opacity": "1",
154
+ "label": true,
155
+ "label-position": "nw",
156
+ "color": "#a4a4a4"
157
+ },
158
+ "nodes": [
159
+ "4cecc03d1a64c091",
160
+ "f6b1e7b0df0fa288",
161
+ "0c098347de28a15d",
162
+ "57622c7f24dacef7",
163
+ "237e980896f1a684",
164
+ "e3c1066f3260a1cb",
165
+ "0597a0ffcdab77cd",
166
+ "6008fa16cda462d5",
167
+ "1fca2f6f28cc4828",
168
+ "2857eb76526322a1",
169
+ "ea1957e0718f21fd"
170
+ ],
171
+ "x": 1054,
172
+ "y": 979,
173
+ "w": 772,
174
+ "h": 202
175
+ },
176
+ {
177
+ "id": "230bb82688833807",
178
+ "type": "group",
179
+ "z": "8914237e0d8e46c7",
180
+ "name": "Pooling Read",
181
+ "style": {
182
+ "label": true
183
+ },
184
+ "nodes": [
185
+ "d21be93e03b60165",
186
+ "1832b372c56dc715",
187
+ "5f6eeb0fc5228a66",
188
+ "5e50f3a2da48a03b",
189
+ "fe845d4c6aa473d0",
190
+ "50c33de026727ab2",
191
+ "99b27a72cfb58370",
192
+ "829ce0410d7c3b05",
193
+ "1bea16ead1291025"
194
+ ],
195
+ "x": 194,
196
+ "y": 1419,
197
+ "w": 1172,
198
+ "h": 162
199
+ },
200
+ {
201
+ "id": "54277e0eb0f4eddd",
202
+ "type": "group",
203
+ "z": "8914237e0d8e46c7",
204
+ "name": "Display NAMUR Symbol",
205
+ "style": {
206
+ "label": true
207
+ },
208
+ "nodes": [
209
+ "44225cb3561717c6",
210
+ "61237053c6df429d",
211
+ "2456ee93776095bc"
212
+ ],
213
+ "x": 194,
214
+ "y": 1599,
215
+ "w": 592,
216
+ "h": 82
217
+ },
218
+ {
219
+ "id": "517edf10f355e464",
220
+ "type": "group",
221
+ "z": "8914237e0d8e46c7",
222
+ "g": "f250c8ad248b028d",
223
+ "name": "Water Tank",
224
+ "style": {
225
+ "label": true,
226
+ "fill": "#bfdbef"
227
+ },
228
+ "nodes": [
229
+ "5ddf1b5952313443",
230
+ "a66ec0e0a1360f34",
231
+ "9122c1157cbe0b5e",
232
+ "e97157a71ff3fc6b",
233
+ "d2a8ee6868d23307",
234
+ "0f373262c51c849b"
235
+ ],
236
+ "x": 214,
237
+ "y": 99,
238
+ "w": 672,
239
+ "h": 162
240
+ },
241
+ {
242
+ "id": "d22591b8e78ebe7d",
243
+ "type": "group",
244
+ "z": "8914237e0d8e46c7",
245
+ "g": "f250c8ad248b028d",
246
+ "name": "Milk Tank",
247
+ "style": {
248
+ "label": true
249
+ },
250
+ "nodes": [
251
+ "49367ab61a7d3443",
252
+ "bbfc30b4f5fe5cdd",
253
+ "ab80657e6899a890",
254
+ "d341f2efd4821785",
255
+ "c5df8a8624445a8a"
256
+ ],
257
+ "x": 214,
258
+ "y": 279,
259
+ "w": 652,
260
+ "h": 122
261
+ },
262
+ {
263
+ "id": "29542b83f026fb7b",
264
+ "type": "group",
265
+ "z": "8914237e0d8e46c7",
266
+ "g": "f250c8ad248b028d",
267
+ "name": "Coffee Beam Tank",
268
+ "style": {
269
+ "label": true
270
+ },
271
+ "nodes": [
272
+ "0ab25a3cc9a2fb4c",
273
+ "f64ae2163a90f520",
274
+ "ffdc07a2a8644ee7",
275
+ "d67dc25d267b8aab",
276
+ "4d754c69f2e0b376"
277
+ ],
278
+ "x": 214,
279
+ "y": 419,
280
+ "w": 672,
281
+ "h": 122
282
+ },
283
+ {
284
+ "id": "684238fb58a91415",
285
+ "type": "group",
286
+ "z": "8914237e0d8e46c7",
287
+ "g": "f250c8ad248b028d",
288
+ "name": "Boiler",
289
+ "style": {
290
+ "label": true
291
+ },
292
+ "nodes": [
293
+ "2cfd5287e52e0fb0",
294
+ "400b6980b1a2cd45",
295
+ "4f1eb368f3fb45c1",
296
+ "33eb2077b9bb31d1",
297
+ "528f9a8a184a078a",
298
+ "f4abb62d50e829d9",
299
+ "3287809947131ac3",
300
+ "bc32ee4142fc26ab"
301
+ ],
302
+ "x": 214,
303
+ "y": 559,
304
+ "w": 632,
305
+ "h": 122
306
+ },
307
+ {
308
+ "id": "665736b8cbeb246d",
309
+ "type": "group",
310
+ "z": "8914237e0d8e46c7",
311
+ "name": "Synopsis",
312
+ "style": {
313
+ "stroke": "#ffbfbf",
314
+ "fill": "#e3f3d3",
315
+ "label": true
316
+ },
317
+ "nodes": [
318
+ "2c7b916b70107153",
319
+ "eeaa86a8240214df",
320
+ "42fea19e7e56afbc",
321
+ "072413d285aeb40e",
322
+ "f64d872549983d6f",
323
+ "143a262a2cbfe451",
324
+ "a1492e996fe8302a"
325
+ ],
326
+ "x": 194,
327
+ "y": 1719,
328
+ "w": 1012,
329
+ "h": 162
330
+ },
331
+ {
332
+ "id": "a9f1eb481f74dde3",
333
+ "type": "group",
334
+ "z": "8914237e0d8e46c7",
335
+ "name": "Collect data to CSV",
336
+ "style": {
337
+ "stroke": "#3f93cf",
338
+ "fill": "#bfdbef",
339
+ "label": true
340
+ },
341
+ "nodes": [
342
+ "b577d7342c008353",
343
+ "529de43bbcc8ddd4",
344
+ "73a7a87a437b298c",
345
+ "239601af1e96d917",
346
+ "ccd602507a4abc68",
347
+ "b694d72cbaef5d85",
348
+ "af5560e53daca7e6",
349
+ "96aded34d2e12af9",
350
+ "14863b828843ebb1",
351
+ "6022bc4dbfcea9ed"
352
+ ],
353
+ "x": 204,
354
+ "y": 1219,
355
+ "w": 1122,
356
+ "h": 169.5
357
+ },
358
+ {
359
+ "id": "5ddf1b5952313443",
360
+ "type": "OpcUa-Client2-Monitor",
361
+ "z": "8914237e0d8e46c7",
362
+ "g": "517edf10f355e464",
363
+ "inputs": 0,
364
+ "output": 2,
365
+ "name": "WaterTankLevel",
366
+ "endpoint": "9593045b235c321c",
367
+ "subscription": "s2",
368
+ "startImmediately": true,
369
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.kitchen:Parameters.sterfive:WaterTankLevel",
370
+ "samplingInterval": "250",
371
+ "discardOldest": true,
372
+ "queueSize": 10,
373
+ "x": 320,
374
+ "y": 180,
375
+ "wires": [
376
+ [
377
+ "e97157a71ff3fc6b",
378
+ "d2a8ee6868d23307"
379
+ ]
380
+ ]
381
+ },
382
+ {
383
+ "id": "5163f0e3c15147e2",
384
+ "type": "OpcUa-Client2-Call",
385
+ "z": "8914237e0d8e46c7",
386
+ "g": "a872632f0795dffe",
387
+ "inputs": 1,
388
+ "output": 4,
389
+ "name": "Make Coffee",
390
+ "endpoint": "9593045b235c321c",
391
+ "action": "read",
392
+ "methodId": "/di:DeviceSet/ns1:CoffeMachineA.di:MethodSet.sterfive:MakeCoffee",
393
+ "objectId": "/di:DeviceSet/ns1:CoffeMachineA",
394
+ "x": 1450,
395
+ "y": 220,
396
+ "wires": [
397
+ [],
398
+ []
399
+ ]
400
+ },
401
+ {
402
+ "id": "9ce44b437e2ed4eb",
403
+ "type": "inject",
404
+ "z": "8914237e0d8e46c7",
405
+ "g": "a872632f0795dffe",
406
+ "name": "Mocha",
407
+ "props": [
408
+ {
409
+ "p": "payload"
410
+ }
411
+ ],
412
+ "repeat": "",
413
+ "crontab": "",
414
+ "once": false,
415
+ "onceDelay": 0.1,
416
+ "topic": "",
417
+ "payload": "{\"RecipeName\": \"Mocha\"}",
418
+ "payloadType": "json",
419
+ "x": 1230,
420
+ "y": 220,
421
+ "wires": [
422
+ [
423
+ "5163f0e3c15147e2"
424
+ ]
425
+ ]
426
+ },
427
+ {
428
+ "id": "17f15759ea0b4678",
429
+ "type": "OpcUa-Client2-Call",
430
+ "z": "8914237e0d8e46c7",
431
+ "g": "a872632f0795dffe",
432
+ "inputs": 1,
433
+ "output": 4,
434
+ "name": "FillTank",
435
+ "endpoint": "9593045b235c321c",
436
+ "action": "read",
437
+ "methodId": "/di:DeviceSet/ns1:CoffeMachineA.di:MethodSet.sterfive:FillTank",
438
+ "objectId": "/di:DeviceSet/ns1:CoffeMachineA",
439
+ "x": 1450,
440
+ "y": 320,
441
+ "wires": [
442
+ [],
443
+ []
444
+ ]
445
+ },
446
+ {
447
+ "id": "ae2a5d89ca13248d",
448
+ "type": "inject",
449
+ "z": "8914237e0d8e46c7",
450
+ "g": "a872632f0795dffe",
451
+ "name": "",
452
+ "props": [],
453
+ "repeat": "",
454
+ "crontab": "",
455
+ "once": false,
456
+ "onceDelay": 0.1,
457
+ "topic": "",
458
+ "x": 1230,
459
+ "y": 320,
460
+ "wires": [
461
+ [
462
+ "17f15759ea0b4678"
463
+ ]
464
+ ]
465
+ },
466
+ {
467
+ "id": "2cfd5287e52e0fb0",
468
+ "type": "OpcUa-Client2-Monitor",
469
+ "z": "8914237e0d8e46c7",
470
+ "g": "684238fb58a91415",
471
+ "inputs": 0,
472
+ "output": 2,
473
+ "name": "BoilerTempWater",
474
+ "endpoint": "9593045b235c321c",
475
+ "subscription": "s2",
476
+ "startImmediately": true,
477
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.kitchen:Parameters.kitchen:BoilerTempWater",
478
+ "samplingInterval": "100",
479
+ "discardOldest": true,
480
+ "queueSize": 10,
481
+ "x": 320,
482
+ "y": 600,
483
+ "wires": [
484
+ [
485
+ "33eb2077b9bb31d1",
486
+ "528f9a8a184a078a"
487
+ ]
488
+ ]
489
+ },
490
+ {
491
+ "id": "a66ec0e0a1360f34",
492
+ "type": "ui-chart",
493
+ "z": "8914237e0d8e46c7",
494
+ "g": "517edf10f355e464",
495
+ "group": "0eeeefa89ae3646a",
496
+ "name": "Water Tank Level ",
497
+ "label": "Tank",
498
+ "order": 12,
499
+ "chartType": "line",
500
+ "category": "",
501
+ "categoryType": "none",
502
+ "xAxisLabel": "date",
503
+ "xAxisProperty": "timestamp",
504
+ "xAxisPropertyType": "property",
505
+ "xAxisType": "time",
506
+ "xAxisFormat": "",
507
+ "xAxisFormatType": "HH:mm:ss",
508
+ "xmin": "",
509
+ "xmax": "",
510
+ "yAxisLabel": "",
511
+ "yAxisProperty": "value",
512
+ "yAxisPropertyType": "property",
513
+ "ymin": "0",
514
+ "ymax": "1200",
515
+ "bins": 10,
516
+ "action": "append",
517
+ "stackSeries": false,
518
+ "pointShape": "circle",
519
+ "pointRadius": 4,
520
+ "showLegend": true,
521
+ "removeOlder": "3",
522
+ "removeOlderUnit": "60",
523
+ "removeOlderPoints": "",
524
+ "colors": [
525
+ "#0095ff",
526
+ "#ff0000",
527
+ "#ff7f0e",
528
+ "#2ca02c",
529
+ "#a347e1",
530
+ "#d62728",
531
+ "#ff9896",
532
+ "#9467bd",
533
+ "#c5b0d5"
534
+ ],
535
+ "textColor": [
536
+ "#666666"
537
+ ],
538
+ "textColorDefault": true,
539
+ "gridColor": [
540
+ "#e5e5e5"
541
+ ],
542
+ "gridColorDefault": true,
543
+ "width": "3",
544
+ "height": "4",
545
+ "className": "",
546
+ "interpolation": "bezier",
547
+ "x": 770,
548
+ "y": 220,
549
+ "wires": [
550
+ []
551
+ ]
552
+ },
553
+ {
554
+ "id": "400b6980b1a2cd45",
555
+ "type": "ui-gauge",
556
+ "z": "8914237e0d8e46c7",
557
+ "g": "684238fb58a91415",
558
+ "name": "Temperature",
559
+ "group": "0eeeefa89ae3646a",
560
+ "order": 11,
561
+ "width": "3",
562
+ "height": "3",
563
+ "gtype": "gauge-half",
564
+ "gstyle": "needle",
565
+ "title": "Temperature",
566
+ "units": "°C",
567
+ "icon": "thermometer",
568
+ "prefix": "",
569
+ "suffix": "°C",
570
+ "segments": [
571
+ {
572
+ "from": "0",
573
+ "color": "#5cd65c"
574
+ },
575
+ {
576
+ "from": "60",
577
+ "color": "#ffc800"
578
+ },
579
+ {
580
+ "from": "90",
581
+ "color": "#ea5353"
582
+ }
583
+ ],
584
+ "min": 0,
585
+ "max": "120",
586
+ "sizeThickness": 16,
587
+ "sizeGap": 4,
588
+ "sizeKeyThickness": 8,
589
+ "styleRounded": true,
590
+ "styleGlow": false,
591
+ "className": "",
592
+ "x": 750,
593
+ "y": 600,
594
+ "wires": []
595
+ },
596
+ {
597
+ "id": "9122c1157cbe0b5e",
598
+ "type": "ui-gauge",
599
+ "z": "8914237e0d8e46c7",
600
+ "g": "517edf10f355e464",
601
+ "name": "Water Tank Level",
602
+ "group": "0eeeefa89ae3646a",
603
+ "order": 8,
604
+ "width": "3",
605
+ "height": "3",
606
+ "gtype": "gauge-half",
607
+ "gstyle": "needle",
608
+ "title": "Water Tank Level",
609
+ "units": "mL",
610
+ "icon": "",
611
+ "prefix": "",
612
+ "suffix": "",
613
+ "segments": [
614
+ {
615
+ "from": "0",
616
+ "color": "#ff0000"
617
+ },
618
+ {
619
+ "from": "100",
620
+ "color": "#ffc800"
621
+ },
622
+ {
623
+ "from": "200",
624
+ "color": "#5cd65c"
625
+ },
626
+ {
627
+ "from": "1000",
628
+ "color": "#ffc800"
629
+ },
630
+ {
631
+ "from": "1100",
632
+ "color": "#ea5353"
633
+ }
634
+ ],
635
+ "min": 0,
636
+ "max": "1200",
637
+ "sizeThickness": "60",
638
+ "sizeGap": "6",
639
+ "sizeKeyThickness": 8,
640
+ "styleRounded": true,
641
+ "styleGlow": false,
642
+ "className": "",
643
+ "x": 770,
644
+ "y": 180,
645
+ "wires": []
646
+ },
647
+ {
648
+ "id": "44eeed6c80419b5f",
649
+ "type": "ui-button",
650
+ "z": "8914237e0d8e46c7",
651
+ "g": "a872632f0795dffe",
652
+ "group": "0eeeefa89ae3646a",
653
+ "name": "Fill Tank",
654
+ "label": "Filll Tank",
655
+ "order": 7,
656
+ "width": "28",
657
+ "height": "1",
658
+ "emulateClick": false,
659
+ "tooltip": "",
660
+ "color": "",
661
+ "bgcolor": "",
662
+ "className": "",
663
+ "icon": "",
664
+ "iconPosition": "left",
665
+ "payload": "",
666
+ "payloadType": "str",
667
+ "topic": "topic",
668
+ "topicType": "msg",
669
+ "buttonColor": "",
670
+ "textColor": "",
671
+ "iconColor": "",
672
+ "enableClick": true,
673
+ "enablePointerdown": false,
674
+ "pointerdownPayload": "",
675
+ "pointerdownPayloadType": "str",
676
+ "enablePointerup": false,
677
+ "pointerupPayload": "",
678
+ "pointerupPayloadType": "str",
679
+ "x": 1220,
680
+ "y": 360,
681
+ "wires": [
682
+ [
683
+ "17f15759ea0b4678"
684
+ ]
685
+ ]
686
+ },
687
+ {
688
+ "id": "7b496ba60d331069",
689
+ "type": "ui-button",
690
+ "z": "8914237e0d8e46c7",
691
+ "g": "a872632f0795dffe",
692
+ "group": "0eeeefa89ae3646a",
693
+ "name": "Make Mocha",
694
+ "label": "Make Mocha",
695
+ "order": 6,
696
+ "width": "28",
697
+ "height": "1",
698
+ "emulateClick": false,
699
+ "tooltip": "",
700
+ "color": "",
701
+ "bgcolor": "",
702
+ "className": "",
703
+ "icon": "",
704
+ "iconPosition": "left",
705
+ "payload": "{\"RecipeName\":\"Mocha\"}",
706
+ "payloadType": "json",
707
+ "topic": "topic",
708
+ "topicType": "msg",
709
+ "buttonColor": "",
710
+ "textColor": "",
711
+ "iconColor": "",
712
+ "enableClick": true,
713
+ "enablePointerdown": false,
714
+ "pointerdownPayload": "",
715
+ "pointerdownPayloadType": "str",
716
+ "enablePointerup": false,
717
+ "pointerupPayload": "",
718
+ "pointerupPayloadType": "str",
719
+ "x": 1210,
720
+ "y": 260,
721
+ "wires": [
722
+ [
723
+ "5163f0e3c15147e2"
724
+ ]
725
+ ]
726
+ },
727
+ {
728
+ "id": "4f1eb368f3fb45c1",
729
+ "type": "ui-chart",
730
+ "z": "8914237e0d8e46c7",
731
+ "g": "684238fb58a91415",
732
+ "group": "0eeeefa89ae3646a",
733
+ "name": "Temperature",
734
+ "label": "Water Temperature",
735
+ "order": 15,
736
+ "chartType": "line",
737
+ "category": "topic",
738
+ "categoryType": "msg",
739
+ "xAxisLabel": "Temperature",
740
+ "xAxisProperty": "timestamp",
741
+ "xAxisPropertyType": "property",
742
+ "xAxisType": "time",
743
+ "xAxisFormat": "",
744
+ "xAxisFormatType": "HH:mm:ss",
745
+ "xmin": "",
746
+ "xmax": "",
747
+ "yAxisLabel": "",
748
+ "yAxisProperty": "value",
749
+ "yAxisPropertyType": "property",
750
+ "ymin": "10",
751
+ "ymax": "150",
752
+ "bins": 10,
753
+ "action": "append",
754
+ "stackSeries": false,
755
+ "pointShape": "line",
756
+ "pointRadius": "1",
757
+ "showLegend": true,
758
+ "removeOlder": "3",
759
+ "removeOlderUnit": "60",
760
+ "removeOlderPoints": "",
761
+ "colors": [
762
+ "#0095ff",
763
+ "#ff0000",
764
+ "#ff7f0e",
765
+ "#2ca02c",
766
+ "#a347e1",
767
+ "#d62728",
768
+ "#ff9896",
769
+ "#9467bd",
770
+ "#c5b0d5"
771
+ ],
772
+ "textColor": [
773
+ "#6a4444"
774
+ ],
775
+ "textColorDefault": false,
776
+ "gridColor": [
777
+ "#e5e5e5"
778
+ ],
779
+ "gridColorDefault": false,
780
+ "width": "3",
781
+ "height": "4",
782
+ "className": "",
783
+ "interpolation": "bezier",
784
+ "x": 750,
785
+ "y": 640,
786
+ "wires": [
787
+ []
788
+ ]
789
+ },
790
+ {
791
+ "id": "e97157a71ff3fc6b",
792
+ "type": "function",
793
+ "z": "8914237e0d8e46c7",
794
+ "g": "517edf10f355e464",
795
+ "name": "adapt payload",
796
+ "func": "return {\n payload: {\n value: Math.floor(msg.payload*10)/10,\n timestamp: new Date(msg.sourceTimestamp).getTime()\n\n }\n};",
797
+ "outputs": 1,
798
+ "timeout": 0,
799
+ "noerr": 0,
800
+ "initialize": "",
801
+ "finalize": "",
802
+ "libs": [],
803
+ "x": 560,
804
+ "y": 220,
805
+ "wires": [
806
+ [
807
+ "a66ec0e0a1360f34"
808
+ ]
809
+ ]
810
+ },
811
+ {
812
+ "id": "2c7b916b70107153",
813
+ "type": "OpcUa-Client2-Explore",
814
+ "z": "8914237e0d8e46c7",
815
+ "g": "665736b8cbeb246d",
816
+ "inputs": 1,
817
+ "output": 4,
818
+ "name": "",
819
+ "endpoint": "9593045b235c321c",
820
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.kitchen:Parameters",
821
+ "outputType": "AliasedBrowsePath",
822
+ "excludeEmpty": false,
823
+ "followOrganizes": true,
824
+ "x": 460,
825
+ "y": 1800,
826
+ "wires": [
827
+ [
828
+ "eeaa86a8240214df",
829
+ "a1492e996fe8302a"
830
+ ]
831
+ ]
832
+ },
833
+ {
834
+ "id": "eeaa86a8240214df",
835
+ "type": "debug",
836
+ "z": "8914237e0d8e46c7",
837
+ "g": "665736b8cbeb246d",
838
+ "name": "debug 8",
839
+ "active": false,
840
+ "tosidebar": true,
841
+ "console": false,
842
+ "tostatus": false,
843
+ "complete": "false",
844
+ "statusVal": "",
845
+ "statusType": "auto",
846
+ "x": 640,
847
+ "y": 1760,
848
+ "wires": []
849
+ },
850
+ {
851
+ "id": "42fea19e7e56afbc",
852
+ "type": "inject",
853
+ "z": "8914237e0d8e46c7",
854
+ "g": "665736b8cbeb246d",
855
+ "name": "AutoStart",
856
+ "props": [],
857
+ "repeat": "",
858
+ "crontab": "",
859
+ "once": true,
860
+ "onceDelay": 0.1,
861
+ "topic": "",
862
+ "x": 300,
863
+ "y": 1800,
864
+ "wires": [
865
+ [
866
+ "2c7b916b70107153"
867
+ ]
868
+ ]
869
+ },
870
+ {
871
+ "id": "072413d285aeb40e",
872
+ "type": "OpcUa-Client2-Monitor",
873
+ "z": "8914237e0d8e46c7",
874
+ "g": "665736b8cbeb246d",
875
+ "inputs": 1,
876
+ "output": 2,
877
+ "name": "",
878
+ "endpoint": "9593045b235c321c",
879
+ "subscription": "s0",
880
+ "startImmediately": false,
881
+ "nodeId": "",
882
+ "samplingInterval": 1000,
883
+ "discardOldest": true,
884
+ "queueSize": 10,
885
+ "x": 820,
886
+ "y": 1800,
887
+ "wires": [
888
+ [
889
+ "f64d872549983d6f",
890
+ "143a262a2cbfe451"
891
+ ]
892
+ ]
893
+ },
894
+ {
895
+ "id": "060ff48047273061",
896
+ "type": "OpcUa-Client2-Read",
897
+ "z": "8914237e0d8e46c7",
898
+ "d": true,
899
+ "inputs": 1,
900
+ "output": 4,
901
+ "name": "",
902
+ "endpoint": "9593045b235c321c",
903
+ "attributeId": "Value",
904
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineB.kitchen:Parameters.sterfive:HeaterStatus",
905
+ "outputType": "DataValue",
906
+ "x": 390,
907
+ "y": 2140,
908
+ "wires": [
909
+ [
910
+ "4bd4451ace94e0bd"
911
+ ],
912
+ []
913
+ ]
914
+ },
915
+ {
916
+ "id": "4bd4451ace94e0bd",
917
+ "type": "debug",
918
+ "z": "8914237e0d8e46c7",
919
+ "d": true,
920
+ "name": "debug 9",
921
+ "active": false,
922
+ "tosidebar": true,
923
+ "console": false,
924
+ "tostatus": false,
925
+ "complete": "false",
926
+ "statusVal": "",
927
+ "statusType": "auto",
928
+ "x": 580,
929
+ "y": 2140,
930
+ "wires": []
931
+ },
932
+ {
933
+ "id": "b299f3e38929cbba",
934
+ "type": "inject",
935
+ "z": "8914237e0d8e46c7",
936
+ "d": true,
937
+ "name": "",
938
+ "props": [],
939
+ "repeat": "",
940
+ "crontab": "",
941
+ "once": false,
942
+ "onceDelay": 0.1,
943
+ "topic": "",
944
+ "x": 210,
945
+ "y": 2140,
946
+ "wires": [
947
+ [
948
+ "060ff48047273061"
949
+ ]
950
+ ]
951
+ },
952
+ {
953
+ "id": "f64d872549983d6f",
954
+ "type": "debug",
955
+ "z": "8914237e0d8e46c7",
956
+ "g": "665736b8cbeb246d",
957
+ "name": "debug 11",
958
+ "active": false,
959
+ "tosidebar": true,
960
+ "console": false,
961
+ "tostatus": false,
962
+ "complete": "false",
963
+ "statusVal": "",
964
+ "statusType": "auto",
965
+ "x": 1020,
966
+ "y": 1760,
967
+ "wires": []
968
+ },
969
+ {
970
+ "id": "581f8c4a67bdef2d",
971
+ "type": "OpcUa-Client2-Call",
972
+ "z": "8914237e0d8e46c7",
973
+ "d": true,
974
+ "inputs": 1,
975
+ "output": 4,
976
+ "name": "FillTank",
977
+ "endpoint": "9593045b235c321c",
978
+ "action": "read",
979
+ "methodId": "/di:DeviceSet/ns1:CoffeMachineC.di:MethodSet.sterfive:FillTank",
980
+ "objectId": "/2:DeviceSet/1:CoffeMachineC",
981
+ "x": 930,
982
+ "y": 2120,
983
+ "wires": [
984
+ [],
985
+ []
986
+ ]
987
+ },
988
+ {
989
+ "id": "8f72fb35eecaaca4",
990
+ "type": "inject",
991
+ "z": "8914237e0d8e46c7",
992
+ "d": true,
993
+ "name": "",
994
+ "props": [
995
+ {
996
+ "p": "payload"
997
+ },
998
+ {
999
+ "p": "topic",
1000
+ "vt": "str"
1001
+ }
1002
+ ],
1003
+ "repeat": "",
1004
+ "crontab": "",
1005
+ "once": false,
1006
+ "onceDelay": 0.1,
1007
+ "topic": "",
1008
+ "payload": "",
1009
+ "payloadType": "date",
1010
+ "x": 780,
1011
+ "y": 2120,
1012
+ "wires": [
1013
+ [
1014
+ "581f8c4a67bdef2d"
1015
+ ]
1016
+ ]
1017
+ },
1018
+ {
1019
+ "id": "49367ab61a7d3443",
1020
+ "type": "OpcUa-Client2-Monitor",
1021
+ "z": "8914237e0d8e46c7",
1022
+ "g": "d22591b8e78ebe7d",
1023
+ "inputs": 0,
1024
+ "output": 2,
1025
+ "name": "Milk Tank Level",
1026
+ "endpoint": "9593045b235c321c",
1027
+ "subscription": "s0",
1028
+ "startImmediately": true,
1029
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.kitchen:Parameters.sterfive:MilkTankLevel",
1030
+ "samplingInterval": "100",
1031
+ "discardOldest": true,
1032
+ "queueSize": 10,
1033
+ "x": 320,
1034
+ "y": 320,
1035
+ "wires": [
1036
+ [
1037
+ "d341f2efd4821785",
1038
+ "c5df8a8624445a8a"
1039
+ ]
1040
+ ]
1041
+ },
1042
+ {
1043
+ "id": "bbfc30b4f5fe5cdd",
1044
+ "type": "ui-gauge",
1045
+ "z": "8914237e0d8e46c7",
1046
+ "g": "d22591b8e78ebe7d",
1047
+ "name": "Milk Level",
1048
+ "group": "0eeeefa89ae3646a",
1049
+ "order": 9,
1050
+ "width": "3",
1051
+ "height": "3",
1052
+ "gtype": "gauge-half",
1053
+ "gstyle": "needle",
1054
+ "title": "Milk Level",
1055
+ "units": "ùmL",
1056
+ "icon": "",
1057
+ "prefix": "",
1058
+ "suffix": "",
1059
+ "segments": [
1060
+ {
1061
+ "from": "0",
1062
+ "color": "#d65c5c"
1063
+ },
1064
+ {
1065
+ "from": "250",
1066
+ "color": "#2dd248"
1067
+ },
1068
+ {
1069
+ "from": "1000",
1070
+ "color": "#ffc800"
1071
+ },
1072
+ {
1073
+ "from": "1500",
1074
+ "color": "#ea5353"
1075
+ }
1076
+ ],
1077
+ "min": 0,
1078
+ "max": "1500",
1079
+ "sizeThickness": 16,
1080
+ "sizeGap": 4,
1081
+ "sizeKeyThickness": 8,
1082
+ "styleRounded": true,
1083
+ "styleGlow": false,
1084
+ "className": "",
1085
+ "x": 740,
1086
+ "y": 320,
1087
+ "wires": []
1088
+ },
1089
+ {
1090
+ "id": "ab80657e6899a890",
1091
+ "type": "ui-chart",
1092
+ "z": "8914237e0d8e46c7",
1093
+ "g": "d22591b8e78ebe7d",
1094
+ "group": "0eeeefa89ae3646a",
1095
+ "name": "Milk Tank Level ",
1096
+ "label": "Tank",
1097
+ "order": 13,
1098
+ "chartType": "line",
1099
+ "category": "",
1100
+ "categoryType": "none",
1101
+ "xAxisLabel": "date",
1102
+ "xAxisProperty": "timestamp",
1103
+ "xAxisPropertyType": "property",
1104
+ "xAxisType": "time",
1105
+ "xAxisFormat": "",
1106
+ "xAxisFormatType": "HH:mm:ss",
1107
+ "xmin": "",
1108
+ "xmax": "",
1109
+ "yAxisLabel": "",
1110
+ "yAxisProperty": "value",
1111
+ "yAxisPropertyType": "property",
1112
+ "ymin": "0",
1113
+ "ymax": "1200",
1114
+ "bins": 10,
1115
+ "action": "append",
1116
+ "stackSeries": false,
1117
+ "pointShape": "circle",
1118
+ "pointRadius": 4,
1119
+ "showLegend": true,
1120
+ "removeOlder": "3",
1121
+ "removeOlderUnit": "60",
1122
+ "removeOlderPoints": "",
1123
+ "colors": [
1124
+ "#0095ff",
1125
+ "#ff0000",
1126
+ "#ff7f0e",
1127
+ "#2ca02c",
1128
+ "#a347e1",
1129
+ "#d62728",
1130
+ "#ff9896",
1131
+ "#9467bd",
1132
+ "#c5b0d5"
1133
+ ],
1134
+ "textColor": [
1135
+ "#666666"
1136
+ ],
1137
+ "textColorDefault": true,
1138
+ "gridColor": [
1139
+ "#e5e5e5"
1140
+ ],
1141
+ "gridColorDefault": true,
1142
+ "width": "3",
1143
+ "height": "4",
1144
+ "className": "",
1145
+ "interpolation": "bezier",
1146
+ "x": 760,
1147
+ "y": 360,
1148
+ "wires": [
1149
+ []
1150
+ ]
1151
+ },
1152
+ {
1153
+ "id": "d341f2efd4821785",
1154
+ "type": "function",
1155
+ "z": "8914237e0d8e46c7",
1156
+ "g": "d22591b8e78ebe7d",
1157
+ "name": "adapt payload",
1158
+ "func": "return {\n payload: {\n value: Math.floor(msg.payload*10)/10,\n timestamp: new Date(msg.sourceTimestamp).getTime()\n\n }\n};",
1159
+ "outputs": 1,
1160
+ "timeout": 0,
1161
+ "noerr": 0,
1162
+ "initialize": "",
1163
+ "finalize": "",
1164
+ "libs": [],
1165
+ "x": 560,
1166
+ "y": 360,
1167
+ "wires": [
1168
+ [
1169
+ "ab80657e6899a890"
1170
+ ]
1171
+ ]
1172
+ },
1173
+ {
1174
+ "id": "0ab25a3cc9a2fb4c",
1175
+ "type": "OpcUa-Client2-Monitor",
1176
+ "z": "8914237e0d8e46c7",
1177
+ "g": "29542b83f026fb7b",
1178
+ "inputs": 0,
1179
+ "output": 2,
1180
+ "name": "Coffe Beam Level",
1181
+ "endpoint": "9593045b235c321c",
1182
+ "subscription": "s0",
1183
+ "startImmediately": true,
1184
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.kitchen:Parameters.sterfive:CoffeeBeanLevel",
1185
+ "samplingInterval": "100",
1186
+ "discardOldest": true,
1187
+ "queueSize": 10,
1188
+ "x": 330,
1189
+ "y": 460,
1190
+ "wires": [
1191
+ [
1192
+ "d67dc25d267b8aab",
1193
+ "4d754c69f2e0b376"
1194
+ ]
1195
+ ]
1196
+ },
1197
+ {
1198
+ "id": "f64ae2163a90f520",
1199
+ "type": "ui-gauge",
1200
+ "z": "8914237e0d8e46c7",
1201
+ "g": "29542b83f026fb7b",
1202
+ "name": "Cofee Beam",
1203
+ "group": "0eeeefa89ae3646a",
1204
+ "order": 10,
1205
+ "width": "3",
1206
+ "height": "3",
1207
+ "gtype": "gauge-half",
1208
+ "gstyle": "needle",
1209
+ "title": "Coffee Beam Level",
1210
+ "units": "grams",
1211
+ "icon": "",
1212
+ "prefix": "",
1213
+ "suffix": "",
1214
+ "segments": [
1215
+ {
1216
+ "from": "0",
1217
+ "color": "#ffc800"
1218
+ },
1219
+ {
1220
+ "from": "30",
1221
+ "color": "#5cd65c"
1222
+ },
1223
+ {
1224
+ "from": "470",
1225
+ "color": "#ea5353"
1226
+ }
1227
+ ],
1228
+ "min": 0,
1229
+ "max": "600",
1230
+ "sizeThickness": 16,
1231
+ "sizeGap": 4,
1232
+ "sizeKeyThickness": 8,
1233
+ "styleRounded": true,
1234
+ "styleGlow": false,
1235
+ "className": "",
1236
+ "x": 750,
1237
+ "y": 460,
1238
+ "wires": []
1239
+ },
1240
+ {
1241
+ "id": "ffdc07a2a8644ee7",
1242
+ "type": "ui-chart",
1243
+ "z": "8914237e0d8e46c7",
1244
+ "g": "29542b83f026fb7b",
1245
+ "group": "0eeeefa89ae3646a",
1246
+ "name": "Coffee Beal Level ",
1247
+ "label": "Tank",
1248
+ "order": 14,
1249
+ "chartType": "line",
1250
+ "category": "",
1251
+ "categoryType": "none",
1252
+ "xAxisLabel": "date",
1253
+ "xAxisProperty": "timestamp",
1254
+ "xAxisPropertyType": "property",
1255
+ "xAxisType": "time",
1256
+ "xAxisFormat": "",
1257
+ "xAxisFormatType": "HH:mm:ss",
1258
+ "xmin": "",
1259
+ "xmax": "",
1260
+ "yAxisLabel": "",
1261
+ "yAxisProperty": "value",
1262
+ "yAxisPropertyType": "property",
1263
+ "ymin": "0",
1264
+ "ymax": "600",
1265
+ "bins": 10,
1266
+ "action": "append",
1267
+ "stackSeries": false,
1268
+ "pointShape": "circle",
1269
+ "pointRadius": 4,
1270
+ "showLegend": true,
1271
+ "removeOlder": "3",
1272
+ "removeOlderUnit": "60",
1273
+ "removeOlderPoints": "",
1274
+ "colors": [
1275
+ "#0095ff",
1276
+ "#ff0000",
1277
+ "#ff7f0e",
1278
+ "#2ca02c",
1279
+ "#a347e1",
1280
+ "#d62728",
1281
+ "#ff9896",
1282
+ "#9467bd",
1283
+ "#c5b0d5"
1284
+ ],
1285
+ "textColor": [
1286
+ "#666666"
1287
+ ],
1288
+ "textColorDefault": true,
1289
+ "gridColor": [
1290
+ "#e5e5e5"
1291
+ ],
1292
+ "gridColorDefault": true,
1293
+ "width": "3",
1294
+ "height": "4",
1295
+ "className": "",
1296
+ "interpolation": "bezier",
1297
+ "x": 770,
1298
+ "y": 500,
1299
+ "wires": [
1300
+ []
1301
+ ]
1302
+ },
1303
+ {
1304
+ "id": "d67dc25d267b8aab",
1305
+ "type": "function",
1306
+ "z": "8914237e0d8e46c7",
1307
+ "g": "29542b83f026fb7b",
1308
+ "name": "adapt payload",
1309
+ "func": "return {\n payload: {\n value: Math.floor(msg.payload*10)/10,\n timestamp: new Date(msg.sourceTimestamp).getTime()\n\n }\n};",
1310
+ "outputs": 1,
1311
+ "timeout": 0,
1312
+ "noerr": 0,
1313
+ "initialize": "",
1314
+ "finalize": "",
1315
+ "libs": [],
1316
+ "x": 580,
1317
+ "y": 500,
1318
+ "wires": [
1319
+ [
1320
+ "ffdc07a2a8644ee7"
1321
+ ]
1322
+ ]
1323
+ },
1324
+ {
1325
+ "id": "33eb2077b9bb31d1",
1326
+ "type": "function",
1327
+ "z": "8914237e0d8e46c7",
1328
+ "g": "684238fb58a91415",
1329
+ "name": "adapt payload",
1330
+ "func": "return {\n payload: {\n value: Math.floor(msg.payload*10)/10,\n timestamp: new Date(msg.sourceTimestamp).getTime()\n\n }\n};",
1331
+ "outputs": 1,
1332
+ "timeout": 0,
1333
+ "noerr": 0,
1334
+ "initialize": "",
1335
+ "finalize": "",
1336
+ "libs": [],
1337
+ "x": 560,
1338
+ "y": 640,
1339
+ "wires": [
1340
+ [
1341
+ "4f1eb368f3fb45c1"
1342
+ ]
1343
+ ]
1344
+ },
1345
+ {
1346
+ "id": "d2a8ee6868d23307",
1347
+ "type": "function",
1348
+ "z": "8914237e0d8e46c7",
1349
+ "g": "517edf10f355e464",
1350
+ "name": "round",
1351
+ "func": "msg.payload = Math.ceil(msg.payload*10)/10\nreturn msg;",
1352
+ "outputs": 1,
1353
+ "timeout": 0,
1354
+ "noerr": 0,
1355
+ "initialize": "",
1356
+ "finalize": "",
1357
+ "libs": [],
1358
+ "x": 530,
1359
+ "y": 180,
1360
+ "wires": [
1361
+ [
1362
+ "9122c1157cbe0b5e",
1363
+ "0f373262c51c849b"
1364
+ ]
1365
+ ]
1366
+ },
1367
+ {
1368
+ "id": "528f9a8a184a078a",
1369
+ "type": "function",
1370
+ "z": "8914237e0d8e46c7",
1371
+ "g": "684238fb58a91415",
1372
+ "name": "round",
1373
+ "func": "msg.payload = Math.ceil(msg.payload*100)/100\nreturn msg;",
1374
+ "outputs": 1,
1375
+ "timeout": 0,
1376
+ "noerr": 0,
1377
+ "initialize": "",
1378
+ "finalize": "",
1379
+ "libs": [],
1380
+ "x": 530,
1381
+ "y": 600,
1382
+ "wires": [
1383
+ [
1384
+ "400b6980b1a2cd45"
1385
+ ]
1386
+ ]
1387
+ },
1388
+ {
1389
+ "id": "f4abb62d50e829d9",
1390
+ "type": "function",
1391
+ "z": "8914237e0d8e46c7",
1392
+ "g": "684238fb58a91415",
1393
+ "name": "round",
1394
+ "func": "msg.payload = Math.ceil(msg.payload*100)/100\nreturn msg;",
1395
+ "outputs": 1,
1396
+ "timeout": 0,
1397
+ "noerr": 0,
1398
+ "initialize": "",
1399
+ "finalize": "",
1400
+ "libs": [],
1401
+ "x": 530,
1402
+ "y": 600,
1403
+ "wires": [
1404
+ []
1405
+ ]
1406
+ },
1407
+ {
1408
+ "id": "4d754c69f2e0b376",
1409
+ "type": "function",
1410
+ "z": "8914237e0d8e46c7",
1411
+ "g": "29542b83f026fb7b",
1412
+ "name": "round",
1413
+ "func": "msg.payload = Math.ceil(msg.payload*1)/1;\nreturn msg;",
1414
+ "outputs": 1,
1415
+ "timeout": 0,
1416
+ "noerr": 0,
1417
+ "initialize": "",
1418
+ "finalize": "",
1419
+ "libs": [],
1420
+ "x": 550,
1421
+ "y": 460,
1422
+ "wires": [
1423
+ [
1424
+ "f64ae2163a90f520"
1425
+ ]
1426
+ ]
1427
+ },
1428
+ {
1429
+ "id": "c5df8a8624445a8a",
1430
+ "type": "function",
1431
+ "z": "8914237e0d8e46c7",
1432
+ "g": "d22591b8e78ebe7d",
1433
+ "name": "round",
1434
+ "func": "msg.payload = Math.ceil(msg.payload*1)/1\nreturn msg;",
1435
+ "outputs": 1,
1436
+ "timeout": 0,
1437
+ "noerr": 0,
1438
+ "initialize": "",
1439
+ "finalize": "",
1440
+ "libs": [],
1441
+ "x": 530,
1442
+ "y": 320,
1443
+ "wires": [
1444
+ [
1445
+ "bbfc30b4f5fe5cdd"
1446
+ ]
1447
+ ]
1448
+ },
1449
+ {
1450
+ "id": "3287809947131ac3",
1451
+ "type": "OpcUa-Client2-Monitor",
1452
+ "z": "8914237e0d8e46c7",
1453
+ "g": "684238fb58a91415",
1454
+ "inputs": 0,
1455
+ "output": 2,
1456
+ "name": "BoilerTempWater",
1457
+ "endpoint": "9593045b235c321c",
1458
+ "subscription": "s2",
1459
+ "startImmediately": true,
1460
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.kitchen:Parameters.kitchen:BoilerTempWater",
1461
+ "samplingInterval": "100",
1462
+ "discardOldest": true,
1463
+ "queueSize": 10,
1464
+ "x": 320,
1465
+ "y": 600,
1466
+ "wires": [
1467
+ []
1468
+ ]
1469
+ },
1470
+ {
1471
+ "id": "bc32ee4142fc26ab",
1472
+ "type": "OpcUa-Client2-Monitor",
1473
+ "z": "8914237e0d8e46c7",
1474
+ "g": "684238fb58a91415",
1475
+ "inputs": 0,
1476
+ "output": 2,
1477
+ "name": "BoilerTempWater",
1478
+ "endpoint": "9593045b235c321c",
1479
+ "subscription": "s2",
1480
+ "startImmediately": true,
1481
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.kitchen:Parameters.kitchen:BoilerTempWater",
1482
+ "samplingInterval": "250",
1483
+ "discardOldest": true,
1484
+ "queueSize": 10,
1485
+ "x": 320,
1486
+ "y": 600,
1487
+ "wires": [
1488
+ []
1489
+ ]
1490
+ },
1491
+ {
1492
+ "id": "f3ba9efdc12e30ce",
1493
+ "type": "OpcUa-Client2-Monitor",
1494
+ "z": "8914237e0d8e46c7",
1495
+ "g": "11f19caa7b9760b7",
1496
+ "inputs": 0,
1497
+ "output": 2,
1498
+ "name": "PumpStatus",
1499
+ "endpoint": "9593045b235c321c",
1500
+ "subscription": "s2",
1501
+ "startImmediately": true,
1502
+ "nodeId": "/2:DeviceSet/1:CoffeMachineA.3:Parameters.4:PumpStatus",
1503
+ "samplingInterval": "100",
1504
+ "discardOldest": true,
1505
+ "queueSize": 10,
1506
+ "x": 1150,
1507
+ "y": 840,
1508
+ "wires": [
1509
+ [
1510
+ "b8ba5e020aa48e2a",
1511
+ "7619f93616149cdc"
1512
+ ]
1513
+ ]
1514
+ },
1515
+ {
1516
+ "id": "24ab918428d73e5f",
1517
+ "type": "ui-chart",
1518
+ "z": "8914237e0d8e46c7",
1519
+ "g": "11f19caa7b9760b7",
1520
+ "group": "0eeeefa89ae3646a",
1521
+ "name": "Pump Status",
1522
+ "label": "Pump Status",
1523
+ "order": 18,
1524
+ "chartType": "line",
1525
+ "category": "topic",
1526
+ "categoryType": "msg",
1527
+ "xAxisLabel": "Pump Status",
1528
+ "xAxisProperty": "timestamp",
1529
+ "xAxisPropertyType": "property",
1530
+ "xAxisType": "time",
1531
+ "xAxisFormat": "",
1532
+ "xAxisFormatType": "HH:mm:ss",
1533
+ "xmin": "",
1534
+ "xmax": "",
1535
+ "yAxisLabel": "",
1536
+ "yAxisProperty": "payload",
1537
+ "yAxisPropertyType": "property",
1538
+ "ymin": "0",
1539
+ "ymax": "1.2",
1540
+ "bins": 10,
1541
+ "action": "append",
1542
+ "stackSeries": false,
1543
+ "pointShape": "false",
1544
+ "pointRadius": 4,
1545
+ "showLegend": true,
1546
+ "removeOlder": 1,
1547
+ "removeOlderUnit": "3600",
1548
+ "removeOlderPoints": "",
1549
+ "colors": [
1550
+ "#0095ff",
1551
+ "#ff0000",
1552
+ "#ff7f0e",
1553
+ "#2ca02c",
1554
+ "#a347e1",
1555
+ "#d62728",
1556
+ "#ff9896",
1557
+ "#9467bd",
1558
+ "#c5b0d5"
1559
+ ],
1560
+ "textColor": [
1561
+ "#666666"
1562
+ ],
1563
+ "textColorDefault": true,
1564
+ "gridColor": [
1565
+ "#e5e5e5"
1566
+ ],
1567
+ "gridColorDefault": true,
1568
+ "width": "8",
1569
+ "height": "5",
1570
+ "className": "",
1571
+ "interpolation": "step",
1572
+ "x": 1590,
1573
+ "y": 840,
1574
+ "wires": [
1575
+ []
1576
+ ]
1577
+ },
1578
+ {
1579
+ "id": "b8ba5e020aa48e2a",
1580
+ "type": "debug",
1581
+ "z": "8914237e0d8e46c7",
1582
+ "g": "11f19caa7b9760b7",
1583
+ "name": "debug 7",
1584
+ "active": false,
1585
+ "tosidebar": true,
1586
+ "console": false,
1587
+ "tostatus": false,
1588
+ "complete": "true",
1589
+ "targetType": "full",
1590
+ "statusVal": "",
1591
+ "statusType": "auto",
1592
+ "x": 1380,
1593
+ "y": 880,
1594
+ "wires": []
1595
+ },
1596
+ {
1597
+ "id": "3e9be0f18116b2c2",
1598
+ "type": "OpcUa-Client2-Monitor",
1599
+ "z": "8914237e0d8e46c7",
1600
+ "g": "b07d4a44ddb86adf",
1601
+ "inputs": 0,
1602
+ "output": 2,
1603
+ "name": "Heater Status",
1604
+ "endpoint": "9593045b235c321c",
1605
+ "subscription": "s2",
1606
+ "startImmediately": true,
1607
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.kitchen:Parameters.sterfive:HeaterStatus",
1608
+ "samplingInterval": "250",
1609
+ "discardOldest": true,
1610
+ "queueSize": 10,
1611
+ "x": 290,
1612
+ "y": 780,
1613
+ "wires": [
1614
+ [
1615
+ "2b573431a25e870f",
1616
+ "bd7c7f49e974f208"
1617
+ ]
1618
+ ]
1619
+ },
1620
+ {
1621
+ "id": "2b573431a25e870f",
1622
+ "type": "debug",
1623
+ "z": "8914237e0d8e46c7",
1624
+ "g": "b07d4a44ddb86adf",
1625
+ "name": "debug 10",
1626
+ "active": false,
1627
+ "tosidebar": true,
1628
+ "console": false,
1629
+ "tostatus": false,
1630
+ "complete": "true",
1631
+ "targetType": "full",
1632
+ "statusVal": "",
1633
+ "statusType": "auto",
1634
+ "x": 520,
1635
+ "y": 760,
1636
+ "wires": []
1637
+ },
1638
+ {
1639
+ "id": "68e0c3653588a07d",
1640
+ "type": "ui-chart",
1641
+ "z": "8914237e0d8e46c7",
1642
+ "g": "b07d4a44ddb86adf",
1643
+ "group": "0eeeefa89ae3646a",
1644
+ "name": "Heater Status 2",
1645
+ "label": "Heater Status",
1646
+ "order": 17,
1647
+ "chartType": "line",
1648
+ "category": "topic",
1649
+ "categoryType": "msg",
1650
+ "xAxisLabel": "Heater Status",
1651
+ "xAxisProperty": "timestamp",
1652
+ "xAxisPropertyType": "property",
1653
+ "xAxisType": "time",
1654
+ "xAxisFormat": "",
1655
+ "xAxisFormatType": "HH:mm:ss",
1656
+ "xmin": "",
1657
+ "xmax": "",
1658
+ "yAxisLabel": "",
1659
+ "yAxisProperty": "value",
1660
+ "yAxisPropertyType": "property",
1661
+ "ymin": "0",
1662
+ "ymax": "1",
1663
+ "bins": 10,
1664
+ "action": "append",
1665
+ "stackSeries": false,
1666
+ "pointShape": "false",
1667
+ "pointRadius": "0",
1668
+ "showLegend": true,
1669
+ "removeOlder": "3",
1670
+ "removeOlderUnit": "60",
1671
+ "removeOlderPoints": "",
1672
+ "colors": [
1673
+ "#0095ff",
1674
+ "#ff0000",
1675
+ "#ff7f0e",
1676
+ "#2ca02c",
1677
+ "#a347e1",
1678
+ "#d62728",
1679
+ "#ff9896",
1680
+ "#9467bd",
1681
+ "#c5b0d5"
1682
+ ],
1683
+ "textColor": [
1684
+ "#666666"
1685
+ ],
1686
+ "textColorDefault": true,
1687
+ "gridColor": [
1688
+ "#e5e5e5"
1689
+ ],
1690
+ "gridColorDefault": true,
1691
+ "width": "8",
1692
+ "height": "5",
1693
+ "className": "",
1694
+ "interpolation": "step",
1695
+ "x": 900,
1696
+ "y": 800,
1697
+ "wires": [
1698
+ []
1699
+ ]
1700
+ },
1701
+ {
1702
+ "id": "bd7c7f49e974f208",
1703
+ "type": "function",
1704
+ "z": "8914237e0d8e46c7",
1705
+ "g": "b07d4a44ddb86adf",
1706
+ "name": "function 5",
1707
+ "func": "\nfunction addDate(t, n){\n return (new Date((new Date(t)).getTime() + n));\n}\n// If this is the first message, initialize context.payload.\ncontext.payload = {\n timestamp: addDate(msg.sourceTimestamp,0),\n value: msg.payload\n}\n\nconst interval = 500;\n\n// Create the timer only once.\nif (!context.timer) {\n context.timer = setInterval(function () {\n context.payload.timestamp = addDate(context.payload.timestamp,interval);\n node.send({ payload: context.payload });\n }, interval);\n}\n\n\n// Return null so nothing is sent immediately from the input\nreturn null;",
1708
+ "outputs": 1,
1709
+ "timeout": 0,
1710
+ "noerr": 0,
1711
+ "initialize": "\n",
1712
+ "finalize": "clearInterval(context.timerId);",
1713
+ "libs": [],
1714
+ "x": 520,
1715
+ "y": 800,
1716
+ "wires": [
1717
+ [
1718
+ "68e0c3653588a07d",
1719
+ "d3b1d8b5c05c2b22"
1720
+ ]
1721
+ ]
1722
+ },
1723
+ {
1724
+ "id": "d3b1d8b5c05c2b22",
1725
+ "type": "debug",
1726
+ "z": "8914237e0d8e46c7",
1727
+ "g": "b07d4a44ddb86adf",
1728
+ "name": "debug 12",
1729
+ "active": false,
1730
+ "tosidebar": true,
1731
+ "console": false,
1732
+ "tostatus": false,
1733
+ "complete": "false",
1734
+ "statusVal": "",
1735
+ "statusType": "auto",
1736
+ "x": 700,
1737
+ "y": 840,
1738
+ "wires": []
1739
+ },
1740
+ {
1741
+ "id": "07bde3d3f85f2a40",
1742
+ "type": "inject",
1743
+ "z": "8914237e0d8e46c7",
1744
+ "g": "b07d4a44ddb86adf",
1745
+ "name": "",
1746
+ "props": [
1747
+ {
1748
+ "p": "serverTimestamp",
1749
+ "v": "",
1750
+ "vt": "date"
1751
+ },
1752
+ {
1753
+ "p": "sourceTimestamp",
1754
+ "v": "",
1755
+ "vt": "date"
1756
+ },
1757
+ {
1758
+ "p": "payload"
1759
+ }
1760
+ ],
1761
+ "repeat": "",
1762
+ "crontab": "",
1763
+ "once": false,
1764
+ "onceDelay": 0.1,
1765
+ "topic": "",
1766
+ "payload": "1",
1767
+ "payloadType": "str",
1768
+ "x": 310,
1769
+ "y": 840,
1770
+ "wires": [
1771
+ [
1772
+ "bd7c7f49e974f208"
1773
+ ]
1774
+ ]
1775
+ },
1776
+ {
1777
+ "id": "c369c3262a3b57fa",
1778
+ "type": "inject",
1779
+ "z": "8914237e0d8e46c7",
1780
+ "g": "b07d4a44ddb86adf",
1781
+ "name": "",
1782
+ "props": [
1783
+ {
1784
+ "p": "serverTimestamp",
1785
+ "v": "",
1786
+ "vt": "date"
1787
+ },
1788
+ {
1789
+ "p": "sourceTimestamp",
1790
+ "v": "",
1791
+ "vt": "date"
1792
+ },
1793
+ {
1794
+ "p": "payload"
1795
+ }
1796
+ ],
1797
+ "repeat": "",
1798
+ "crontab": "",
1799
+ "once": false,
1800
+ "onceDelay": 0.1,
1801
+ "topic": "",
1802
+ "payload": "0",
1803
+ "payloadType": "str",
1804
+ "x": 310,
1805
+ "y": 880,
1806
+ "wires": [
1807
+ [
1808
+ "bd7c7f49e974f208"
1809
+ ]
1810
+ ]
1811
+ },
1812
+ {
1813
+ "id": "7619f93616149cdc",
1814
+ "type": "function",
1815
+ "z": "8914237e0d8e46c7",
1816
+ "g": "11f19caa7b9760b7",
1817
+ "name": "function 1",
1818
+ "func": "\nfunction addDate(t, n){\n return (new Date((new Date(t)).getTime() + n));\n}\n// If this is the first message, initialize context.payload.\ncontext.payload = {\n timestamp: addDate(msg.sourceTimestamp,0),\n value: msg.payload\n}\n\nconst interval = 500;\n\n// Create the timer only once.\nif (!context.timer) {\n context.timer = setInterval(function () {\n context.payload.timestamp = addDate(context.payload.timestamp,interval);\n node.send({ payload: context.payload });\n }, interval);\n}\n\n\n// Return null so nothing is sent immediately from the input\nreturn null;",
1819
+ "outputs": 1,
1820
+ "timeout": 0,
1821
+ "noerr": 0,
1822
+ "initialize": "\n",
1823
+ "finalize": "clearInterval(context.timerId);",
1824
+ "libs": [],
1825
+ "x": 1380,
1826
+ "y": 840,
1827
+ "wires": [
1828
+ [
1829
+ "24ab918428d73e5f"
1830
+ ]
1831
+ ]
1832
+ },
1833
+ {
1834
+ "id": "f1f77b6afa4257f0",
1835
+ "type": "inject",
1836
+ "z": "8914237e0d8e46c7",
1837
+ "g": "b07d4a44ddb86adf",
1838
+ "name": "Clear ",
1839
+ "props": [
1840
+ {
1841
+ "p": "payload"
1842
+ }
1843
+ ],
1844
+ "repeat": "",
1845
+ "crontab": "",
1846
+ "once": false,
1847
+ "onceDelay": 0.1,
1848
+ "topic": "",
1849
+ "payload": "[]",
1850
+ "payloadType": "str",
1851
+ "x": 710,
1852
+ "y": 760,
1853
+ "wires": [
1854
+ [
1855
+ "68e0c3653588a07d"
1856
+ ]
1857
+ ]
1858
+ },
1859
+ {
1860
+ "id": "c9717ac11b53672e",
1861
+ "type": "function",
1862
+ "z": "8914237e0d8e46c7",
1863
+ "g": "62d148a7e9f5c520",
1864
+ "name": "enum to string",
1865
+ "func": "switch(msg.payload) {\n case 0:\n msg.payload = \"Off\";\n break;\n case 1:\n msg.payload = \"Standby\";\n break;\n case 2:\n msg.payload = \"Error\";\n break;\n case 3:\n msg.payload = \"Cleaning\";\n break;\n case 4:\n msg.payload = \"Serving Coffee\";\n break;\n case 5:\n msg.payload = \"Under Maintenance\";\n break;\n default:\n msg.payload = msg.payload;\n break;\n\n}\n// msg.payload = msg.payload;\nreturn msg;\n\n/*\n\nexport enum EnumCoffeeMachineModeEx {\n Off = 0,\n Standby = 1,\n Error = 2,\n Cleaning = 3,\n\n // not in spec !!!\n ServingCoffee = 4,\n\n UnderMaintenance = 5, // like filling coffee\n\n}\n*/",
1866
+ "outputs": 1,
1867
+ "timeout": 0,
1868
+ "noerr": 0,
1869
+ "initialize": "",
1870
+ "finalize": "",
1871
+ "libs": [],
1872
+ "x": 1360,
1873
+ "y": 740,
1874
+ "wires": [
1875
+ [
1876
+ "798535950531337a"
1877
+ ]
1878
+ ]
1879
+ },
1880
+ {
1881
+ "id": "3a8c7eb7dc515e34",
1882
+ "type": "OpcUa-Client2-Monitor",
1883
+ "z": "8914237e0d8e46c7",
1884
+ "g": "62d148a7e9f5c520",
1885
+ "inputs": 0,
1886
+ "output": 2,
1887
+ "name": "CurrentState",
1888
+ "endpoint": "9593045b235c321c",
1889
+ "subscription": "s2",
1890
+ "startImmediately": true,
1891
+ "nodeId": "/2:DeviceSet/1:CoffeMachineA.3:Parameters.3:CurrentState",
1892
+ "samplingInterval": "100",
1893
+ "discardOldest": true,
1894
+ "queueSize": 10,
1895
+ "x": 1150,
1896
+ "y": 740,
1897
+ "wires": [
1898
+ [
1899
+ "c9717ac11b53672e"
1900
+ ]
1901
+ ]
1902
+ },
1903
+ {
1904
+ "id": "798535950531337a",
1905
+ "type": "ui-markdown",
1906
+ "z": "8914237e0d8e46c7",
1907
+ "g": "62d148a7e9f5c520",
1908
+ "group": "0eeeefa89ae3646a",
1909
+ "name": "",
1910
+ "order": 2,
1911
+ "width": 0,
1912
+ "height": 0,
1913
+ "content": "# Status: {{msg.payload}}",
1914
+ "className": "",
1915
+ "x": 1590,
1916
+ "y": 740,
1917
+ "wires": [
1918
+ []
1919
+ ]
1920
+ },
1921
+ {
1922
+ "id": "1c3d6230a57c852c",
1923
+ "type": "OpcUa-Client2-Call",
1924
+ "z": "8914237e0d8e46c7",
1925
+ "g": "a872632f0795dffe",
1926
+ "inputs": 1,
1927
+ "output": 4,
1928
+ "name": "Start",
1929
+ "endpoint": "9593045b235c321c",
1930
+ "action": "read",
1931
+ "methodId": "/di:DeviceSet/ns1:CoffeMachineA.di:MethodSet.sterfive:Start",
1932
+ "objectId": "/di:DeviceSet/ns1:CoffeMachineA",
1933
+ "x": 1450,
1934
+ "y": 420,
1935
+ "wires": [
1936
+ [],
1937
+ []
1938
+ ]
1939
+ },
1940
+ {
1941
+ "id": "c172f527ba188866",
1942
+ "type": "inject",
1943
+ "z": "8914237e0d8e46c7",
1944
+ "g": "a872632f0795dffe",
1945
+ "name": "",
1946
+ "props": [],
1947
+ "repeat": "",
1948
+ "crontab": "",
1949
+ "once": false,
1950
+ "onceDelay": 0.1,
1951
+ "topic": "",
1952
+ "x": 1230,
1953
+ "y": 420,
1954
+ "wires": [
1955
+ [
1956
+ "1c3d6230a57c852c"
1957
+ ]
1958
+ ]
1959
+ },
1960
+ {
1961
+ "id": "ae3fe0588bcec600",
1962
+ "type": "ui-button",
1963
+ "z": "8914237e0d8e46c7",
1964
+ "g": "a872632f0795dffe",
1965
+ "group": "0eeeefa89ae3646a",
1966
+ "name": "Start",
1967
+ "label": "Start",
1968
+ "order": 3,
1969
+ "width": "12",
1970
+ "height": "1",
1971
+ "emulateClick": false,
1972
+ "tooltip": "",
1973
+ "color": "",
1974
+ "bgcolor": "",
1975
+ "className": "",
1976
+ "icon": "",
1977
+ "iconPosition": "left",
1978
+ "payload": "",
1979
+ "payloadType": "str",
1980
+ "topic": "topic",
1981
+ "topicType": "msg",
1982
+ "buttonColor": "",
1983
+ "textColor": "",
1984
+ "iconColor": "",
1985
+ "enableClick": true,
1986
+ "enablePointerdown": false,
1987
+ "pointerdownPayload": "",
1988
+ "pointerdownPayloadType": "str",
1989
+ "enablePointerup": false,
1990
+ "pointerupPayload": "",
1991
+ "pointerupPayloadType": "str",
1992
+ "x": 1230,
1993
+ "y": 460,
1994
+ "wires": [
1995
+ [
1996
+ "1c3d6230a57c852c"
1997
+ ]
1998
+ ]
1999
+ },
2000
+ {
2001
+ "id": "83de8924a1f6f2a5",
2002
+ "type": "OpcUa-Client2-Call",
2003
+ "z": "8914237e0d8e46c7",
2004
+ "g": "a872632f0795dffe",
2005
+ "inputs": 1,
2006
+ "output": 4,
2007
+ "name": "Stop",
2008
+ "endpoint": "9593045b235c321c",
2009
+ "action": "read",
2010
+ "methodId": "/di:DeviceSet/ns1:CoffeMachineA.di:MethodSet.sterfive:Stop",
2011
+ "objectId": "/di:DeviceSet/ns1:CoffeMachineA",
2012
+ "x": 1440,
2013
+ "y": 520,
2014
+ "wires": [
2015
+ [],
2016
+ []
2017
+ ]
2018
+ },
2019
+ {
2020
+ "id": "807487cd9637d0e1",
2021
+ "type": "inject",
2022
+ "z": "8914237e0d8e46c7",
2023
+ "g": "a872632f0795dffe",
2024
+ "name": "",
2025
+ "props": [],
2026
+ "repeat": "",
2027
+ "crontab": "",
2028
+ "once": false,
2029
+ "onceDelay": 0.1,
2030
+ "topic": "",
2031
+ "x": 1230,
2032
+ "y": 520,
2033
+ "wires": [
2034
+ [
2035
+ "83de8924a1f6f2a5"
2036
+ ]
2037
+ ]
2038
+ },
2039
+ {
2040
+ "id": "e181ef3ed9e6dc40",
2041
+ "type": "ui-button",
2042
+ "z": "8914237e0d8e46c7",
2043
+ "g": "a872632f0795dffe",
2044
+ "group": "0eeeefa89ae3646a",
2045
+ "name": "Stop",
2046
+ "label": "Stop",
2047
+ "order": 5,
2048
+ "width": "12",
2049
+ "height": "1",
2050
+ "emulateClick": true,
2051
+ "tooltip": "",
2052
+ "color": "",
2053
+ "bgcolor": "",
2054
+ "className": "",
2055
+ "icon": "",
2056
+ "iconPosition": "left",
2057
+ "payload": "",
2058
+ "payloadType": "str",
2059
+ "topic": "topic",
2060
+ "topicType": "msg",
2061
+ "buttonColor": "",
2062
+ "textColor": "",
2063
+ "iconColor": "",
2064
+ "enableClick": true,
2065
+ "enablePointerdown": false,
2066
+ "pointerdownPayload": "",
2067
+ "pointerdownPayloadType": "str",
2068
+ "enablePointerup": false,
2069
+ "pointerupPayload": "",
2070
+ "pointerupPayloadType": "str",
2071
+ "x": 1230,
2072
+ "y": 560,
2073
+ "wires": [
2074
+ [
2075
+ "83de8924a1f6f2a5"
2076
+ ]
2077
+ ]
2078
+ },
2079
+ {
2080
+ "id": "36b2628c69b87d42",
2081
+ "type": "OpcUa-Client2-Read",
2082
+ "z": "8914237e0d8e46c7",
2083
+ "g": "23e92d93ed23febc",
2084
+ "inputs": 1,
2085
+ "output": 4,
2086
+ "name": "",
2087
+ "endpoint": "9593045b235c321c",
2088
+ "attributeId": "Value",
2089
+ "nodeId": "",
2090
+ "outputType": "StatusCode",
2091
+ "x": 590,
2092
+ "y": 1080,
2093
+ "wires": [
2094
+ [
2095
+ "46d99d7986a03b57",
2096
+ "e975667424fe78b7"
2097
+ ],
2098
+ []
2099
+ ]
2100
+ },
2101
+ {
2102
+ "id": "46d99d7986a03b57",
2103
+ "type": "function",
2104
+ "z": "8914237e0d8e46c7",
2105
+ "g": "23e92d93ed23febc",
2106
+ "name": "Extract connection status",
2107
+ "func": "msg.payload = `${msg.payload} - ${msg.statusCode.toString()}`;\nreturn msg;",
2108
+ "outputs": 1,
2109
+ "timeout": 0,
2110
+ "noerr": 0,
2111
+ "initialize": "",
2112
+ "finalize": "",
2113
+ "libs": [],
2114
+ "x": 870,
2115
+ "y": 1080,
2116
+ "wires": [
2117
+ [
2118
+ "dcf7ab764b7d2921"
2119
+ ]
2120
+ ]
2121
+ },
2122
+ {
2123
+ "id": "e975667424fe78b7",
2124
+ "type": "delay",
2125
+ "z": "8914237e0d8e46c7",
2126
+ "g": "23e92d93ed23febc",
2127
+ "name": "",
2128
+ "pauseType": "delay",
2129
+ "timeout": "1",
2130
+ "timeoutUnits": "seconds",
2131
+ "rate": "1",
2132
+ "nbRateUnits": "1",
2133
+ "rateUnits": "second",
2134
+ "randomFirst": "1",
2135
+ "randomLast": "5",
2136
+ "randomUnits": "seconds",
2137
+ "drop": false,
2138
+ "allowrate": false,
2139
+ "outputs": 1,
2140
+ "x": 480,
2141
+ "y": 980,
2142
+ "wires": [
2143
+ [
2144
+ "f79e321ce9b22631"
2145
+ ]
2146
+ ]
2147
+ },
2148
+ {
2149
+ "id": "dc5e73eb1991eed3",
2150
+ "type": "inject",
2151
+ "z": "8914237e0d8e46c7",
2152
+ "g": "23e92d93ed23febc",
2153
+ "name": "",
2154
+ "props": [],
2155
+ "repeat": "",
2156
+ "crontab": "",
2157
+ "once": true,
2158
+ "onceDelay": "1",
2159
+ "topic": "",
2160
+ "x": 290,
2161
+ "y": 1100,
2162
+ "wires": [
2163
+ [
2164
+ "36b2628c69b87d42"
2165
+ ]
2166
+ ]
2167
+ },
2168
+ {
2169
+ "id": "f79e321ce9b22631",
2170
+ "type": "function",
2171
+ "z": "8914237e0d8e46c7",
2172
+ "g": "23e92d93ed23febc",
2173
+ "name": "remove payload",
2174
+ "func": "msg.payload = null;\nreturn msg;",
2175
+ "outputs": 1,
2176
+ "timeout": 0,
2177
+ "noerr": 0,
2178
+ "initialize": "",
2179
+ "finalize": "",
2180
+ "libs": [],
2181
+ "x": 360,
2182
+ "y": 1060,
2183
+ "wires": [
2184
+ [
2185
+ "36b2628c69b87d42"
2186
+ ]
2187
+ ]
2188
+ },
2189
+ {
2190
+ "id": "6c7658b34fce0ac3",
2191
+ "type": "comment",
2192
+ "z": "8914237e0d8e46c7",
2193
+ "g": "a872632f0795dffe",
2194
+ "name": "Buttons",
2195
+ "info": "",
2196
+ "x": 1190,
2197
+ "y": 160,
2198
+ "wires": []
2199
+ },
2200
+ {
2201
+ "id": "9326ae6929032e87",
2202
+ "type": "comment",
2203
+ "z": "8914237e0d8e46c7",
2204
+ "name": "Coffee Machine",
2205
+ "info": "# Coffee Machine *\n\nThis example demostrate how to \ncreate a Dashboard that interacts \nwith a OPCUA CoffeeMachine\n\n",
2206
+ "x": 260,
2207
+ "y": 40,
2208
+ "wires": []
2209
+ },
2210
+ {
2211
+ "id": "b577d7342c008353",
2212
+ "type": "OpcUa-Client2-Explore",
2213
+ "z": "8914237e0d8e46c7",
2214
+ "g": "a9f1eb481f74dde3",
2215
+ "inputs": 1,
2216
+ "output": 4,
2217
+ "name": "",
2218
+ "endpoint": "9593045b235c321c",
2219
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.kitchen:Parameters",
2220
+ "outputType": "Value",
2221
+ "excludeEmpty": false,
2222
+ "followOrganizes": false,
2223
+ "x": 460,
2224
+ "y": 1260,
2225
+ "wires": [
2226
+ [
2227
+ "af5560e53daca7e6",
2228
+ "96aded34d2e12af9"
2229
+ ]
2230
+ ]
2231
+ },
2232
+ {
2233
+ "id": "529de43bbcc8ddd4",
2234
+ "type": "inject",
2235
+ "z": "8914237e0d8e46c7",
2236
+ "g": "a9f1eb481f74dde3",
2237
+ "name": "",
2238
+ "props": [],
2239
+ "repeat": "1",
2240
+ "crontab": "",
2241
+ "once": false,
2242
+ "onceDelay": "2",
2243
+ "topic": "",
2244
+ "x": 300,
2245
+ "y": 1260,
2246
+ "wires": [
2247
+ [
2248
+ "b577d7342c008353"
2249
+ ]
2250
+ ]
2251
+ },
2252
+ {
2253
+ "id": "73a7a87a437b298c",
2254
+ "type": "csv",
2255
+ "z": "8914237e0d8e46c7",
2256
+ "g": "a9f1eb481f74dde3",
2257
+ "name": "",
2258
+ "spec": "rfc",
2259
+ "sep": ";",
2260
+ "hdrin": "",
2261
+ "hdrout": "once",
2262
+ "multi": "one",
2263
+ "ret": "\\n",
2264
+ "temp": "",
2265
+ "skip": "0",
2266
+ "strings": true,
2267
+ "include_empty_strings": "",
2268
+ "include_null_values": "",
2269
+ "x": 990,
2270
+ "y": 1260,
2271
+ "wires": [
2272
+ [
2273
+ "239601af1e96d917",
2274
+ "ccd602507a4abc68"
2275
+ ]
2276
+ ]
2277
+ },
2278
+ {
2279
+ "id": "239601af1e96d917",
2280
+ "type": "file",
2281
+ "z": "8914237e0d8e46c7",
2282
+ "g": "a9f1eb481f74dde3",
2283
+ "name": "Append to Output.csv",
2284
+ "filename": "/tmp/output.csv",
2285
+ "filenameType": "str",
2286
+ "appendNewline": false,
2287
+ "createDir": false,
2288
+ "overwriteFile": "false",
2289
+ "encoding": "none",
2290
+ "x": 1200,
2291
+ "y": 1260,
2292
+ "wires": [
2293
+ []
2294
+ ]
2295
+ },
2296
+ {
2297
+ "id": "ccd602507a4abc68",
2298
+ "type": "debug",
2299
+ "z": "8914237e0d8e46c7",
2300
+ "g": "a9f1eb481f74dde3",
2301
+ "name": "debug 13",
2302
+ "active": true,
2303
+ "tosidebar": true,
2304
+ "console": false,
2305
+ "tostatus": false,
2306
+ "complete": "false",
2307
+ "statusVal": "",
2308
+ "statusType": "auto",
2309
+ "x": 1160,
2310
+ "y": 1300,
2311
+ "wires": []
2312
+ },
2313
+ {
2314
+ "id": "d21be93e03b60165",
2315
+ "type": "OpcUa-Client2-Explore",
2316
+ "z": "8914237e0d8e46c7",
2317
+ "g": "230bb82688833807",
2318
+ "inputs": 1,
2319
+ "output": 4,
2320
+ "name": "",
2321
+ "endpoint": "9593045b235c321c",
2322
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.kitchen:Parameters",
2323
+ "outputType": "NodeId",
2324
+ "excludeEmpty": false,
2325
+ "followOrganizes": false,
2326
+ "x": 440,
2327
+ "y": 1540,
2328
+ "wires": [
2329
+ [
2330
+ "50c33de026727ab2"
2331
+ ]
2332
+ ]
2333
+ },
2334
+ {
2335
+ "id": "1832b372c56dc715",
2336
+ "type": "inject",
2337
+ "z": "8914237e0d8e46c7",
2338
+ "g": "230bb82688833807",
2339
+ "name": "",
2340
+ "props": [],
2341
+ "repeat": "",
2342
+ "crontab": "",
2343
+ "once": false,
2344
+ "onceDelay": "2",
2345
+ "topic": "",
2346
+ "x": 290,
2347
+ "y": 1540,
2348
+ "wires": [
2349
+ [
2350
+ "d21be93e03b60165"
2351
+ ]
2352
+ ]
2353
+ },
2354
+ {
2355
+ "id": "5f6eeb0fc5228a66",
2356
+ "type": "OpcUa-Client2-Read",
2357
+ "z": "8914237e0d8e46c7",
2358
+ "g": "230bb82688833807",
2359
+ "inputs": 1,
2360
+ "output": 4,
2361
+ "name": "",
2362
+ "endpoint": "9593045b235c321c",
2363
+ "attributeId": "Value",
2364
+ "nodeId": "",
2365
+ "outputType": "Value",
2366
+ "x": 870,
2367
+ "y": 1540,
2368
+ "wires": [
2369
+ [
2370
+ "fe845d4c6aa473d0",
2371
+ "829ce0410d7c3b05",
2372
+ "5e50f3a2da48a03b"
2373
+ ],
2374
+ []
2375
+ ]
2376
+ },
2377
+ {
2378
+ "id": "5e50f3a2da48a03b",
2379
+ "type": "debug",
2380
+ "z": "8914237e0d8e46c7",
2381
+ "g": "230bb82688833807",
2382
+ "name": "debug 15",
2383
+ "active": false,
2384
+ "tosidebar": true,
2385
+ "console": false,
2386
+ "tostatus": false,
2387
+ "complete": "true",
2388
+ "targetType": "full",
2389
+ "statusVal": "",
2390
+ "statusType": "auto",
2391
+ "x": 1260,
2392
+ "y": 1460,
2393
+ "wires": []
2394
+ },
2395
+ {
2396
+ "id": "fe845d4c6aa473d0",
2397
+ "type": "delay",
2398
+ "z": "8914237e0d8e46c7",
2399
+ "g": "230bb82688833807",
2400
+ "name": "",
2401
+ "pauseType": "delay",
2402
+ "timeout": "500",
2403
+ "timeoutUnits": "milliseconds",
2404
+ "rate": "1",
2405
+ "nbRateUnits": "1",
2406
+ "rateUnits": "second",
2407
+ "randomFirst": "1",
2408
+ "randomLast": "5",
2409
+ "randomUnits": "seconds",
2410
+ "drop": false,
2411
+ "allowrate": false,
2412
+ "outputs": 1,
2413
+ "x": 850,
2414
+ "y": 1480,
2415
+ "wires": [
2416
+ [
2417
+ "99b27a72cfb58370"
2418
+ ]
2419
+ ]
2420
+ },
2421
+ {
2422
+ "id": "50c33de026727ab2",
2423
+ "type": "function",
2424
+ "z": "8914237e0d8e46c7",
2425
+ "g": "230bb82688833807",
2426
+ "name": "memorize payload",
2427
+ "func": "flow.set(\"p\", msg.payload)\nreturn msg;",
2428
+ "outputs": 1,
2429
+ "timeout": 0,
2430
+ "noerr": 0,
2431
+ "initialize": "",
2432
+ "finalize": "",
2433
+ "libs": [],
2434
+ "x": 630,
2435
+ "y": 1540,
2436
+ "wires": [
2437
+ [
2438
+ "5f6eeb0fc5228a66"
2439
+ ]
2440
+ ]
2441
+ },
2442
+ {
2443
+ "id": "99b27a72cfb58370",
2444
+ "type": "function",
2445
+ "z": "8914237e0d8e46c7",
2446
+ "g": "230bb82688833807",
2447
+ "name": "function 3",
2448
+ "func": "msg.payload = flow.get(\"p\");\nreturn msg;",
2449
+ "outputs": 1,
2450
+ "timeout": 0,
2451
+ "noerr": 0,
2452
+ "initialize": "",
2453
+ "finalize": "",
2454
+ "libs": [],
2455
+ "x": 955,
2456
+ "y": 1480,
2457
+ "wires": [
2458
+ [
2459
+ "5f6eeb0fc5228a66"
2460
+ ]
2461
+ ],
2462
+ "l": false
2463
+ },
2464
+ {
2465
+ "id": "829ce0410d7c3b05",
2466
+ "type": "function",
2467
+ "z": "8914237e0d8e46c7",
2468
+ "g": "230bb82688833807",
2469
+ "name": "clean up",
2470
+ "func": "msg.timestamp = new Date(); // new Date(msg.sourceTimestamp);\nmsg.payload.TotalMix = msg.payload.ServedCoffeeCount;\nmsg.payload.timestamp = msg.timestamp;\nmsg.payload.d= msg.timestamp.toISOString();\nmsg.payload.values = [ Math.random()*1000 , Math.random()*1000];\nmsg.payload.titles = [ \"A\", \"B\"]\nreturn msg;",
2471
+ "outputs": 1,
2472
+ "timeout": 0,
2473
+ "noerr": 0,
2474
+ "initialize": "",
2475
+ "finalize": "",
2476
+ "libs": [],
2477
+ "x": 1100,
2478
+ "y": 1540,
2479
+ "wires": [
2480
+ [
2481
+ "5e50f3a2da48a03b",
2482
+ "1bea16ead1291025"
2483
+ ]
2484
+ ]
2485
+ },
2486
+ {
2487
+ "id": "1bea16ead1291025",
2488
+ "type": "ui-chart",
2489
+ "z": "8914237e0d8e46c7",
2490
+ "g": "230bb82688833807",
2491
+ "group": "837da312967f08dd",
2492
+ "name": "",
2493
+ "label": "MultiGraph",
2494
+ "order": 5,
2495
+ "chartType": "line",
2496
+ "category": "labels",
2497
+ "categoryType": "property",
2498
+ "xAxisLabel": "",
2499
+ "xAxisProperty": "timestamp",
2500
+ "xAxisPropertyType": "property",
2501
+ "xAxisType": "time",
2502
+ "xAxisFormat": "",
2503
+ "xAxisFormatType": "HH:mm",
2504
+ "xmin": "",
2505
+ "xmax": "",
2506
+ "yAxisLabel": "",
2507
+ "yAxisProperty": "values",
2508
+ "yAxisPropertyType": "property",
2509
+ "ymin": "0",
2510
+ "ymax": "1200",
2511
+ "bins": 10,
2512
+ "action": "append",
2513
+ "stackSeries": false,
2514
+ "pointShape": "false",
2515
+ "pointRadius": 4,
2516
+ "showLegend": true,
2517
+ "removeOlder": "3",
2518
+ "removeOlderUnit": "60",
2519
+ "removeOlderPoints": "",
2520
+ "colors": [
2521
+ "#0095ff",
2522
+ "#ff0000",
2523
+ "#ff7f0e",
2524
+ "#2ca02c",
2525
+ "#a347e1",
2526
+ "#d62728",
2527
+ "#ff9896",
2528
+ "#9467bd",
2529
+ "#c5b0d5"
2530
+ ],
2531
+ "textColor": [
2532
+ "#666666"
2533
+ ],
2534
+ "textColorDefault": true,
2535
+ "gridColor": [
2536
+ "#e5e5e5"
2537
+ ],
2538
+ "gridColorDefault": true,
2539
+ "width": 6,
2540
+ "height": "3",
2541
+ "className": "",
2542
+ "interpolation": "linear",
2543
+ "x": 1270,
2544
+ "y": 1540,
2545
+ "wires": [
2546
+ []
2547
+ ]
2548
+ },
2549
+ {
2550
+ "id": "4cecc03d1a64c091",
2551
+ "type": "OpcUa-Client2-Browse",
2552
+ "z": "8914237e0d8e46c7",
2553
+ "g": "ec1ab7ca9e060d7f",
2554
+ "inputs": 1,
2555
+ "output": 4,
2556
+ "name": "",
2557
+ "endpoint": "9593045b235c321c",
2558
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.sterfive:Recipes",
2559
+ "referenceTypeId": "HasChild",
2560
+ "includeSubtypes": false,
2561
+ "browseDirection": "Forward",
2562
+ "nodeClassMask": "Object",
2563
+ "resultMask": "ReferenceType | BrowseName | TypeDefinition | DisplayName | NodeClass | IsForward",
2564
+ "x": 1320,
2565
+ "y": 1020,
2566
+ "wires": [
2567
+ [
2568
+ "57622c7f24dacef7"
2569
+ ]
2570
+ ]
2571
+ },
2572
+ {
2573
+ "id": "f6b1e7b0df0fa288",
2574
+ "type": "debug",
2575
+ "z": "8914237e0d8e46c7",
2576
+ "g": "ec1ab7ca9e060d7f",
2577
+ "name": "debug 16",
2578
+ "active": true,
2579
+ "tosidebar": true,
2580
+ "console": false,
2581
+ "tostatus": false,
2582
+ "complete": "true",
2583
+ "targetType": "full",
2584
+ "statusVal": "",
2585
+ "statusType": "auto",
2586
+ "x": 1680,
2587
+ "y": 1080,
2588
+ "wires": []
2589
+ },
2590
+ {
2591
+ "id": "0c098347de28a15d",
2592
+ "type": "inject",
2593
+ "z": "8914237e0d8e46c7",
2594
+ "g": "ec1ab7ca9e060d7f",
2595
+ "name": "",
2596
+ "props": [],
2597
+ "repeat": "",
2598
+ "crontab": "",
2599
+ "once": true,
2600
+ "onceDelay": "1",
2601
+ "topic": "",
2602
+ "x": 1150,
2603
+ "y": 1020,
2604
+ "wires": [
2605
+ [
2606
+ "4cecc03d1a64c091"
2607
+ ]
2608
+ ]
2609
+ },
2610
+ {
2611
+ "id": "57622c7f24dacef7",
2612
+ "type": "function",
2613
+ "z": "8914237e0d8e46c7",
2614
+ "g": "ec1ab7ca9e060d7f",
2615
+ "name": "extract recipe name",
2616
+ "func": "msg.payload = msg.payload.map(ref =>\n//({\n// label: ref.displayName,\n// value: ref.nodeId || ref.displayName +\"aa\"\n//})\nref.displayName\n);\nreturn msg;",
2617
+ "outputs": 1,
2618
+ "timeout": 0,
2619
+ "noerr": 0,
2620
+ "initialize": "",
2621
+ "finalize": "",
2622
+ "libs": [],
2623
+ "x": 1510,
2624
+ "y": 1020,
2625
+ "wires": [
2626
+ [
2627
+ "e3c1066f3260a1cb"
2628
+ ]
2629
+ ]
2630
+ },
2631
+ {
2632
+ "id": "237e980896f1a684",
2633
+ "type": "ui-dropdown",
2634
+ "z": "8914237e0d8e46c7",
2635
+ "g": "ec1ab7ca9e060d7f",
2636
+ "group": "837da312967f08dd",
2637
+ "name": "Recipies",
2638
+ "label": "Select Beverage:",
2639
+ "tooltip": "",
2640
+ "order": 2,
2641
+ "width": 0,
2642
+ "height": 0,
2643
+ "passthru": false,
2644
+ "multiple": false,
2645
+ "chips": false,
2646
+ "clearable": false,
2647
+ "options": [
2648
+ {
2649
+ "label": "",
2650
+ "value": "",
2651
+ "type": "str"
2652
+ }
2653
+ ],
2654
+ "payload": "",
2655
+ "topic": "beverage",
2656
+ "topicType": "msg",
2657
+ "className": "",
2658
+ "typeIsComboBox": false,
2659
+ "msgTrigger": "onChange",
2660
+ "x": 1500,
2661
+ "y": 1080,
2662
+ "wires": [
2663
+ [
2664
+ "f6b1e7b0df0fa288",
2665
+ "0597a0ffcdab77cd",
2666
+ "2857eb76526322a1"
2667
+ ]
2668
+ ]
2669
+ },
2670
+ {
2671
+ "id": "e3c1066f3260a1cb",
2672
+ "type": "function",
2673
+ "z": "8914237e0d8e46c7",
2674
+ "g": "ec1ab7ca9e060d7f",
2675
+ "name": "prepare combo box options",
2676
+ "func": "msg.ui_update = {\n options: msg.payload\n};\nmsg.payload = msg.payload[0].value;\nreturn msg;",
2677
+ "outputs": 1,
2678
+ "timeout": 0,
2679
+ "noerr": 0,
2680
+ "initialize": "",
2681
+ "finalize": "",
2682
+ "libs": [],
2683
+ "x": 1240,
2684
+ "y": 1080,
2685
+ "wires": [
2686
+ [
2687
+ "f6b1e7b0df0fa288",
2688
+ "237e980896f1a684"
2689
+ ]
2690
+ ]
2691
+ },
2692
+ {
2693
+ "id": "0597a0ffcdab77cd",
2694
+ "type": "function",
2695
+ "z": "8914237e0d8e46c7",
2696
+ "g": "ec1ab7ca9e060d7f",
2697
+ "name": "memorize selectedComboValue",
2698
+ "func": "// This function is triggered whenever the combo box value changes.\n// It stores the selected value in the flow context.\nflow.set(\"selectedComboValue\", msg.payload);\nreturn null; // No output required from this node.\n\nreturn msg;",
2699
+ "outputs": 1,
2700
+ "timeout": 0,
2701
+ "noerr": 0,
2702
+ "initialize": "",
2703
+ "finalize": "",
2704
+ "libs": [],
2705
+ "x": 1670,
2706
+ "y": 1140,
2707
+ "wires": [
2708
+ []
2709
+ ]
2710
+ },
2711
+ {
2712
+ "id": "6008fa16cda462d5",
2713
+ "type": "ui-button",
2714
+ "z": "8914237e0d8e46c7",
2715
+ "g": "ec1ab7ca9e060d7f",
2716
+ "group": "837da312967f08dd",
2717
+ "name": "Make Coffee",
2718
+ "label": "button",
2719
+ "order": 1,
2720
+ "width": 0,
2721
+ "height": 0,
2722
+ "emulateClick": false,
2723
+ "tooltip": "",
2724
+ "color": "",
2725
+ "bgcolor": "",
2726
+ "className": "",
2727
+ "icon": "",
2728
+ "iconPosition": "left",
2729
+ "payload": "",
2730
+ "payloadType": "str",
2731
+ "topic": "topic",
2732
+ "topicType": "msg",
2733
+ "buttonColor": "",
2734
+ "textColor": "",
2735
+ "iconColor": "",
2736
+ "enableClick": true,
2737
+ "enablePointerdown": false,
2738
+ "pointerdownPayload": "",
2739
+ "pointerdownPayloadType": "str",
2740
+ "enablePointerup": false,
2741
+ "pointerupPayload": "",
2742
+ "pointerupPayloadType": "str",
2743
+ "x": 1230,
2744
+ "y": 1140,
2745
+ "wires": [
2746
+ [
2747
+ "1fca2f6f28cc4828"
2748
+ ]
2749
+ ]
2750
+ },
2751
+ {
2752
+ "id": "1fca2f6f28cc4828",
2753
+ "type": "function",
2754
+ "z": "8914237e0d8e46c7",
2755
+ "g": "ec1ab7ca9e060d7f",
2756
+ "name": "function 7",
2757
+ "func": "// This function is triggered by the button click.\n// It retrieves the stored combo box value and outputs it in msg.payload.\nvar selectedValue = flow.get(\"selectedComboValue\");\n\n// Optionally, add error handling if no value has been selected yet.\nif (typeof selectedValue === 'undefined') {\n node.warn(\"No combo box value selected yet.\");\n msg.payload = \"No selection\";\n return undefined;\n} else {\n msg.payload = {\n \"RecipeName\": selectedValue\n };\n}\n\nreturn msg;\n",
2758
+ "outputs": 1,
2759
+ "timeout": 0,
2760
+ "noerr": 0,
2761
+ "initialize": "",
2762
+ "finalize": "",
2763
+ "libs": [],
2764
+ "x": 1335,
2765
+ "y": 1140,
2766
+ "wires": [
2767
+ [
2768
+ "ea1957e0718f21fd"
2769
+ ]
2770
+ ],
2771
+ "l": false
2772
+ },
2773
+ {
2774
+ "id": "2857eb76526322a1",
2775
+ "type": "function",
2776
+ "z": "8914237e0d8e46c7",
2777
+ "g": "ec1ab7ca9e060d7f",
2778
+ "name": "function 8",
2779
+ "func": "msg.ui_update = {\n label: \"Make \" + msg.payload\n}\nmsg.payload= undefined;\nreturn msg;",
2780
+ "outputs": 1,
2781
+ "timeout": 0,
2782
+ "noerr": 0,
2783
+ "initialize": "",
2784
+ "finalize": "",
2785
+ "libs": [],
2786
+ "x": 1125,
2787
+ "y": 1140,
2788
+ "wires": [
2789
+ [
2790
+ "6008fa16cda462d5"
2791
+ ]
2792
+ ],
2793
+ "l": false
2794
+ },
2795
+ {
2796
+ "id": "ea1957e0718f21fd",
2797
+ "type": "OpcUa-Client2-Call",
2798
+ "z": "8914237e0d8e46c7",
2799
+ "g": "ec1ab7ca9e060d7f",
2800
+ "inputs": 1,
2801
+ "output": 4,
2802
+ "name": "Make",
2803
+ "endpoint": "9593045b235c321c",
2804
+ "action": "read",
2805
+ "methodId": "/2:DeviceSet/1:CoffeMachineA.2:MethodSet.4:MakeCoffee",
2806
+ "objectId": "/2:DeviceSet/1:CoffeMachineA",
2807
+ "x": 1430,
2808
+ "y": 1140,
2809
+ "wires": [
2810
+ [],
2811
+ []
2812
+ ]
2813
+ },
2814
+ {
2815
+ "id": "44225cb3561717c6",
2816
+ "type": "OpcUa-Client2-Monitor",
2817
+ "z": "8914237e0d8e46c7",
2818
+ "g": "54277e0eb0f4eddd",
2819
+ "inputs": 0,
2820
+ "output": 2,
2821
+ "name": "",
2822
+ "endpoint": "9593045b235c321c",
2823
+ "subscription": "s1",
2824
+ "startImmediately": true,
2825
+ "nodeId": "/di:DeviceSet/ns1:CoffeMachineA.di:DeviceHealth",
2826
+ "samplingInterval": 1000,
2827
+ "discardOldest": true,
2828
+ "queueSize": 10,
2829
+ "x": 320,
2830
+ "y": 1640,
2831
+ "wires": [
2832
+ [
2833
+ "61237053c6df429d"
2834
+ ]
2835
+ ]
2836
+ },
2837
+ {
2838
+ "id": "61237053c6df429d",
2839
+ "type": "function",
2840
+ "z": "8914237e0d8e46c7",
2841
+ "g": "54277e0eb0f4eddd",
2842
+ "name": "function 2",
2843
+ "func": "switch(msg.payload) {\n case 0: // normal\n msg.payload = \"https://www.svgrepo.com/show/486753/namur-ok.svg\"\n break;\n case 1: // failure \n msg.payload = \"https://www.svgrepo.com/show/486750/namur-failure.svg\"\n break;\n case 2: // check function \n msg.payload = \"https://www.svgrepo.com/show/486749/namur-check-function.svg\";\n break;\n case 3: // off-spec \n msg.payload = \"https://www.svgrepo.com/show/486751/namur-out-of-spec.svg\";\n break;\n case 4: // maintenance\n msg.payload = \"https://www.svgrepo.com/show/26897/change-car-oil.svg\";\n break; \n}\nreturn msg;",
2844
+ "outputs": 1,
2845
+ "timeout": 0,
2846
+ "noerr": 0,
2847
+ "initialize": "",
2848
+ "finalize": "",
2849
+ "libs": [],
2850
+ "x": 550,
2851
+ "y": 1640,
2852
+ "wires": [
2853
+ [
2854
+ "2456ee93776095bc"
2855
+ ]
2856
+ ]
2857
+ },
2858
+ {
2859
+ "id": "0f373262c51c849b",
2860
+ "type": "ui-template",
2861
+ "z": "8914237e0d8e46c7",
2862
+ "g": "517edf10f355e464",
2863
+ "group": "0eeeefa89ae3646a",
2864
+ "page": "",
2865
+ "ui": "",
2866
+ "name": "",
2867
+ "order": 4,
2868
+ "width": "1",
2869
+ "height": "1",
2870
+ "head": "",
2871
+ "format": "<template>\n\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" height=\"800px\" width=\"800px\"\n version=\"1.1\" id=\"Layer_1\" viewBox=\"0 0 512 512\" xml:space=\"preserve\" fill=\"#000000\">\n <g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\" />\n\n <g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\n <g id=\"SVGRepo_iconCarrier\">\n <g transform=\"translate(110,0)\">\n <path style=\"fill: white\" d=\"M0,400 h290 v-600 h-290 z\">\n </path>\n <path style=\"fill:rgb(20, 211, 249)\" :d=\"`M0,400 h290 v${d} h-290 z`\">\n </path>\n </g>\n <g>\n <path style=\"fill: #1895c2\" d=\"M400,287\n H110.257\n c-4.713,0-8.533-3.821-8.533-8.533s3.821-8.533,8.533-8.533\n h292.588 \n c4.713,0,8.533,3.821,8.533,8.533\n S407.558,287.441,402.845,287.441\n z\" />\n <path style=\"fill: #1895c2\" d=\"M400,181\n H110\n c-4.713,0-8.533-3.821-8.533-8.533\n s3.821-8.533,8.533-8.533\n h292.588 \n c4.713,0,8.533,3.821,8.533,8.533\n S407.558,181.016,402.845,181.016\n z\" />\n </g>\n </g>\n</svg>\n</template>\n<script>\n export default {\n data() {\n // define variables available component-wide\n // (in <template> and component functions)\n return {\n count: 0\n }\n },\n\n computed: {\n d: function () {\n const height = this.msg.payload/10;\n return -height/100*400;\n }\n\n },\n\n }\n\n</script>\n\n",
2872
+ "storeOutMessages": true,
2873
+ "passthru": true,
2874
+ "resendOnRefresh": true,
2875
+ "templateScope": "local",
2876
+ "className": "",
2877
+ "x": 740,
2878
+ "y": 140,
2879
+ "wires": [
2880
+ []
2881
+ ]
2882
+ },
2883
+ {
2884
+ "id": "2456ee93776095bc",
2885
+ "type": "ui-template",
2886
+ "z": "8914237e0d8e46c7",
2887
+ "g": "54277e0eb0f4eddd",
2888
+ "group": "0eeeefa89ae3646a",
2889
+ "page": "",
2890
+ "ui": "",
2891
+ "name": "Namur",
2892
+ "order": 1,
2893
+ "width": 0,
2894
+ "height": 0,
2895
+ "head": "",
2896
+ "format": "<template>\n <div> Namur </div>\n <img width=\"30px\" :src=\"`${msg.payload}`\"></img>\n</template>\n",
2897
+ "storeOutMessages": true,
2898
+ "passthru": true,
2899
+ "resendOnRefresh": true,
2900
+ "templateScope": "local",
2901
+ "className": "",
2902
+ "x": 710,
2903
+ "y": 1640,
2904
+ "wires": [
2905
+ []
2906
+ ]
2907
+ },
2908
+ {
2909
+ "id": "143a262a2cbfe451",
2910
+ "type": "ui-template",
2911
+ "z": "8914237e0d8e46c7",
2912
+ "g": "665736b8cbeb246d",
2913
+ "group": "09c06667bee47085",
2914
+ "page": "",
2915
+ "ui": "",
2916
+ "name": "CoffeeMachineSynopsis",
2917
+ "order": 1,
2918
+ "width": "20",
2919
+ "height": "12",
2920
+ "head": "",
2921
+ "format": " <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n height=\"800px\"\n width=\"1800px\"\n version=\"1.1\"\n id=\"Layer_1\"\n viewBox=\"0 -220 800 800\"\n xml:space=\"preserve\"\n fill=\"none\"\n >\n <g id=\"Tank\" transform=\"translate(-210,-20)\">\n <g id=\"SVGRepo_iconCarrier\">\n <path\n style=\"fill: rgba(195, 240, 241, 0.93)\"\n d=\"M0,400 h190 v-400 h-190 z\"\n ></path>\n <path style=\"fill: rgb(95, 196, 217)\" :d=\"`M0,400 h190 v${d} h-190 z`\"></path>\n <rect\n x=\"0\"\n y=\"0\"\n width=\"190\"\n height=\"400\"\n fill=\"none\"\n stroke=\"rgb(5, 67, 79)\"\n stroke-width=\"3\"\n rx=\"0\"\n ry=\"0\"\n ></rect>\n <g>\n <path\n stroke=\"#1895c2\"\n stroke-width=\"20\"\n stroke-linecap=\"round\"\n d=\"M-15,280 h210\"\n />\n <path\n stroke=\"#1895c2\"\n stroke-width=\"20\"\n stroke-linecap=\"round\"\n d=\"M-15,170 h210\"\n />\n </g>\n </g>\n </g>\n <g id=\"CoffeeBean\" transform=\"translate(200,-150) scale(0.6,0.6)\">\n <defs>\n <pattern\n id=\"coffeeBeanPattern\"\n patternUnits=\"userSpaceOnUse\"\n width=\"1224\"\n height=\"816\"\n x=\"-150\"\n >\n <image\n href=\"https://images.pexels.com/photos/1695052/pexels-photo-1695052.jpeg\"\n x=\"0\"\n y=\"0\"\n width=\"612\"\n height=\"408\"\n />\n </pattern>\n </defs>\n <rect\n x=\"0\"\n y=\"0\"\n width=\"190\"\n height=\"300\"\n fill=\"rgba(241, 244, 244, 0.92)\"\n rx=\"10\"\n ry=\"10\"\n ></rect>\n <rect\n x=\"0\"\n :y=\"`${c}`\"\n width=\"190\"\n :height=\"`${300 - c}`\"\n _fill=\"red\"\n fill=\"url(#coffeeBeanPattern)\"\n rx=\"0\"\n ry=\"0\"\n ></rect>\n <rect\n x=\"0\"\n y=\"0\"\n width=\"190\"\n height=\"300\"\n fill=\"none\"\n stroke=\"salmon\"\n stroke-width=\"10\"\n rx=\"10\"\n ry=\"10\"\n ></rect>\n <path d=\"M 50 300 v 80\" stroke=\"salmon\" stroke-width=\"40\" />\n </g>\n <g id=\"cold-pipe\" :class=\"pipeClass\">\n <!-- Pipe -->\n <path\n d=\"M -20 350 h 40 v -250\n h 120\"\n stroke=\"blue\"\n />\n </g>\n <g id=\"hot-pipe\" :class=\"redPipeClass\">\n <!-- Pipe -->\n <path d=\"M 180 100 h 50 v 100\" stroke=\"red\" />\n </g>\n\n <!--Heater -->\n <g transform=\"translate(150, 100)\">\n <text x=\"0\" y=\"-32\" font-size=\"12\" fill=\"black\" text-anchor=\"middle\">{{ temperature }}</text>\n\n <rect x=\"-25\" y=\"-25\" width=\"50\" height=\"50\" fill=\"gray\" />\n <!-- serpentin -->\n <path\n :class=\"heaterClass\"\n d=\"M -25 0 C -21.875 -5, -18.75 0, -15.625 5 S -12.5 0, -9.375 -5 S -6.25 0, -3.125 5 S 0 0, 3.125 -5 S 6.25 0, 9.375 5 S 12.5 0, 15.625 -5 S 18.75 0, 21.875 5 S 25 0, 25 0\"\n />\n </g>\n <!--Pump -->\n <g transform=\"translate(90, 100)\">\n <!-- Pump body -->\n <rect x=\"-25\" y=\"-25\" width=\"50\" height=\"50\" fill=\"gray\" />\n <circle x=\"0\" y=\"0\" r=\"17\" stroke=\"blue\" stroke-width=\"5\" />\n <g :class=\"impellerClass\">\n <defs>\n <path\n id=\"pumpBlade\"\n d=\"M -14 0 C -2.5 3, 2.5 3, 0 0\"\n stroke=\"yellow\"\n stroke-width=\"2\"\n fill=\"none\"\n />\n </defs>\n <use href=\"#pumpBlade\" transform=\"rotate(0)\" />\n <use href=\"#pumpBlade\" transform=\"rotate(45)\" />\n <use href=\"#pumpBlade\" transform=\"rotate(90)\" />\n <use href=\"#pumpBlade\" transform=\"rotate(135)\" />\n <use href=\"#pumpBlade\" transform=\"rotate(180)\" />\n <use href=\"#pumpBlade\" transform=\"rotate(225)\" />\n <use href=\"#pumpBlade\" transform=\"rotate(270)\" />\n <use href=\"#pumpBlade\" transform=\"rotate(315)\" />\n </g>\n </g>\n < !--Perco -->\n <g transform=\"translate(230, 100)\">\n <!-- Perco body -->\n <rect :class=\"percoClass\" x=\"-25\" y=\"-25\" rx=\"3\" ry=\"3\" width=\"50\" height=\"50\"\n fill=\"rgb(241, 222, 11)\" />\n </g>\n\n <!--Cup -->\n <def>\n <g id=\"cup\">\n <g id=\"steam-out\" style=\"display: none\">\n <rect x=\"166.389\" width=\"25.6\" height=\"102.4\" />\n <rect x=\"115.197\" y=\"25.6\" width=\"25.6\" height=\"76.8\" />\n <rect x=\"268.772\" y=\"64\" width=\"25.6\" height=\"38.4\" />\n <rect x=\"217.58\" y=\"38.4\" width=\"25.6\" height=\"64\" />\n </g>\n <g id=\"cup-body\">\n <path\n d=\"M472.053,287.744c-7.919-52.087-49.041-95.744-100.898-105.762v-41.114c0-7.066-5.726-12.8-12.8-12.8l-307.157-0.026\n \t\t\tc-7.066,0-12.8,5.717-12.8,12.783v307.149c0,38.4,25.6,63.991,63.983,63.991L307.172,512c38.4,0,63.983-25.6,63.974-63.983\n \t\t\tv-15.531c47.727-9.754,86.204-45.918,98.347-93.269c2.449-9.515,3.123-15.607,3.866-25.395\n \t\t\tC473.999,305.271,473.316,296.141,472.053,287.744z M345.563,448.017c0,24.252-14.14,38.383-38.391,38.383l-204.783-0.026\n \t\t\tc-24.252,0-38.383-14.14-38.383-38.4V153.626l281.557,0.043V448.017z M427.594,368.478\n \t\t\tc-11.836,15.846-28.262,28.117-46.831,34.918c-3.149,1.152-6.409,2.005-9.609,2.987V208.077l9.609,2.978\n \t\t\tc3.055,1.306,6.178,2.44,9.173,3.891c5.939,2.859,11.597,6.298,16.87,10.24c18.56,13.875,32.137,33.988,37.897,56.457\n \t\t\tC452.358,311.441,446.035,343.808,427.594,368.478z\"\n />\n </g>\n </g>\n </def>\n <g id=\"cup-medium\" class=\"cup cuphidden\" transform=\"translate(180,160)scale(0.3,0.3)\">\n <use href=\"#cup\" />\n </g>\n <g id=\"cup-small\" class=\"cup cuphidden\" transform=\"translate(190,176)scale(0.2,0.2)\">\n <use href=\"#cup\" />\n </g>\n <g\n id=\"cup-big\"\n class=\"cup\"\n :style=\"cupStyle\"\n transform=\"translate(150,150)scale(0.4,0.4)\"\n >\n <use href=\"#cup\" />\n </g>\n </svg>\n\n <pre id=\"debug\">\n {{ payload }}\n {{ { c, d, cupStyle } }}\n </pre>\n </template>\n\n <script>\n export default {\n data() {\n // define variables available component-wide\n // (in <template> and component functions)\n return {\n isVisible: false,\n };\n },\n computed: {\n payload() {\n console.log(\"in payload evaluation\");\n if (!this.msg) {\n return {\n WaterTankLevel: 0,\n CoffeeBeanLevel: 0,\n CurrentState: 0,\n PumpStatus: 2,\n HeaterStatus: 2,\n GrinderStatus: 1,\n ValveStatus: 2,\n BoilerTempWater: 20,\n };\n }\n return this.msg.payload;\n },\n cupStyle() {\n if (!this.payload) {\n return \"display: none\";\n }\n const cupVisible = this.payload.CurrentState === 4;\n return `display: ${cupVisible ? \"block\" : \"none\"}`;\n },\n d() {\n if (!this.payload) {\n return 0;\n }\n const height = (this.payload.WaterTankLevel || 0) / 10;\n return (-height / 100) * 400;\n },\n c() {\n if (!this.payload) {\n return 0;\n }\n // L = 0 c= 300\n return (100 - this.payload.CoffeeBeanLevel / 6) * 3;\n },\n impellerClass() {\n if (!this.payload) {\n return 0;\n }\n return this.payload.PumpStatus == 1 ? \"impeller-rotating\" : \"impellter-fix\";\n },\n heaterClass() {\n if (!this.payload) {\n return 0;\n }\n return this.payload.HeaterStatus == 1 ? \"serpentine-on\" : \"serpentine-off\";\n },\n pipeClass() {\n if (!this.payload) {\n return \"\";\n }\n return this.payload.PumpStatus == 1 ? \"pipe-draining\" : \"pipe-stopped\";\n },\n redPipeClass() {\n if (!this.payload) {\n return \"\";\n }\n return (this.payload.PumpStatus == 1 && this.payload.ValveStatus == 0) ? \"pipe-draining\" : \"pipe-invisible\";\n },\n\n percoClass() {\n if (!this.payload) {\n return \"\";\n }\n return this.payload.GrinderStatus == 1 ? \"percoClass-on\" : \"percoClass-off\";\n },\n temperature(){\n if (!this.payload) return \"\";\n const t = (this.payload.BoilerTempWater || 0).toFixed(1);\n return `${t} °C`;\n }\n },\n methods: {\n toggleVisibility() {\n this.isVisible = !this.isVisible;\n },\n onButtonClick(buttonName) {\n alert(`${buttonName} clicked!`);\n // Add your method logic here\n },\n },\n };\n </script>\n\n <style scoped>\n .pipe-draining {\n stroke-width: 10;\n fill: none;\n stroke-dasharray: 5;\n animation: pipeAnimation 5s linear infinite;\n }\n\n .pipe-stopped {\n stroke-width: 10;\n fill: none;\n }\n .pipe-invisible {\n display: none;\n stroke-width: 0;\n fill: none; \n }\n\n .impeller-rotating {\n animation: rotateImpeller 1s linear infinite;\n }\n\n .impeller-fix {\n }\n\n .cup {\n fill: white;\n stroke: black;\n stroke-width: 2;\n }\n\n .serpentine-off {\n stroke: black;\n stroke-width: 4;\n fill: none;\n }\n\n .serpentine-on {\n stroke: red;\n stroke-width: 4;\n fill: none;\n animation: glow 0.5s ease-in-out infinite alternate;\n }\n\n .cuphidden {\n display: none;\n }\n\n .percoClass-off {\n }\n .percoClass-on {\n animation: gridding 0.1s linear infinite alternate;\n }\n @keyframes gridding {\n from {\n transform: rotate(-15deg);\n }\n to {\n transform: rotate(15deg);\n }\n }\n\n @keyframes glow {\n from {\n stroke: red;\n filter: drop-shadow(0 0 5px red);\n }\n to {\n stroke: grey;\n filter: drop-shadow(0 0 20px red);\n }\n }\n\n @keyframes pipeAnimation {\n to {\n stroke-dashoffset: -20;\n }\n }\n\n @keyframes rotateImpeller {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n </style>\n",
2922
+ "storeOutMessages": true,
2923
+ "passthru": true,
2924
+ "resendOnRefresh": true,
2925
+ "templateScope": "local",
2926
+ "className": "",
2927
+ "x": 1070,
2928
+ "y": 1840,
2929
+ "wires": [
2930
+ []
2931
+ ]
2932
+ },
2933
+ {
2934
+ "id": "a1492e996fe8302a",
2935
+ "type": "function",
2936
+ "z": "8914237e0d8e46c7",
2937
+ "g": "665736b8cbeb246d",
2938
+ "name": "cleanup",
2939
+ "func": "delete msg.payload.TotalMix;\nreturn msg;",
2940
+ "outputs": 1,
2941
+ "timeout": 0,
2942
+ "noerr": 0,
2943
+ "initialize": "",
2944
+ "finalize": "",
2945
+ "libs": [],
2946
+ "x": 640,
2947
+ "y": 1800,
2948
+ "wires": [
2949
+ [
2950
+ "072413d285aeb40e"
2951
+ ]
2952
+ ]
2953
+ },
2954
+ {
2955
+ "id": "dcf7ab764b7d2921",
2956
+ "type": "debug",
2957
+ "z": "8914237e0d8e46c7",
2958
+ "g": "23e92d93ed23febc",
2959
+ "name": "debug 14",
2960
+ "active": false,
2961
+ "tosidebar": true,
2962
+ "console": false,
2963
+ "tostatus": false,
2964
+ "complete": "false",
2965
+ "statusVal": "",
2966
+ "statusType": "auto",
2967
+ "x": 820,
2968
+ "y": 1140,
2969
+ "wires": []
2970
+ },
2971
+ {
2972
+ "id": "b694d72cbaef5d85",
2973
+ "type": "inject",
2974
+ "z": "8914237e0d8e46c7",
2975
+ "g": "a9f1eb481f74dde3",
2976
+ "name": "reset",
2977
+ "props": [
2978
+ {
2979
+ "p": "reset",
2980
+ "v": "true",
2981
+ "vt": "bool"
2982
+ }
2983
+ ],
2984
+ "repeat": "",
2985
+ "crontab": "",
2986
+ "once": false,
2987
+ "onceDelay": "2",
2988
+ "topic": "",
2989
+ "x": 390,
2990
+ "y": 1340,
2991
+ "wires": [
2992
+ [
2993
+ "14863b828843ebb1"
2994
+ ]
2995
+ ]
2996
+ },
2997
+ {
2998
+ "id": "af5560e53daca7e6",
2999
+ "type": "function",
3000
+ "z": "8914237e0d8e46c7",
3001
+ "g": "a9f1eb481f74dde3",
3002
+ "name": "Add Timpstamp",
3003
+ "func": "msg.payload.Timestamp = (new Date()).toISOString()\nreturn msg;",
3004
+ "outputs": 1,
3005
+ "timeout": 0,
3006
+ "noerr": 0,
3007
+ "initialize": "",
3008
+ "finalize": "",
3009
+ "libs": [],
3010
+ "x": 660,
3011
+ "y": 1260,
3012
+ "wires": [
3013
+ [
3014
+ "73a7a87a437b298c"
3015
+ ]
3016
+ ]
3017
+ },
3018
+ {
3019
+ "id": "96aded34d2e12af9",
3020
+ "type": "debug",
3021
+ "z": "8914237e0d8e46c7",
3022
+ "g": "a9f1eb481f74dde3",
3023
+ "name": "debug 17",
3024
+ "active": false,
3025
+ "tosidebar": true,
3026
+ "console": false,
3027
+ "tostatus": false,
3028
+ "complete": "true",
3029
+ "targetType": "full",
3030
+ "statusVal": "",
3031
+ "statusType": "auto",
3032
+ "x": 620,
3033
+ "y": 1300,
3034
+ "wires": []
3035
+ },
3036
+ {
3037
+ "id": "14863b828843ebb1",
3038
+ "type": "function",
3039
+ "z": "8914237e0d8e46c7",
3040
+ "g": "a9f1eb481f74dde3",
3041
+ "name": "force reset",
3042
+ "func": "msg.reset = true;\ndelete msg.payload;\nreturn msg;",
3043
+ "outputs": 1,
3044
+ "timeout": 0,
3045
+ "noerr": 0,
3046
+ "initialize": "",
3047
+ "finalize": "",
3048
+ "libs": [],
3049
+ "x": 630,
3050
+ "y": 1340,
3051
+ "wires": [
3052
+ [
3053
+ "6022bc4dbfcea9ed",
3054
+ "73a7a87a437b298c"
3055
+ ]
3056
+ ]
3057
+ },
3058
+ {
3059
+ "id": "6022bc4dbfcea9ed",
3060
+ "type": "exec",
3061
+ "z": "8914237e0d8e46c7",
3062
+ "g": "a9f1eb481f74dde3",
3063
+ "command": "rm /tmp/output.csv",
3064
+ "addpay": "",
3065
+ "append": "",
3066
+ "useSpawn": "false",
3067
+ "timer": "",
3068
+ "winHide": false,
3069
+ "oldrc": false,
3070
+ "name": "",
3071
+ "x": 890,
3072
+ "y": 1340,
3073
+ "wires": [
3074
+ [],
3075
+ [],
3076
+ []
3077
+ ]
3078
+ },
3079
+ {
3080
+ "id": "9593045b235c321c",
3081
+ "type": "OpcUa-Endpoint2",
3082
+ "name": "",
3083
+ "endpoint": "opc.tcp://opcuademo.sterfive.com:26541",
3084
+ "securityMode": "None",
3085
+ "securityPolicy": "None",
3086
+ "userIdentityType": "Anonymous",
3087
+ "pkiName": "",
3088
+ "useTransport": false,
3089
+ "maxChunkCount": 1,
3090
+ "maxMessageSize": 8192,
3091
+ "receiveBufferSize": 8192,
3092
+ "sendBufferSize": 8192,
3093
+ "subscriptions": [
3094
+ {
3095
+ "id": "s0",
3096
+ "name": "Default Subscription",
3097
+ "isDefault": true,
3098
+ "parameters": {
3099
+ "publishingEnabled": true,
3100
+ "requestedLifetimeCount": "1000",
3101
+ "requestedMaxKeepAliveCount": "10",
3102
+ "requestedPublishingInterval": "1000",
3103
+ "maxNotificationsPerPublish": "0",
3104
+ "priority": "100"
3105
+ }
3106
+ },
3107
+ {
3108
+ "id": "s1",
3109
+ "name": "Slow Subscription",
3110
+ "isDefault": true,
3111
+ "parameters": {
3112
+ "publishingEnabled": true,
3113
+ "requestedLifetimeCount": "100",
3114
+ "requestedMaxKeepAliveCount": "3",
3115
+ "requestedPublishingInterval": "5000",
3116
+ "maxNotificationsPerPublish": "100",
3117
+ "priority": "10"
3118
+ }
3119
+ },
3120
+ {
3121
+ "id": "s2",
3122
+ "name": "Fast Subscription",
3123
+ "isDefault": true,
3124
+ "parameters": {
3125
+ "publishingEnabled": true,
3126
+ "requestedLifetimeCount": "4000",
3127
+ "requestedMaxKeepAliveCount": "50",
3128
+ "requestedPublishingInterval": "250",
3129
+ "maxNotificationsPerPublish": "100",
3130
+ "priority": "200"
3131
+ }
3132
+ }
3133
+ ],
3134
+ "namespaceAliases": [
3135
+ {
3136
+ "namespaceUri": "http://opcfoundation.org/UA/",
3137
+ "alias": "ua"
3138
+ },
3139
+ {
3140
+ "namespaceUri": "urn:opcuademo.sterfive.com:NodeOPCUA-Server-for-CTT",
3141
+ "alias": "ns1"
3142
+ },
3143
+ {
3144
+ "namespaceUri": "http://opcfoundation.org/UA/DI/",
3145
+ "alias": "di"
3146
+ },
3147
+ {
3148
+ "namespaceUri": "http://opcfoundation.org/UA/ADI/",
3149
+ "alias": "adi"
3150
+ },
3151
+ {
3152
+ "namespaceUri": "http://opcfoundation.org/UA/AutoID/",
3153
+ "alias": "autoId"
3154
+ },
3155
+ {
3156
+ "namespaceUri": "http://opcfoundation.org/UA/MachineVision",
3157
+ "alias": "machineVision"
3158
+ },
3159
+ {
3160
+ "namespaceUri": "http://opcfoundation.org/UA/Robotics/",
3161
+ "alias": "robotics"
3162
+ },
3163
+ {
3164
+ "namespaceUri": "http://opcfoundation.org/UA/CommercialKitchenEquipment/",
3165
+ "alias": "kitchen"
3166
+ },
3167
+ {
3168
+ "namespaceUri": "http://opcfoundation.org/UA/ISA95-JOBCONTROL_V2/",
3169
+ "alias": "isa95JobControl"
3170
+ },
3171
+ {
3172
+ "namespaceUri": "http://opcfoundation.org/UA/Dictionary/IRDI",
3173
+ "alias": "irdi"
3174
+ },
3175
+ {
3176
+ "namespaceUri": "http://opcfoundation.org/UA/IA/",
3177
+ "alias": "ia"
3178
+ },
3179
+ {
3180
+ "namespaceUri": "http://opcfoundation.org/UA/Machinery/",
3181
+ "alias": "machinery"
3182
+ },
3183
+ {
3184
+ "namespaceUri": "http://opcfoundation.org/UA/Machinery/Jobs/",
3185
+ "alias": "machineryJobs"
3186
+ },
3187
+ {
3188
+ "namespaceUri": "http://opcfoundation.org/UA/MachineTool/",
3189
+ "alias": "machineTool"
3190
+ },
3191
+ {
3192
+ "namespaceUri": "http://opcfoundation.org/UA/PackML/",
3193
+ "alias": "packML"
3194
+ },
3195
+ {
3196
+ "namespaceUri": "urn://node-opcua-simulator",
3197
+ "alias": "ns3"
3198
+ },
3199
+ {
3200
+ "namespaceUri": "http://sterfive.com/UA/CoffeeMachine/",
3201
+ "alias": "sterfive"
3202
+ }
3203
+ ]
3204
+ },
3205
+ {
3206
+ "id": "0eeeefa89ae3646a",
3207
+ "type": "ui-group",
3208
+ "name": "CoffeeMachineGroup",
3209
+ "page": "72c675db46ea859f",
3210
+ "width": "28",
3211
+ "height": "17",
3212
+ "order": 1,
3213
+ "showTitle": true,
3214
+ "className": "",
3215
+ "visible": "true",
3216
+ "disabled": "false",
3217
+ "groupType": "default"
3218
+ },
3219
+ {
3220
+ "id": "837da312967f08dd",
3221
+ "type": "ui-group",
3222
+ "name": "Experiment",
3223
+ "page": "9d05df9ca7e7c40b",
3224
+ "width": 6,
3225
+ "height": 1,
3226
+ "order": 1,
3227
+ "showTitle": true,
3228
+ "className": "",
3229
+ "visible": "true",
3230
+ "disabled": "false",
3231
+ "groupType": "default"
3232
+ },
3233
+ {
3234
+ "id": "09c06667bee47085",
3235
+ "type": "ui-group",
3236
+ "name": "CofeeMachineSynopsisGroup",
3237
+ "page": "cb68b56866ae7782",
3238
+ "width": "20",
3239
+ "height": "12",
3240
+ "order": 1,
3241
+ "showTitle": false,
3242
+ "className": "",
3243
+ "visible": "true",
3244
+ "disabled": "false",
3245
+ "groupType": "default"
3246
+ },
3247
+ {
3248
+ "id": "72c675db46ea859f",
3249
+ "type": "ui-page",
3250
+ "name": "CoffeeMachinePage",
3251
+ "ui": "ba750d2403672175",
3252
+ "path": "/CoffeeMachine",
3253
+ "icon": "coffee",
3254
+ "layout": "grid",
3255
+ "theme": "645ffb825f13937f",
3256
+ "breakpoints": [
3257
+ {
3258
+ "name": "Default",
3259
+ "px": "0",
3260
+ "cols": "3"
3261
+ },
3262
+ {
3263
+ "name": "Tablet",
3264
+ "px": "576",
3265
+ "cols": "6"
3266
+ },
3267
+ {
3268
+ "name": "Small Desktop",
3269
+ "px": "768",
3270
+ "cols": "9"
3271
+ },
3272
+ {
3273
+ "name": "Desktop",
3274
+ "px": "1024",
3275
+ "cols": "12"
3276
+ }
3277
+ ],
3278
+ "order": 3,
3279
+ "className": "",
3280
+ "visible": "true",
3281
+ "disabled": "false"
3282
+ },
3283
+ {
3284
+ "id": "9d05df9ca7e7c40b",
3285
+ "type": "ui-page",
3286
+ "name": "Page 1",
3287
+ "ui": "ba750d2403672175",
3288
+ "path": "/page1",
3289
+ "icon": "home",
3290
+ "layout": "grid",
3291
+ "theme": "645ffb825f13937f",
3292
+ "breakpoints": [
3293
+ {
3294
+ "name": "Default",
3295
+ "px": 0,
3296
+ "cols": 3
3297
+ },
3298
+ {
3299
+ "name": "Tablet",
3300
+ "px": 576,
3301
+ "cols": 6
3302
+ },
3303
+ {
3304
+ "name": "Small Desktop",
3305
+ "px": 768,
3306
+ "cols": 9
3307
+ },
3308
+ {
3309
+ "name": "Desktop",
3310
+ "px": 1024,
3311
+ "cols": 12
3312
+ }
3313
+ ],
3314
+ "order": 2,
3315
+ "className": "",
3316
+ "visible": "true",
3317
+ "disabled": "false"
3318
+ },
3319
+ {
3320
+ "id": "cb68b56866ae7782",
3321
+ "type": "ui-page",
3322
+ "name": "CoffeeMachineSynopsys",
3323
+ "ui": "ba750d2403672175",
3324
+ "path": "/CoffeeMachineSynopsis",
3325
+ "icon": "home",
3326
+ "layout": "grid",
3327
+ "theme": "645ffb825f13937f",
3328
+ "breakpoints": [
3329
+ {
3330
+ "name": "Default",
3331
+ "px": "0",
3332
+ "cols": "3"
3333
+ },
3334
+ {
3335
+ "name": "Tablet",
3336
+ "px": "576",
3337
+ "cols": "6"
3338
+ },
3339
+ {
3340
+ "name": "Small Desktop",
3341
+ "px": "768",
3342
+ "cols": "9"
3343
+ },
3344
+ {
3345
+ "name": "Desktop",
3346
+ "px": "1024",
3347
+ "cols": "12"
3348
+ }
3349
+ ],
3350
+ "order": 1,
3351
+ "className": "",
3352
+ "visible": "true",
3353
+ "disabled": "false"
3354
+ },
3355
+ {
3356
+ "id": "ba750d2403672175",
3357
+ "type": "ui-base",
3358
+ "name": "My Dashboard",
3359
+ "path": "/dashboard",
3360
+ "appIcon": "",
3361
+ "includeClientData": true,
3362
+ "acceptsClientConfig": [
3363
+ "ui-notification",
3364
+ "ui-control"
3365
+ ],
3366
+ "showPathInSidebar": false,
3367
+ "headerContent": "page",
3368
+ "navigationStyle": "default",
3369
+ "titleBarStyle": "default",
3370
+ "showReconnectNotification": true,
3371
+ "notificationDisplayTime": 1,
3372
+ "showDisconnectNotification": true
3373
+ },
3374
+ {
3375
+ "id": "645ffb825f13937f",
3376
+ "type": "ui-theme",
3377
+ "name": "Default Theme",
3378
+ "colors": {
3379
+ "surface": "#ffffff",
3380
+ "primary": "#0094CE",
3381
+ "bgPage": "#eeeeee",
3382
+ "groupBg": "#ffffff",
3383
+ "groupOutline": "#cccccc"
3384
+ },
3385
+ "sizes": {
3386
+ "density": "default",
3387
+ "pagePadding": "12px",
3388
+ "groupGap": "12px",
3389
+ "groupBorderRadius": "4px",
3390
+ "widgetGap": "12px"
3391
+ }
3392
+ }
3393
+ ]