iobroker.prosoft_flow 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/jsonConfig.json +72 -12
- package/io-package.json +8 -1
- package/main.js +13 -0
- package/package.json +1 -1
- package/prebuilds/linux-arm64/prosoft_flow_engine.node.gz +0 -0
- package/prebuilds/linux-x64/prosoft_flow_engine.node.gz +0 -0
- package/prebuilds/osx-arm64/prosoft_flow_engine.node.gz +0 -0
- package/prebuilds/osx-x64/prosoft_flow_engine.node.gz +0 -0
- package/prebuilds/win-x64/prosoft_flow_engine.node.gz +0 -0
package/admin/jsonConfig.json
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"items": {
|
|
9
9
|
"headerConn": {
|
|
10
10
|
"type": "header",
|
|
11
|
-
"text": "Modbus Rabitə Ayarları (Serial RTU / Modbus TCP)"
|
|
11
|
+
"text": "Modbus Rabitə Ayarları (Serial RTU / Modbus TCP)",
|
|
12
|
+
"size": 5
|
|
12
13
|
},
|
|
13
14
|
"connectionType": {
|
|
14
15
|
"type": "select",
|
|
@@ -52,7 +53,8 @@
|
|
|
52
53
|
"serialHeader": {
|
|
53
54
|
"type": "header",
|
|
54
55
|
"text": "Serial Parametrləri (COM Port)",
|
|
55
|
-
"hidden": "data.connectionType !== 'serial'"
|
|
56
|
+
"hidden": "data.connectionType !== 'serial'",
|
|
57
|
+
"size": 5
|
|
56
58
|
},
|
|
57
59
|
"serialPort": {
|
|
58
60
|
"type": "text",
|
|
@@ -165,7 +167,8 @@
|
|
|
165
167
|
"netHeader": {
|
|
166
168
|
"type": "header",
|
|
167
169
|
"text": "TCP Şəbəkə Parametrləri",
|
|
168
|
-
"hidden": "data.connectionType === 'serial'"
|
|
170
|
+
"hidden": "data.connectionType === 'serial'",
|
|
171
|
+
"size": 5
|
|
169
172
|
},
|
|
170
173
|
"tcpHost": {
|
|
171
174
|
"type": "text",
|
|
@@ -320,7 +323,8 @@
|
|
|
320
323
|
},
|
|
321
324
|
"clockHeader": {
|
|
322
325
|
"type": "header",
|
|
323
|
-
"text": "AFC Vaxt Mənbəyi"
|
|
326
|
+
"text": "AFC Vaxt Mənbəyi",
|
|
327
|
+
"size": 5
|
|
324
328
|
},
|
|
325
329
|
"afcTimeRegister": {
|
|
326
330
|
"type": "number",
|
|
@@ -333,7 +337,8 @@
|
|
|
333
337
|
},
|
|
334
338
|
"groupsHeader": {
|
|
335
339
|
"type": "header",
|
|
336
|
-
"text": "Hesabat Qrupları Konfiqurasiyası (Oxuma Növü: Cədvəl / Dövri / Əl ilə)"
|
|
340
|
+
"text": "Hesabat Qrupları Konfiqurasiyası (Oxuma Növü: Cədvəl / Dövri / Əl ilə)",
|
|
341
|
+
"size": 5
|
|
337
342
|
},
|
|
338
343
|
"reportGroups": {
|
|
339
344
|
"type": "table",
|
|
@@ -443,20 +448,63 @@
|
|
|
443
448
|
"attr": "ageRegisterM1",
|
|
444
449
|
"type": "number",
|
|
445
450
|
"title": "M1 Age Reg",
|
|
446
|
-
"width": "
|
|
451
|
+
"width": "5%"
|
|
447
452
|
},
|
|
448
453
|
{
|
|
449
454
|
"name": "ageRegisterM2",
|
|
450
455
|
"attr": "ageRegisterM2",
|
|
451
456
|
"type": "number",
|
|
452
457
|
"title": "M2 Age Reg",
|
|
453
|
-
"width": "
|
|
458
|
+
"width": "5%"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "ageRegisterM3",
|
|
462
|
+
"attr": "ageRegisterM3",
|
|
463
|
+
"type": "number",
|
|
464
|
+
"title": "M3 Age Reg",
|
|
465
|
+
"width": "5%"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "ageRegisterM4",
|
|
469
|
+
"attr": "ageRegisterM4",
|
|
470
|
+
"type": "number",
|
|
471
|
+
"title": "M4 Age Reg",
|
|
472
|
+
"width": "5%"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "ageRegisterM5",
|
|
476
|
+
"attr": "ageRegisterM5",
|
|
477
|
+
"type": "number",
|
|
478
|
+
"title": "M5 Age Reg",
|
|
479
|
+
"width": "5%"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "ageRegisterM6",
|
|
483
|
+
"attr": "ageRegisterM6",
|
|
484
|
+
"type": "number",
|
|
485
|
+
"title": "M6 Age Reg",
|
|
486
|
+
"width": "5%"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "ageRegisterM7",
|
|
490
|
+
"attr": "ageRegisterM7",
|
|
491
|
+
"type": "number",
|
|
492
|
+
"title": "M7 Age Reg",
|
|
493
|
+
"width": "5%"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "ageRegisterM8",
|
|
497
|
+
"attr": "ageRegisterM8",
|
|
498
|
+
"type": "number",
|
|
499
|
+
"title": "M8 Age Reg",
|
|
500
|
+
"width": "5%"
|
|
454
501
|
}
|
|
455
502
|
]
|
|
456
503
|
},
|
|
457
504
|
"dailyTagsHeader": {
|
|
458
505
|
"type": "header",
|
|
459
|
-
"text": "Gündəlik Hesabat Teqləri (Daily Report - 57 Teq)"
|
|
506
|
+
"text": "Gündəlik Hesabat Teqləri (Daily Report - 57 Teq)",
|
|
507
|
+
"size": 5
|
|
460
508
|
},
|
|
461
509
|
"dailyTags": {
|
|
462
510
|
"type": "table",
|
|
@@ -539,7 +587,8 @@
|
|
|
539
587
|
},
|
|
540
588
|
"hourlyTagsHeader": {
|
|
541
589
|
"type": "header",
|
|
542
|
-
"text": "Saatlıq Hesabat Teqləri (Hourly Report - 57 Teq)"
|
|
590
|
+
"text": "Saatlıq Hesabat Teqləri (Hourly Report - 57 Teq)",
|
|
591
|
+
"size": 5
|
|
543
592
|
},
|
|
544
593
|
"hourlyTags": {
|
|
545
594
|
"type": "table",
|
|
@@ -622,7 +671,8 @@
|
|
|
622
671
|
},
|
|
623
672
|
"snapshotTagsHeader": {
|
|
624
673
|
"type": "header",
|
|
625
|
-
"text": "Ani Hesabat Teqləri (Snapshot Report - 57 Teq)"
|
|
674
|
+
"text": "Ani Hesabat Teqləri (Snapshot Report - 57 Teq)",
|
|
675
|
+
"size": 5
|
|
626
676
|
},
|
|
627
677
|
"snapshotTags": {
|
|
628
678
|
"type": "table",
|
|
@@ -698,7 +748,8 @@
|
|
|
698
748
|
},
|
|
699
749
|
"customTagsHeader": {
|
|
700
750
|
"type": "header",
|
|
701
|
-
"text": "Xüsusi Hesabat Teqləri (Prover və s.)"
|
|
751
|
+
"text": "Xüsusi Hesabat Teqləri (Prover və s.)",
|
|
752
|
+
"size": 5
|
|
702
753
|
},
|
|
703
754
|
"customReportTags": {
|
|
704
755
|
"type": "table",
|
|
@@ -779,7 +830,8 @@
|
|
|
779
830
|
"items": {
|
|
780
831
|
"licHeader": {
|
|
781
832
|
"type": "header",
|
|
782
|
-
"text": "Avadanlıq İdentifikatoru və Lisenziyalaşdırma"
|
|
833
|
+
"text": "Avadanlıq İdentifikatoru və Lisenziyalaşdırma",
|
|
834
|
+
"size": 5
|
|
783
835
|
},
|
|
784
836
|
"licText": {
|
|
785
837
|
"type": "staticText",
|
|
@@ -815,6 +867,14 @@
|
|
|
815
867
|
"min": 1,
|
|
816
868
|
"max": 65535,
|
|
817
869
|
"sm": 4
|
|
870
|
+
},
|
|
871
|
+
"hardwareId": {
|
|
872
|
+
"type": "text",
|
|
873
|
+
"label": "Avadanlıq İdentifikatoru (Hardware ID)",
|
|
874
|
+
"readOnly": true,
|
|
875
|
+
"copyToClipboard": true,
|
|
876
|
+
"help": "Lisenziya açarı almaq üçün bu İD-ni tərtibatçıya təqdim edin",
|
|
877
|
+
"sm": 12
|
|
818
878
|
}
|
|
819
879
|
}
|
|
820
880
|
}
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "prosoft_flow",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.1.4": {
|
|
7
|
+
"en": "Fixed jsonConfig header size validation and added auto-copyable Hardware ID field to licensing tab."
|
|
8
|
+
},
|
|
9
|
+
"0.1.3": {
|
|
10
|
+
"en": "Added M3 Age Reg (Meter 3 Age Register) column to admin jsonConfig."
|
|
11
|
+
},
|
|
6
12
|
"0.1.2": {
|
|
7
13
|
"en": "Updated ProSoft MVI56-AFC industrial icon, fixed jsonConfig root schema, and added i18n translation files."
|
|
8
14
|
},
|
|
@@ -79,6 +85,7 @@
|
|
|
79
85
|
"reconnectInterval": 5000,
|
|
80
86
|
"slaveId": 244,
|
|
81
87
|
"pollInterval": 1000,
|
|
88
|
+
"hardwareId": "",
|
|
82
89
|
"licenseKey": "",
|
|
83
90
|
"licenseTimeSource": "afc",
|
|
84
91
|
"licenseTimeAddress": 9950,
|
package/main.js
CHANGED
|
@@ -56,6 +56,14 @@ class ProsoftFlow extends utils.Adapter {
|
|
|
56
56
|
|
|
57
57
|
await this.setState('info.hardwareId', { val: hwId, ack: true });
|
|
58
58
|
await this.setState('info.environmentType', { val: envType, ack: true });
|
|
59
|
+
|
|
60
|
+
// Populate native.hardwareId so Instance Settings UI displays it with copy button
|
|
61
|
+
if (this.config.hardwareId !== hwId) {
|
|
62
|
+
this.config.hardwareId = hwId;
|
|
63
|
+
await this.extendForeignObjectAsync(`system.adapter.${this.namespace}`, {
|
|
64
|
+
native: { hardwareId: hwId },
|
|
65
|
+
});
|
|
66
|
+
}
|
|
59
67
|
await this.setState('info.licenseStatus', {
|
|
60
68
|
val: licInfo.valid ? `Valid (${licInfo.edition || 'licensed'})` : licInfo.message,
|
|
61
69
|
ack: true,
|
|
@@ -378,6 +386,11 @@ class ProsoftFlow extends utils.Adapter {
|
|
|
378
386
|
ageRegisterM1: Number(rg.ageRegisterM1) || 0,
|
|
379
387
|
ageRegisterM2: Number(rg.ageRegisterM2) || 0,
|
|
380
388
|
ageRegisterM3: Number(rg.ageRegisterM3) || 0,
|
|
389
|
+
ageRegisterM4: Number(rg.ageRegisterM4) || 0,
|
|
390
|
+
ageRegisterM5: Number(rg.ageRegisterM5) || 0,
|
|
391
|
+
ageRegisterM6: Number(rg.ageRegisterM6) || 0,
|
|
392
|
+
ageRegisterM7: Number(rg.ageRegisterM7) || 0,
|
|
393
|
+
ageRegisterM8: Number(rg.ageRegisterM8) || 0,
|
|
381
394
|
tags: tagsForGroup,
|
|
382
395
|
});
|
|
383
396
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|