@ncd-io/node-red-enterprise-sensors 1.4.5 → 1.4.7
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/lib/WirelessGateway.js +621 -129
- package/package.json +1 -1
- package/wireless.html +152 -16
- package/wireless.js +50 -8
package/package.json
CHANGED
package/wireless.html
CHANGED
|
@@ -843,9 +843,9 @@
|
|
|
843
843
|
flow_addr_3_536:{value:0, validate: NCD_validators.number_range(0, 255)},
|
|
844
844
|
flow_addr_4_536:{value:0, validate: NCD_validators.number_range(0, 255)},
|
|
845
845
|
oxygen_rate_536_active:{value: ""},
|
|
846
|
-
oxygen_rate_536:{value:2, validate: NCD_validators.number_range(
|
|
846
|
+
oxygen_rate_536:{value:2, validate: NCD_validators.number_range(1, 100)},
|
|
847
847
|
oxygen_timeout_536_active:{value: ""},
|
|
848
|
-
oxygen_timeout_536:{value:5, validate: NCD_validators.number_range(
|
|
848
|
+
oxygen_timeout_536:{value:5, validate: NCD_validators.number_range(1, 10)},
|
|
849
849
|
oxygen_max_threshold_s1_536_active:{value: ""},
|
|
850
850
|
oxygen_max_threshold_s1_536:{value:12, validate: NCD_validators.number_range(0, 2000)},
|
|
851
851
|
oxygen_max_threshold_s2_536_active:{value: ""},
|
|
@@ -873,7 +873,24 @@
|
|
|
873
873
|
odr_p1_543_active: {value: ""},
|
|
874
874
|
odr_p1_543: {value:0},
|
|
875
875
|
full_scale_range_543_active: {value: ""},
|
|
876
|
-
full_scale_range_543: {value: 1}
|
|
876
|
+
full_scale_range_543: {value: 1},
|
|
877
|
+
sampling_duration_p1_543_active: {value: ""},
|
|
878
|
+
sampling_duration_p1_543: {value: 18, validate: NCD_validators.number_range(1, 50)},
|
|
879
|
+
|
|
880
|
+
sensor_length_29_active: {value: ""},
|
|
881
|
+
sensor_length_29: {value:500, validate: NCD_validators.number_range(1, 10000)},
|
|
882
|
+
|
|
883
|
+
tare_value_217_active: {value: ""},
|
|
884
|
+
tare_value_217: {value: 0, validate: NCD_validators.number_range(0, 4294967295)},
|
|
885
|
+
|
|
886
|
+
rtd_wire_type_ch2_54_active: {value: ""},
|
|
887
|
+
rtd_wire_type_ch2_54: {value:1},
|
|
888
|
+
rtd_range_ch2_54_active: {value: ""},
|
|
889
|
+
rtd_range_ch2_54: {value:1},
|
|
890
|
+
rtd_wire_type_ch3_55_active: {value: ""},
|
|
891
|
+
rtd_wire_type_ch3_55: {value:1},
|
|
892
|
+
rtd_range_ch3_55_active: {value: ""},
|
|
893
|
+
rtd_range_ch3_55: {value:1}
|
|
877
894
|
},
|
|
878
895
|
inputs: 0,
|
|
879
896
|
outputs: 1,
|
|
@@ -933,7 +950,8 @@
|
|
|
933
950
|
"51": "51 - 6 Channel Current Sensor",
|
|
934
951
|
"52": "52 - 2 Channel 4-20mA Receiver",
|
|
935
952
|
"53": "53 - Air Quality CO2 and PM Sensor",
|
|
936
|
-
"54": "54 -
|
|
953
|
+
"54": "54 - 2-Channel RTD Temperature Sensor",
|
|
954
|
+
"55": "55 - 3-Channel RTD Temperature Sensor",
|
|
937
955
|
"56": "56 - 2 Channel 0-10VDC Receiver",
|
|
938
956
|
"58": "58 - Tank Level v3",
|
|
939
957
|
"60": "60 - Air Velocity, Pressure, & Temperature Sensor",
|
|
@@ -982,7 +1000,7 @@
|
|
|
982
1000
|
"114": "114 - Standalone Smart Vibration Sensor v4",
|
|
983
1001
|
"117": "117 - Custom Vibration Sensor PPV",
|
|
984
1002
|
"118": "118 - Dual Pressure and Temperature Sensor",
|
|
985
|
-
"119": "119 -
|
|
1003
|
+
"119": "119 - Machine Runtime Hour Meter",
|
|
986
1004
|
"120": "120 - Wireless H2S Sensor",
|
|
987
1005
|
"121": "121 - Wireless Wood Moisture Sensor",
|
|
988
1006
|
"122": "122 - Wireless 4-20mA Current Splitter",
|
|
@@ -1244,7 +1262,8 @@
|
|
|
1244
1262
|
<option value="51">51 - 6 Channel Current Sensor</option>
|
|
1245
1263
|
<option value="52">52 - 2 Channel 4-20mA Receiver</option>
|
|
1246
1264
|
<option value="53">53 - Air Quality CO2 and PM Sensor</option>
|
|
1247
|
-
<option value="54">54 -
|
|
1265
|
+
<option value="54">54 - 2-Channel RTD Temperature Sensor</option>
|
|
1266
|
+
<option value="55">55 - 3-Channel RTD Temperature Sensor</option>
|
|
1248
1267
|
<option value="56">56 - 2 Channel 0-10VDC Receiver</option>
|
|
1249
1268
|
<option value="58">58 - Tank Level v3</option>
|
|
1250
1269
|
<option value="60">60 - Air Velocity and Precision Pressure & Temperature Sensor</option>
|
|
@@ -1295,7 +1314,7 @@
|
|
|
1295
1314
|
<option value="114">114 - Standalone Smart Vibration Sensor v4</option>
|
|
1296
1315
|
<option value="117">117 - Custom Vibration Sensor PPV</option>
|
|
1297
1316
|
<option value="118">118 - Dual Pressure and Temperature Sensor</option>
|
|
1298
|
-
<option value="119">119 -
|
|
1317
|
+
<option value="119">119 - Machine Runtime Hour Meter</option>
|
|
1299
1318
|
<option value="120">120 - Wireless H2S Sensor</option>
|
|
1300
1319
|
<option value="121">121 - Wireless Wood Moisture Sensor</option>
|
|
1301
1320
|
<option value="122">122 - Wireless 4-20mA Current Splitter</option>
|
|
@@ -1344,7 +1363,7 @@
|
|
|
1344
1363
|
<label for="node-input-auto_config"><i class="icon-tag"></i> Auto Config</label>
|
|
1345
1364
|
<input class="section-control" type="checkbox" id="node-input-auto_config" value="1">
|
|
1346
1365
|
</div>
|
|
1347
|
-
<div class="form-row ncd-dependent" data-sensor-4 data-sensor-12 data-sensor-21 data-sensor-23 data-sensor-26 data-sensor-32 data-sensor-33 data-sensor-39 data-sensor-44 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-53 data-sensor-56 data-sensor-58 data-sensor-74 data-sensor-76 data-sensor-78 data-sensor-79 data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-87 data-sensor-88 data-sensor-89 data-sensor-90 data-sensor-97 data-sensor-98 data-sensor-91 data-sensor-101 data-sensor-102 data-sensor-103 data-sensor-105 data-sensor-106 data-sensor-107 data-sensor-108 data-sensor-109 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-117 data-sensor-118 data-sensor-119 data-sensor-120 data-sensor-121 data-sensor-122 data-sensor-123 data-sensor-124 data-sensor-180 data-sensor-181 data-sensor-202 data-sensor-211 data-sensor-217 data-sensor-270 data-sensor-519 data-sensor-520 data-sensor-521 data-sensor-531 data-sensor-535 data-sensor-536 data-sensor-537 data-sensor-538 data-sensor-539 data-sensor-540 data-sensor-541 data-sensor-542 data-sensor-543 data-sensor-1010 data-sensor-1011>
|
|
1366
|
+
<div class="form-row ncd-dependent" data-sensor-4 data-sensor-12 data-sensor-21 data-sensor-29 data-sensor-23 data-sensor-26 data-sensor-32 data-sensor-33 data-sensor-39 data-sensor-44 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-53 data-sensor-54 data-sensor-55 data-sensor-56 data-sensor-58 data-sensor-74 data-sensor-76 data-sensor-78 data-sensor-79 data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-87 data-sensor-88 data-sensor-89 data-sensor-90 data-sensor-97 data-sensor-98 data-sensor-91 data-sensor-101 data-sensor-102 data-sensor-103 data-sensor-105 data-sensor-106 data-sensor-107 data-sensor-108 data-sensor-109 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-117 data-sensor-118 data-sensor-119 data-sensor-120 data-sensor-121 data-sensor-122 data-sensor-123 data-sensor-124 data-sensor-180 data-sensor-181 data-sensor-202 data-sensor-211 data-sensor-217 data-sensor-270 data-sensor-519 data-sensor-520 data-sensor-521 data-sensor-531 data-sensor-535 data-sensor-536 data-sensor-537 data-sensor-538 data-sensor-539 data-sensor-540 data-sensor-541 data-sensor-542 data-sensor-543 data-sensor-1010 data-sensor-1011>
|
|
1348
1367
|
<hr>
|
|
1349
1368
|
<label for="node-input-on_the_fly_enable"><i class="icon-tag"></i> OTF Config*</label>
|
|
1350
1369
|
<input type="checkbox" id="node-input-on_the_fly_enable" value="1">
|
|
@@ -2669,7 +2688,7 @@
|
|
|
2669
2688
|
</div>
|
|
2670
2689
|
</div>
|
|
2671
2690
|
</div>
|
|
2672
|
-
<div class="ncd-dependent" data-sensor-108
|
|
2691
|
+
<div class="ncd-dependent" data-sensor-108>
|
|
2673
2692
|
<div class="form-row ncd-active-check">
|
|
2674
2693
|
<strong>Enable Accelerometer</strong>
|
|
2675
2694
|
<p class="caption">
|
|
@@ -2704,6 +2723,8 @@
|
|
|
2704
2723
|
</select>
|
|
2705
2724
|
</div>
|
|
2706
2725
|
</div>
|
|
2726
|
+
</div>
|
|
2727
|
+
<div class="ncd-dependent" data-sensor-108 data-sensor-119>
|
|
2707
2728
|
<div class="form-row ncd-active-check">
|
|
2708
2729
|
<strong>Set Accelerometer Threshold</strong>
|
|
2709
2730
|
<p class="caption">
|
|
@@ -2758,8 +2779,8 @@
|
|
|
2758
2779
|
<div>
|
|
2759
2780
|
<label for="node-input-clear_timers_119"><i class="icon-tag"></i>Value:</label>
|
|
2760
2781
|
<select id="node-input-clear_timers_119">
|
|
2761
|
-
<option value="
|
|
2762
|
-
<option value="
|
|
2782
|
+
<option value="2">Magnetometer</option>
|
|
2783
|
+
<option value="1">Accelerometer</option>
|
|
2763
2784
|
</select>
|
|
2764
2785
|
</div>
|
|
2765
2786
|
</div>
|
|
@@ -3138,9 +3159,9 @@
|
|
|
3138
3159
|
<label for="node-input-push_notification_119"><i class="icon-tag"></i>Value:</label>
|
|
3139
3160
|
<select id="node-input-push_notification_119">
|
|
3140
3161
|
<option value="0" selected>Disabled</option>
|
|
3141
|
-
<option value="
|
|
3142
|
-
<option value="
|
|
3143
|
-
<option value="
|
|
3162
|
+
<option value="3">Enable All</option>
|
|
3163
|
+
<option value="1">Enable on Accelerometer</option>
|
|
3164
|
+
<option value="2">Enable on Magnetometer</option>
|
|
3144
3165
|
</select>
|
|
3145
3166
|
</div>
|
|
3146
3167
|
</div>
|
|
@@ -3554,7 +3575,7 @@
|
|
|
3554
3575
|
</div>
|
|
3555
3576
|
</div>
|
|
3556
3577
|
</div>
|
|
3557
|
-
<div class="ncd-dependent" data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114
|
|
3578
|
+
<div class="ncd-dependent" data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114>
|
|
3558
3579
|
<div class="form-row ncd-active-check">
|
|
3559
3580
|
<strong>Probe 1: Sampling Duration</strong>
|
|
3560
3581
|
<p>
|
|
@@ -3573,6 +3594,24 @@
|
|
|
3573
3594
|
</div>
|
|
3574
3595
|
</div>
|
|
3575
3596
|
</div>
|
|
3597
|
+
<div class="ncd-dependent" data-sensor-543>
|
|
3598
|
+
<div class="form-row ncd-active-check">
|
|
3599
|
+
<strong>Probe 1: Sampling Duration</strong>
|
|
3600
|
+
<p>
|
|
3601
|
+
Set the amount of time in seconds which the samples are taken.<br><br>
|
|
3602
|
+
Note: The sampling duration depends on the ODR.<br><br>
|
|
3603
|
+
Valid range: 1 - 50 Secodns.
|
|
3604
|
+
</p>
|
|
3605
|
+
<div>
|
|
3606
|
+
<label for="node-input-sampling_duration_p1_543_active">Active:</label>
|
|
3607
|
+
<input type="checkbox" id="node-input-sampling_duration_p1_543_active" class="ncd-config-toggle" data-target-id="node-input-sampling_duration_p1_543" value="1">
|
|
3608
|
+
</div>
|
|
3609
|
+
<div>
|
|
3610
|
+
<label for="node-input-sampling_duration_p1_543"><i class="icon-tag"></i>Value:</label>
|
|
3611
|
+
<input type="text" id="node-input-sampling_duration_p1_543">
|
|
3612
|
+
</div>
|
|
3613
|
+
</div>
|
|
3614
|
+
</div>
|
|
3576
3615
|
<div class="ncd-dependent" data-sensor-111>
|
|
3577
3616
|
<div class="form-row ncd-active-check">
|
|
3578
3617
|
<strong>Probe 2: Sampling Duration</strong>
|
|
@@ -4943,7 +4982,7 @@
|
|
|
4943
4982
|
</div>
|
|
4944
4983
|
-->
|
|
4945
4984
|
</div>
|
|
4946
|
-
<div class="ncd-dependent" data-sensor-39>
|
|
4985
|
+
<div class="ncd-dependent" data-sensor-39 data-sensor-54 data-sensor-55>
|
|
4947
4986
|
<div class="form-row ncd-active-check">
|
|
4948
4987
|
<strong>Set RTD Wire Type</strong>
|
|
4949
4988
|
<p>The wire type of RTD Sensor Probe to be connected.</p>
|
|
@@ -5356,6 +5395,19 @@
|
|
|
5356
5395
|
<input type="text" id="node-input-weight_calib_217" placeholder="0" value="0">
|
|
5357
5396
|
</div>
|
|
5358
5397
|
</div>
|
|
5398
|
+
<div class="form-row ncd-active-check">
|
|
5399
|
+
<div>
|
|
5400
|
+
<strong>Set Tare Value</strong>
|
|
5401
|
+
</div>
|
|
5402
|
+
<div>
|
|
5403
|
+
<label for="node-input-tare_value_217_active"><i class="icon-tag"></i>Active:</label>
|
|
5404
|
+
<input type="checkbox" id="node-input-tare_value_217_active" class="ncd-config-toggle" data-target-id="node-input-tare_value_217" value="1">
|
|
5405
|
+
</div>
|
|
5406
|
+
<div>
|
|
5407
|
+
<label for="node-input-tare_value_217"><i class="icon-tag"></i> Value</label>
|
|
5408
|
+
<input type="text" id="node-input-tare_value_217" placeholder="0" value="0">
|
|
5409
|
+
</div>
|
|
5410
|
+
</div>
|
|
5359
5411
|
</div>
|
|
5360
5412
|
<div class="ncd-dependent" data-sensor-26>
|
|
5361
5413
|
<div class="form-row ncd-active-check">
|
|
@@ -6276,6 +6328,90 @@
|
|
|
6276
6328
|
</p>
|
|
6277
6329
|
</div>
|
|
6278
6330
|
</div>
|
|
6331
|
+
<div class="ncd-dependent" data-sensor-29>
|
|
6332
|
+
<div class="form-row ncd-active-check">
|
|
6333
|
+
<strong>Set Sensor Length</strong>
|
|
6334
|
+
<p>Set the Length of the Linear Displacement Sensor in Millimeters.<br>
|
|
6335
|
+
Valid range: 1 - 10,000 mm</p>
|
|
6336
|
+
<div>
|
|
6337
|
+
<label for="node-input-sensor_length_29_active">Active:</label>
|
|
6338
|
+
<input type="checkbox" id="node-input-sensor_length_29_active" class="ncd-config-toggle" data-target-id="node-input-sensor_length_29" value="1">
|
|
6339
|
+
</div>
|
|
6340
|
+
<div>
|
|
6341
|
+
<label for="node-input-sensor_length_29"><i class="icon-tag"></i>Value:</label>
|
|
6342
|
+
<input type="text" id="node-input-sensor_length_29">
|
|
6343
|
+
</div>
|
|
6344
|
+
<p class="caption">
|
|
6345
|
+
Default value: 500 mm.
|
|
6346
|
+
</p>
|
|
6347
|
+
</div>
|
|
6348
|
+
</div>
|
|
6349
|
+
<div class="ncd-dependent" data-sensor-54 data-sensor-55>
|
|
6350
|
+
<div class="form-row ncd-active-check">
|
|
6351
|
+
<strong>Set RTD Wire Type - Channel 2</strong>
|
|
6352
|
+
<p>The wire type of RTD Sensor Probe to be connected in Channel 2.</p>
|
|
6353
|
+
<div>
|
|
6354
|
+
<label for="node-input-rtd_wire_type_ch2_54_active">Active:</label>
|
|
6355
|
+
<input type="checkbox" id="node-input-rtd_wire_type_ch2_54_active" class="ncd-config-toggle" data-target-id="node-input-rtd_wire_type_ch2_54" value="1">
|
|
6356
|
+
</div>
|
|
6357
|
+
<div>
|
|
6358
|
+
<label for="node-input-rtd_wire_type_ch2_54"><i class="icon-tag"></i>Value:</label>
|
|
6359
|
+
<select id="node-input-rtd_wire_type_ch2_54">
|
|
6360
|
+
<option selected="selected" value="0">2 Wires</option>
|
|
6361
|
+
<option value="1">3 Wires</option>
|
|
6362
|
+
<option value="2">4 Wires</option>
|
|
6363
|
+
</select>
|
|
6364
|
+
</div>
|
|
6365
|
+
</div>
|
|
6366
|
+
<div class="form-row ncd-active-check">
|
|
6367
|
+
<strong>Set RTD Range - Channel 2</strong>
|
|
6368
|
+
<p>Type of PT Sensor Probe to be connected in Channel 2.</p>
|
|
6369
|
+
<div>
|
|
6370
|
+
<label for="node-input-rtd_range_ch2_54_active">Active:</label>
|
|
6371
|
+
<input type="checkbox" id="node-input-rtd_range_ch2_54_active" class="ncd-config-toggle" data-target-id="node-input-rtd_range_ch2_54" value="1">
|
|
6372
|
+
</div>
|
|
6373
|
+
<div>
|
|
6374
|
+
<label for="node-input-rtd_range_ch2_54"><i class="icon-tag"></i>Value:</label>
|
|
6375
|
+
<select id="node-input-rtd_range_ch2_54">
|
|
6376
|
+
<option selected="selected" value="0">PT 100</option>
|
|
6377
|
+
<option value="1">PT 1000</option>
|
|
6378
|
+
</select>
|
|
6379
|
+
</div>
|
|
6380
|
+
</div>
|
|
6381
|
+
</div>
|
|
6382
|
+
<div class="ncd-dependent" data-sensor-55>
|
|
6383
|
+
<div class="form-row ncd-active-check">
|
|
6384
|
+
<strong>Set RTD Wire Type - Channel 3</strong>
|
|
6385
|
+
<p>The wire type of RTD Sensor Probe to be connected in Channel 3.</p>
|
|
6386
|
+
<div>
|
|
6387
|
+
<label for="node-input-rtd_wire_type_ch3_55_active">Active:</label>
|
|
6388
|
+
<input type="checkbox" id="node-input-rtd_wire_type_ch3_55_active" class="ncd-config-toggle" data-target-id="node-input-rtd_wire_type_ch3_55" value="1">
|
|
6389
|
+
</div>
|
|
6390
|
+
<div>
|
|
6391
|
+
<label for="node-input-rtd_wire_type_ch3_55"><i class="icon-tag"></i>Value:</label>
|
|
6392
|
+
<select id="node-input-rtd_wire_type_ch3_55">
|
|
6393
|
+
<option selected="selected" value="0">2 Wires</option>
|
|
6394
|
+
<option value="1">3 Wires</option>
|
|
6395
|
+
<option value="2">4 Wires</option>
|
|
6396
|
+
</select>
|
|
6397
|
+
</div>
|
|
6398
|
+
</div>
|
|
6399
|
+
<div class="form-row ncd-active-check">
|
|
6400
|
+
<strong>Set RTD Range - Channel 3</strong>
|
|
6401
|
+
<p>Type of PT Sensor Probe to be connected in Channel 3.</p>
|
|
6402
|
+
<div>
|
|
6403
|
+
<label for="node-input-rtd_range_ch3_55_active">Active:</label>
|
|
6404
|
+
<input type="checkbox" id="node-input-rtd_range_ch3_55_active" class="ncd-config-toggle" data-target-id="node-input-rtd_range_ch3_55" value="1">
|
|
6405
|
+
</div>
|
|
6406
|
+
<div>
|
|
6407
|
+
<label for="node-input-rtd_range_ch3_55"><i class="icon-tag"></i>Value:</label>
|
|
6408
|
+
<select id="node-input-rtd_range_ch3_55">
|
|
6409
|
+
<option selected="selected" value="0">PT 100</option>
|
|
6410
|
+
<option value="1">PT 1000</option>
|
|
6411
|
+
</select>
|
|
6412
|
+
</div>
|
|
6413
|
+
</div>
|
|
6414
|
+
</div>
|
|
6279
6415
|
</div>
|
|
6280
6416
|
</div>
|
|
6281
6417
|
</script>
|
package/wireless.js
CHANGED
|
@@ -1503,6 +1503,11 @@ module.exports = function(RED) {
|
|
|
1503
1503
|
promises.change_detection_ch3 = node.config_gateway.config_set_change_detection_ch3(mac, config.change_enabled_ch3 ? 1 : 0, parseInt(config.change_pr_ch3), parseInt(config.change_interval_ch3));
|
|
1504
1504
|
}
|
|
1505
1505
|
break;
|
|
1506
|
+
case 29:
|
|
1507
|
+
if(config.sensor_length_29_active){
|
|
1508
|
+
promises.sensor_length_29 = node.config_gateway.config_set_sensor_length_29(mac, parseInt(config.sensor_length_29));
|
|
1509
|
+
}
|
|
1510
|
+
break;
|
|
1506
1511
|
case 32:
|
|
1507
1512
|
if(config.sps_skip_samples_32_active){
|
|
1508
1513
|
promises.sps_skip_samples_32 = node.config_gateway.config_set_sps_skip_samples_32(mac, parseInt(config.sps_skip_samples_32));
|
|
@@ -1683,6 +1688,40 @@ module.exports = function(RED) {
|
|
|
1683
1688
|
promises.start_sps30_fan_cleaning_53 = node.config_gateway.config_set_start_sps30_fan_cleaning_53(mac);
|
|
1684
1689
|
}
|
|
1685
1690
|
break;
|
|
1691
|
+
case 54:
|
|
1692
|
+
if(config.rtd_type_39_active){
|
|
1693
|
+
promises.rtd_type_39 = node.config_gateway.config_set_rtd_type_39(mac, parseInt(config.rtd_type_39));
|
|
1694
|
+
}
|
|
1695
|
+
if(config.rtd_range_39_active){
|
|
1696
|
+
promises.rtd_range_39 = node.config_gateway.config_set_rtd_range_39(mac, parseInt(config.rtd_range_39));
|
|
1697
|
+
}
|
|
1698
|
+
if(config.rtd_wire_type_ch2_54_active){
|
|
1699
|
+
promises.rtd_wire_type_ch2_54 = node.config_gateway.config_set_rtd_wire_type_ch2_54(mac, parseInt(config.rtd_wire_type_ch2_54));
|
|
1700
|
+
}
|
|
1701
|
+
if(config.rtd_range_ch2_54_active){
|
|
1702
|
+
promises.rtd_range_ch2_54 = node.config_gateway.config_set_rtd_range_ch2_54(mac, parseInt(config.rtd_range_ch2_54));
|
|
1703
|
+
}
|
|
1704
|
+
break;
|
|
1705
|
+
case 55:
|
|
1706
|
+
if(config.rtd_type_39_active){
|
|
1707
|
+
promises.rtd_type_39 = node.config_gateway.config_set_rtd_type_39(mac, parseInt(config.rtd_type_39));
|
|
1708
|
+
}
|
|
1709
|
+
if(config.rtd_range_39_active){
|
|
1710
|
+
promises.rtd_range_39 = node.config_gateway.config_set_rtd_range_39(mac, parseInt(config.rtd_range_39));
|
|
1711
|
+
}
|
|
1712
|
+
if(config.rtd_wire_type_ch2_54_active){
|
|
1713
|
+
promises.rtd_wire_type_ch2_54 = node.config_gateway.config_set_rtd_wire_type_ch2_54(mac, parseInt(config.rtd_wire_type_ch2_54));
|
|
1714
|
+
}
|
|
1715
|
+
if(config.rtd_range_ch2_54_active){
|
|
1716
|
+
promises.rtd_range_ch2_54 = node.config_gateway.config_set_rtd_range_ch2_54(mac, parseInt(config.rtd_range_ch2_54));
|
|
1717
|
+
}
|
|
1718
|
+
if(config.rtd_wire_type_ch3_55_active){
|
|
1719
|
+
promises.rtd_wire_type_ch3_55 = node.config_gateway.config_set_rtd_wire_type_ch3_55(mac, parseInt(config.rtd_wire_type_ch3_55));
|
|
1720
|
+
}
|
|
1721
|
+
if(config.rtd_range_ch3_55_active){
|
|
1722
|
+
promises.rtd_range_ch3_55 = node.config_gateway.config_set_rtd_range_ch3_55(mac, parseInt(config.rtd_range_ch3_55));
|
|
1723
|
+
}
|
|
1724
|
+
break;
|
|
1686
1725
|
case 56:
|
|
1687
1726
|
if(config.sensor_boot_time_420ma_active){
|
|
1688
1727
|
promises.sensor_boot_time_420ma = node.config_gateway.config_set_sensor_boot_time_420ma(mac, parseInt(config.sensor_boot_time_420ma));
|
|
@@ -2778,9 +2817,9 @@ module.exports = function(RED) {
|
|
|
2778
2817
|
}
|
|
2779
2818
|
break;
|
|
2780
2819
|
case 119:
|
|
2781
|
-
if(config.accelerometer_state_108_active){
|
|
2782
|
-
|
|
2783
|
-
}
|
|
2820
|
+
// if(config.accelerometer_state_108_active){
|
|
2821
|
+
// promises.accelerometer_state_108 = node.config_gateway.config_set_accelerometer_state_108(mac, parseInt(config.accelerometer_state_108));
|
|
2822
|
+
// }
|
|
2784
2823
|
if(config.clear_timers_119_active){
|
|
2785
2824
|
promises.clear_timers_119 = node.config_gateway.config_set_clear_timers_108(mac, parseInt(config.clear_timers_119));
|
|
2786
2825
|
}
|
|
@@ -2796,9 +2835,9 @@ module.exports = function(RED) {
|
|
|
2796
2835
|
if(config.push_notification_119_active){
|
|
2797
2836
|
promises.push_notification_119 = node.config_gateway.config_set_push_notification_108(mac, parseInt(config.push_notification_119));
|
|
2798
2837
|
}
|
|
2799
|
-
if(config.deactivate_activate_accelero_108_active){
|
|
2800
|
-
|
|
2801
|
-
}
|
|
2838
|
+
// if(config.deactivate_activate_accelero_108_active){
|
|
2839
|
+
// promises.deactivate_activate_accelero_108 = node.config_gateway.config_set_deactivate_activate_accelero_108(mac, parseInt(config.deactivate_activate_accelero_108));
|
|
2840
|
+
// }
|
|
2802
2841
|
if(config.reset_timeout_108_active){
|
|
2803
2842
|
promises.reset_timeout_108 = node.config_gateway.config_set_reset_timeout_108(mac, parseInt(config.reset_timeout_108));
|
|
2804
2843
|
}
|
|
@@ -3127,6 +3166,9 @@ module.exports = function(RED) {
|
|
|
3127
3166
|
if(config.weight_calib_217_active){
|
|
3128
3167
|
promises.weight_calib_217 = node.config_gateway.config_set_weight_calib_217(mac, parseInt(config.weight_calib_217));
|
|
3129
3168
|
}
|
|
3169
|
+
if(config.tare_value_217_active){
|
|
3170
|
+
promises.tare_value_217 = node.config_gateway.config_set_tare_value_217(mac, parseInt(config.tare_value_217));
|
|
3171
|
+
}
|
|
3130
3172
|
break;
|
|
3131
3173
|
case 270:
|
|
3132
3174
|
// if(config.do_read_rate_270_active){
|
|
@@ -3478,8 +3520,8 @@ module.exports = function(RED) {
|
|
|
3478
3520
|
if(config.enable_filtering_110_active){
|
|
3479
3521
|
promises.enable_filtering_110 = node.config_gateway.config_set_enable_filtering_110(mac, parseInt(config.enable_filtering_110));
|
|
3480
3522
|
}
|
|
3481
|
-
if(config.
|
|
3482
|
-
promises.
|
|
3523
|
+
if(config.sampling_duration_p1_543_active){
|
|
3524
|
+
promises.sampling_duration_p1_543 = node.config_gateway.config_set_sampling_duration_p1_110(mac, parseInt(config.sampling_duration_p1_543));
|
|
3483
3525
|
}
|
|
3484
3526
|
if(config.sampling_interval_110_active){
|
|
3485
3527
|
promises.sampling_interval_110 = node.config_gateway.config_set_sampling_interval_101(mac, parseInt(config.sampling_interval_110));
|