@ncd-io/node-red-enterprise-sensors 1.0.10 → 1.0.11
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 +8 -0
- package/package.json +1 -1
- package/wireless.html +20 -0
- package/wireless.js +6 -0
package/lib/WirelessGateway.js
CHANGED
|
@@ -1406,6 +1406,14 @@ module.exports = class WirelessSensor{
|
|
|
1406
1406
|
console.log(packet);
|
|
1407
1407
|
return this.config_send(sensor_mac, packet);
|
|
1408
1408
|
}
|
|
1409
|
+
config_set_auto_check_interval_check_88(sensor_mac, value){
|
|
1410
|
+
console.log('config_set_disable_auto_check_88');
|
|
1411
|
+
let packet = [244, 70, 0, 0, 88];
|
|
1412
|
+
let interval = int2Bytes((value), 2);
|
|
1413
|
+
packet.push(...interval);
|
|
1414
|
+
console.log(packet);
|
|
1415
|
+
return this.config_send(sensor_mac, packet);
|
|
1416
|
+
}
|
|
1409
1417
|
config_set_stay_on_mode_539(sensor_mac, value){
|
|
1410
1418
|
console.log('config_set_stay_on_mode_539');
|
|
1411
1419
|
var packet = [247, 50, 0, 0, 0, value];
|
package/package.json
CHANGED
package/wireless.html
CHANGED
|
@@ -297,6 +297,9 @@
|
|
|
297
297
|
deadband_80_active: {value: ""},
|
|
298
298
|
deadband_80: {value: 0, validate: NCD_validators.number_range(0, 255)},
|
|
299
299
|
|
|
300
|
+
auto_check_interval_88_active: {value: ""},
|
|
301
|
+
auto_check_interval_88: {value: 60, validate: NCD_validators.number_range(0, 65535)},
|
|
302
|
+
|
|
300
303
|
filter_80_active: {value: ""},
|
|
301
304
|
filter_80: {value: 0},
|
|
302
305
|
|
|
@@ -2132,6 +2135,23 @@
|
|
|
2132
2135
|
</div>
|
|
2133
2136
|
</div>
|
|
2134
2137
|
|
|
2138
|
+
<div class="ncd-dependent" data-sensor-88 data-sensor-89>
|
|
2139
|
+
<div class="form-row ncd-active-check">
|
|
2140
|
+
<strong>Auto Check Interval</strong>
|
|
2141
|
+
<p class="caption">
|
|
2142
|
+
<b>* To disable the auto check interval feature make this setting active and use a value of 0.</b>
|
|
2143
|
+
</p>
|
|
2144
|
+
<div>
|
|
2145
|
+
<label for="node-input-auto_check_interval_88_active">Active:</label>
|
|
2146
|
+
<input type="checkbox" id="node-input-auto_check_interval_88_active" class="ncd-config-toggle" data-target-id="node-input-auto_check_interval_88" value="1">
|
|
2147
|
+
</div>
|
|
2148
|
+
<div>
|
|
2149
|
+
<label for="node-input-auto_check_interval_88"><i class="icon-tag"></i>Value:</label>
|
|
2150
|
+
<input type="text" id="node-input-auto_check_interval_88" placeholder="60" value="60">
|
|
2151
|
+
</div>
|
|
2152
|
+
</div>
|
|
2153
|
+
</div>
|
|
2154
|
+
|
|
2135
2155
|
<div class="ncd-dependent" data-sensor-78 data-sensor-79 data-sensor-91>
|
|
2136
2156
|
<div class="form-row ncd-active-check">
|
|
2137
2157
|
<strong>Sensor Boot Time</strong>
|
package/wireless.js
CHANGED
|
@@ -1421,6 +1421,9 @@ module.exports = function(RED) {
|
|
|
1421
1421
|
if(config.high_calibration_420ma_active){
|
|
1422
1422
|
promises.high_calibration_420ma = node.config_gateway.config_set_high_calibration_420ma(mac, parseInt(config.high_calibration_420ma));
|
|
1423
1423
|
}
|
|
1424
|
+
if(config.auto_check_interval_88_active){
|
|
1425
|
+
promises.auto_check_interval_88 = node.config_gateway.config_set_auto_check_interval_check_88(mac, parseInt(config.auto_check_interval_88));
|
|
1426
|
+
}
|
|
1424
1427
|
break;
|
|
1425
1428
|
case 89:
|
|
1426
1429
|
if(config.sensor_boot_time_420ma_active){
|
|
@@ -1435,6 +1438,9 @@ module.exports = function(RED) {
|
|
|
1435
1438
|
if(config.high_calibration_420ma_active){
|
|
1436
1439
|
promises.high_calibration_420ma = node.config_gateway.config_set_high_calibration_420ma(mac, parseInt(config.high_calibration_420ma));
|
|
1437
1440
|
}
|
|
1441
|
+
if(config.auto_check_interval_88_active){
|
|
1442
|
+
promises.auto_check_interval_88 = node.config_gateway.config_set_auto_check_interval_check_88(mac, parseInt(config.auto_check_interval_88));
|
|
1443
|
+
}
|
|
1438
1444
|
break;
|
|
1439
1445
|
case 91:
|
|
1440
1446
|
if(config.sensor_boot_time_78_active){
|