@ncd-io/node-red-enterprise-sensors 1.6.1 → 1.6.2
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 +768 -751
- package/package.json +1 -1
- package/wireless.html +138 -7
- package/wireless.js +26 -0
package/package.json
CHANGED
package/wireless.html
CHANGED
|
@@ -940,18 +940,34 @@
|
|
|
940
940
|
gas_type_545_active: {value: ""},
|
|
941
941
|
gas_type_545: {value: 1},
|
|
942
942
|
|
|
943
|
-
number_of_gas_type_545_active:{value:""},
|
|
943
|
+
number_of_gas_type_545_active: {value:""},
|
|
944
944
|
number_of_gas_type_545: {value: 2, validate: NCD_validators.number_range(2, 5)},
|
|
945
945
|
percentage_value_0_545: {value: 20, validate: NCD_validators.number_range(1, 100)},
|
|
946
946
|
percentage_value_1_545: {value: 20, validate: NCD_validators.number_range(1, 100)},
|
|
947
947
|
percentage_value_2_545: {value: 20, validate: NCD_validators.number_range(1, 100)},
|
|
948
948
|
percentage_value_3_545: {value: 20, validate: NCD_validators.number_range(1, 100)},
|
|
949
949
|
percentage_value_4_545: {value: 20, validate: NCD_validators.number_range(1, 100)},
|
|
950
|
-
gas_type_0_545:{value: 0, validate: NCD_validators.number_range(0, 11)},
|
|
951
|
-
gas_type_1_545:{value: 0, validate: NCD_validators.number_range(0, 11)},
|
|
952
|
-
gas_type_2_545:{value: 0, validate: NCD_validators.number_range(0, 11)},
|
|
953
|
-
gas_type_3_545:{value: 0, validate: NCD_validators.number_range(0, 11)},
|
|
954
|
-
gas_type_4_545:{value: 0, validate: NCD_validators.number_range(0, 11)}
|
|
950
|
+
gas_type_0_545: {value: 0, validate: NCD_validators.number_range(0, 11)},
|
|
951
|
+
gas_type_1_545: {value: 0, validate: NCD_validators.number_range(0, 11)},
|
|
952
|
+
gas_type_2_545: {value: 0, validate: NCD_validators.number_range(0, 11)},
|
|
953
|
+
gas_type_3_545: {value: 0, validate: NCD_validators.number_range(0, 11)},
|
|
954
|
+
gas_type_4_545: {value: 0, validate: NCD_validators.number_range(0, 11)},
|
|
955
|
+
|
|
956
|
+
screen_on_time_217_active: {value:""},
|
|
957
|
+
screen_on_time_217: {value: 5, validate: NCD_validators.number_range(0, 255)},
|
|
958
|
+
weight_unit_217_active: {value:""},
|
|
959
|
+
weight_unit_217: {value: 2},
|
|
960
|
+
|
|
961
|
+
clean_cycle_99_active: {value:""},
|
|
962
|
+
clean_cycle_99: {value: 0, validate: NCD_validators.number_range(0, 255)},
|
|
963
|
+
wiper_rounds_number_99_active: {value:""},
|
|
964
|
+
wiper_rounds_number_99: {value: 1, validate: NCD_validators.number_range(0, 255)},
|
|
965
|
+
distance_under_strength_threshold_99_active: {value:""},
|
|
966
|
+
distance_under_strength_99: {value: 1, validate: NCD_validators.number_range(0, 65535)},
|
|
967
|
+
threshold_under_strength_99: {value: 1, validate: NCD_validators.number_range(0, 65535)},
|
|
968
|
+
clean_sensor_99_active: {value:""},
|
|
969
|
+
reset_sensor_99_active: {value:""},
|
|
970
|
+
factory_reset_sensor_99_active: {value:""}
|
|
955
971
|
},
|
|
956
972
|
inputs: 0,
|
|
957
973
|
outputs: 1,
|
|
@@ -1047,6 +1063,7 @@
|
|
|
1047
1063
|
"96": "96 - 16-Bit 1-Channel 0-48VDC Receiver",
|
|
1048
1064
|
"97": "97 - One channel Dynamic Ultrasound vibration Sensor",
|
|
1049
1065
|
"98": "98 - Two channel Dynamic Ultrasound vibration Sensor",
|
|
1066
|
+
"99": "99 - Laser Sensor",
|
|
1050
1067
|
"101": "101 - Pro Vibration",
|
|
1051
1068
|
"102": "102 - Strain Gauge",
|
|
1052
1069
|
"103": "103 - Custom Wireless Accelerometer Sensor",
|
|
@@ -1367,6 +1384,7 @@
|
|
|
1367
1384
|
<option value="96">96 - 16-Bit 1-Channel 0-48VDC Receiver</option>
|
|
1368
1385
|
<option value="97">97 - One channel Dynamic Ultrasound vibration Sensor</option>
|
|
1369
1386
|
<option value="98">98 - Two channel Dynamic Ultrasound vibration Sensor</option>
|
|
1387
|
+
<option value="99">99 - Laser Sensor</option>
|
|
1370
1388
|
<option value="101">101 - Pro Vibration</option>
|
|
1371
1389
|
<option value="102">102 - Strain Gauge</option>
|
|
1372
1390
|
<option value="103">103 - Custom Wireless Accelerometer Sensor</option>
|
|
@@ -1431,7 +1449,7 @@
|
|
|
1431
1449
|
<label for="node-input-auto_config"><i class="icon-tag"></i> Auto Config</label>
|
|
1432
1450
|
<input class="section-control" type="checkbox" id="node-input-auto_config" value="1">
|
|
1433
1451
|
</div>
|
|
1434
|
-
<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-
|
|
1452
|
+
<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-91 data-sensor-97 data-sensor-98 data-sensor-99 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-545 data-sensor-1010 data-sensor-1011>
|
|
1435
1453
|
<hr>
|
|
1436
1454
|
<label for="node-input-on_the_fly_enable"><i class="icon-tag"></i> OTF Config*</label>
|
|
1437
1455
|
<input type="checkbox" id="node-input-on_the_fly_enable" value="1">
|
|
@@ -5470,6 +5488,44 @@
|
|
|
5470
5488
|
<input type="text" id="node-input-tare_value_217" placeholder="0" value="0">
|
|
5471
5489
|
</div>
|
|
5472
5490
|
</div>
|
|
5491
|
+
<div class="form-row ncd-active-check">
|
|
5492
|
+
<strong>Set Weight Unit</strong>
|
|
5493
|
+
<div>
|
|
5494
|
+
<label for="node-input-weight_unit_217_active">Active:</label>
|
|
5495
|
+
<input type="checkbox" id="node-input-weight_unit_217_active" class="ncd-config-toggle" data-target-id="node-input-weight_unit_217" value="1">
|
|
5496
|
+
</div>
|
|
5497
|
+
<div>
|
|
5498
|
+
<label for="node-input-weight_unit_217"><i class="icon-tag"></i>Value:</label>
|
|
5499
|
+
<select id="node-input-weight_unit_217">
|
|
5500
|
+
<option value="1" selected>Kilogram (kg)</option>
|
|
5501
|
+
<option value="2">Pound (lb)</option>
|
|
5502
|
+
</select>
|
|
5503
|
+
</div>
|
|
5504
|
+
<p class="caption">
|
|
5505
|
+
Default value: Pound (lb).
|
|
5506
|
+
</p>
|
|
5507
|
+
</div>
|
|
5508
|
+
<div class="form-row ncd-active-check">
|
|
5509
|
+
<div>
|
|
5510
|
+
<strong>Set Screen On Time</strong>
|
|
5511
|
+
<p>
|
|
5512
|
+
Sets the amount of time (in seconds) the screen remains powered on. The screen displays the current weight or a confirmation message once the tare process is successful.<br><br>
|
|
5513
|
+
Value 0: Disables the screen (Always Off).<br>
|
|
5514
|
+
Value 255: Keeps the screen enabled (Always On).
|
|
5515
|
+
</p>
|
|
5516
|
+
</div>
|
|
5517
|
+
<div>
|
|
5518
|
+
<label for="node-input-screen_on_time_217_active"><i class="icon-tag"></i>Active:</label>
|
|
5519
|
+
<input type="checkbox" id="node-input-screen_on_time_217_active" class="ncd-config-toggle" data-target-id="node-input-screen_on_time_217" value="1">
|
|
5520
|
+
</div>
|
|
5521
|
+
<div>
|
|
5522
|
+
<label for="node-input-screen_on_time_217"><i class="icon-tag"></i> Value</label>
|
|
5523
|
+
<input type="text" id="node-input-screen_on_time_217" placeholder="255" value="255">
|
|
5524
|
+
</div>
|
|
5525
|
+
<p class="caption">
|
|
5526
|
+
Default value: 5 seconds.
|
|
5527
|
+
</p>
|
|
5528
|
+
</div>
|
|
5473
5529
|
</div>
|
|
5474
5530
|
<div class="ncd-dependent" data-sensor-26>
|
|
5475
5531
|
<div class="form-row ncd-active-check">
|
|
@@ -6750,6 +6806,81 @@
|
|
|
6750
6806
|
</div>
|
|
6751
6807
|
</div>
|
|
6752
6808
|
</div>
|
|
6809
|
+
<div class="ncd-dependent" data-sensor-99>
|
|
6810
|
+
<div class="form-row ncd-active-check">
|
|
6811
|
+
<strong>Set Clean Cycles</strong>
|
|
6812
|
+
<p>Set the number of cleaning cycles</p>
|
|
6813
|
+
<div>
|
|
6814
|
+
<label for="node-input-clean_cycle_99_active">Active:</label>
|
|
6815
|
+
<input type="checkbox" id="node-input-clean_cycle_99_active" class="ncd-config-toggle" data-target-id="node-input-clean_cycle_99" value="1">
|
|
6816
|
+
</div>
|
|
6817
|
+
<div>
|
|
6818
|
+
<label for="node-input-clean_cycle_99"><i class="icon-tag"></i>Value:</label>
|
|
6819
|
+
<input type="text" id="node-input-clean_cycle_99">
|
|
6820
|
+
</div>
|
|
6821
|
+
<p class="caption">
|
|
6822
|
+
Default value: 1 cycle.
|
|
6823
|
+
</p>
|
|
6824
|
+
</div>
|
|
6825
|
+
<div class="form-row ncd-active-check">
|
|
6826
|
+
<strong>Set Wiper Rounds Number</strong>
|
|
6827
|
+
<p>Set the number of round trips of the wiper during a dust removal cycle.<br>
|
|
6828
|
+
Note: No more than 10 round trips per cycle</p>
|
|
6829
|
+
<div>
|
|
6830
|
+
<label for="node-input-wiper_rounds_number_99_active">Active:</label>
|
|
6831
|
+
<input type="checkbox" id="node-input-wiper_rounds_number_99_active" class="ncd-config-toggle" data-target-id="node-input-wiper_rounds_number_99" value="1">
|
|
6832
|
+
</div>
|
|
6833
|
+
<div>
|
|
6834
|
+
<label for="node-input-wiper_rounds_number_99"><i class="icon-tag"></i>Value:</label>
|
|
6835
|
+
<input type="text" id="node-input-wiper_rounds_number_99">
|
|
6836
|
+
</div>
|
|
6837
|
+
<p class="caption">
|
|
6838
|
+
Default value: 1.
|
|
6839
|
+
</p>
|
|
6840
|
+
</div>
|
|
6841
|
+
<div class="form-row ncd-active-check">
|
|
6842
|
+
<strong>Set Distance Under Strength Threshold</strong>
|
|
6843
|
+
<p>Set the minimum signal strength required for a valid reading.<br>
|
|
6844
|
+
E.g.<br>
|
|
6845
|
+
Strength Threshold = 60, Distance under threshold = 4500.<br>
|
|
6846
|
+
If the strength drops below 60, the sensor will automatically report a default distance of 4500cm</p>
|
|
6847
|
+
<div>
|
|
6848
|
+
<label for="node-input-distance_under_strength_threshold_99_active">Active:</label>
|
|
6849
|
+
<input type="checkbox" id="node-input-distance_under_strength_threshold_99_active" class="ncd-config-toggle" data-target-class="distance_under_strength_threshold_99" value="1">
|
|
6850
|
+
</div>
|
|
6851
|
+
<div class="form-row">
|
|
6852
|
+
<label for="node-input-distance_under_strength_99"><i class="icon-tag"></i>Distance (0-65535)</label>
|
|
6853
|
+
<input type="text" id="node-input-distance_under_strength_99" class="distance_under_strength_threshold_99">
|
|
6854
|
+
</div>
|
|
6855
|
+
<div class="form-row">
|
|
6856
|
+
<label for="node-input-threshold_under_strength_99"><i class="icon-tag"></i>Threshold (0-65535)</label>
|
|
6857
|
+
<input type="text" id="node-input-threshold_under_strength_99" class="distance_under_strength_threshold_99">
|
|
6858
|
+
</div>
|
|
6859
|
+
</div>
|
|
6860
|
+
<div class="form-row ncd-active-check">
|
|
6861
|
+
<strong>Set Clean Sensor</strong>
|
|
6862
|
+
<p>When enabled, this setting initiates an immediate dust removal cycle.</p>
|
|
6863
|
+
<div>
|
|
6864
|
+
<label for="node-input-clean_sensor_99_active"><i class="icon-tag"></i>Active:</label>
|
|
6865
|
+
<input type="checkbox" id="node-input-clean_sensor_99_active" value="1">
|
|
6866
|
+
</div>
|
|
6867
|
+
</div>
|
|
6868
|
+
<div class="form-row ncd-active-check">
|
|
6869
|
+
<strong>Reset Sensor</strong>
|
|
6870
|
+
<div>
|
|
6871
|
+
<label for="node-input-reset_sensor_99_active"><i class="icon-tag"></i>Active:</label>
|
|
6872
|
+
<input type="checkbox" id="node-input-reset_sensor_99_active" value="1">
|
|
6873
|
+
</div>
|
|
6874
|
+
</div>
|
|
6875
|
+
<div class="form-row ncd-active-check">
|
|
6876
|
+
<strong>Factory Reset Sensor</strong>
|
|
6877
|
+
<p>Restore to factory settings<p>
|
|
6878
|
+
<div>
|
|
6879
|
+
<label for="node-input-factory_reset_sensor_99_active"><i class="icon-tag"></i>Active:</label>
|
|
6880
|
+
<input type="checkbox" id="node-input-factory_reset_sensor_99_active" value="1">
|
|
6881
|
+
</div>
|
|
6882
|
+
</div>
|
|
6883
|
+
</div>
|
|
6753
6884
|
</div>
|
|
6754
6885
|
</div>
|
|
6755
6886
|
</script>
|
package/wireless.js
CHANGED
|
@@ -2555,6 +2555,26 @@ module.exports = function(RED) {
|
|
|
2555
2555
|
// promises.auto_check_threshold_88 = node.config_gateway.config_set_auto_check_threshold_88(mac, parseInt(config.auto_check_threshold_88));
|
|
2556
2556
|
// }
|
|
2557
2557
|
break;
|
|
2558
|
+
case 99:
|
|
2559
|
+
if(config.clean_cycle_99_active){
|
|
2560
|
+
promises.clean_cycle_99 = node.config_gateway.config_set_clean_cycle_99(mac, parseInt(config.clean_cycle_99));
|
|
2561
|
+
}
|
|
2562
|
+
if(config.wiper_rounds_number_99_active){
|
|
2563
|
+
promises.wiper_rounds_number_99 = node.config_gateway.config_set_wiper_rounds_number_99(mac, parseInt(config.wiper_rounds_number_99));
|
|
2564
|
+
}
|
|
2565
|
+
if(config.distance_under_strength_threshold_99_active){
|
|
2566
|
+
promises.distance_under_strength_threshold_99 = node.config_gateway.config_set_distance_under_strength_threshold_99(mac, parseInt(config.distance_under_strength_99), parseInt(config.threshold_under_strength_99));
|
|
2567
|
+
}
|
|
2568
|
+
if(config.clean_sensor_99_active){
|
|
2569
|
+
promises.clean_sensor_99 = node.config_gateway.config_set_clean_sensor_99(mac);
|
|
2570
|
+
}
|
|
2571
|
+
if(config.reset_sensor_99_active){
|
|
2572
|
+
promises.reset_sensor_99 = node.config_gateway.config_set_reset_sensor_99(mac);
|
|
2573
|
+
}
|
|
2574
|
+
if(config.factory_reset_sensor_99_active){
|
|
2575
|
+
promises.factory_reset_sensor_99 = node.config_gateway.config_set_factory_reset_sensor_99(mac);
|
|
2576
|
+
}
|
|
2577
|
+
break;
|
|
2558
2578
|
case 101:
|
|
2559
2579
|
if(config.output_data_rate_101_m2_active){
|
|
2560
2580
|
promises.output_data_rate_101_m2 = node.config_gateway.config_set_output_data_rate_101(mac, parseInt(config.output_data_rate_101_m2));
|
|
@@ -3497,6 +3517,12 @@ module.exports = function(RED) {
|
|
|
3497
3517
|
if(config.tare_value_217_active){
|
|
3498
3518
|
promises.tare_value_217 = node.config_gateway.config_set_tare_value_217(mac, parseInt(config.tare_value_217));
|
|
3499
3519
|
}
|
|
3520
|
+
if(config.screen_on_time_217_active){
|
|
3521
|
+
promises.screen_on_time_217 = node.config_gateway.config_set_screen_on_time_217(mac, parseInt(config.screen_on_time_217));
|
|
3522
|
+
}
|
|
3523
|
+
if(config.weight_unit_217_active){
|
|
3524
|
+
promises.weight_unit_217 = node.config_gateway.config_set_weight_unit_217(mac, parseInt(config.weight_unit_217));
|
|
3525
|
+
}
|
|
3500
3526
|
break;
|
|
3501
3527
|
case 270:
|
|
3502
3528
|
// if(config.do_read_rate_270_active){
|