@ncd-io/node-red-enterprise-sensors 1.0.9 → 1.0.10
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 +74 -6
- package/package.json +1 -1
- package/wireless.html +206 -55
- package/wireless.js +57 -0
package/lib/WirelessGateway.js
CHANGED
|
@@ -1294,6 +1294,30 @@ module.exports = class WirelessSensor{
|
|
|
1294
1294
|
console.log(packet);
|
|
1295
1295
|
return this.config_send(sensor_mac, packet);
|
|
1296
1296
|
}
|
|
1297
|
+
config_set_shift_one_108(sensor_mac, hours, minutes){
|
|
1298
|
+
console.log('config_set_shift_one_108');
|
|
1299
|
+
var packet = [244, 47, 0, 0, 0, 0, hours, minutes]
|
|
1300
|
+
console.log(packet);
|
|
1301
|
+
return this.config_send(sensor_mac, packet);
|
|
1302
|
+
}
|
|
1303
|
+
config_set_shift_two_108(sensor_mac, hours, minutes){
|
|
1304
|
+
console.log('config_set_shift_two_108');
|
|
1305
|
+
var packet = [244, 47, 0, 0, 0, 1, hours, minutes]
|
|
1306
|
+
console.log(packet);
|
|
1307
|
+
return this.config_send(sensor_mac, packet);
|
|
1308
|
+
}
|
|
1309
|
+
config_set_shift_three_108(sensor_mac, hours, minutes){
|
|
1310
|
+
console.log('config_set_shift_three_108');
|
|
1311
|
+
var packet = [244, 47, 0, 0, 0, 2, hours, minutes]
|
|
1312
|
+
console.log(packet);
|
|
1313
|
+
return this.config_send(sensor_mac, packet);
|
|
1314
|
+
}
|
|
1315
|
+
config_set_shift_four_108(sensor_mac, hours, minutes){
|
|
1316
|
+
console.log('config_set_shift_four_108');
|
|
1317
|
+
var packet = [244, 47, 0, 0, 0, 3, hours, minutes]
|
|
1318
|
+
console.log(packet);
|
|
1319
|
+
return this.config_send(sensor_mac, packet);
|
|
1320
|
+
}
|
|
1297
1321
|
config_set_sensor_boot_time_420ma(sensor_mac, value){
|
|
1298
1322
|
console.log('sensor_boot_time_420ma');
|
|
1299
1323
|
var packet = [244, 68, 0, 0, 45, value];
|
|
@@ -1617,6 +1641,38 @@ module.exports = class WirelessSensor{
|
|
|
1617
1641
|
console.log(packet);
|
|
1618
1642
|
return this.config_send(sensor_mac, packet);
|
|
1619
1643
|
}
|
|
1644
|
+
config_set_stop_sampling(sensor_mac){
|
|
1645
|
+
console.log('config_set_stop_sampling');
|
|
1646
|
+
var packet = [244, 37, 0, 2, 5];
|
|
1647
|
+
console.log(packet);
|
|
1648
|
+
return this.config_send(sensor_mac, packet);
|
|
1649
|
+
}
|
|
1650
|
+
config_set_extend_otf_timeout(sensor_mac){
|
|
1651
|
+
console.log('config_set_extend_otf_timeout');
|
|
1652
|
+
var packet = [244, 38, 0, 2, 5];
|
|
1653
|
+
console.log(packet);
|
|
1654
|
+
return this.config_send(sensor_mac, packet);
|
|
1655
|
+
}
|
|
1656
|
+
config_set_end_cfg(sensor_mac){
|
|
1657
|
+
console.log('config_set_end_cfg');
|
|
1658
|
+
var packet = [244, 39, 0, 2, 5];
|
|
1659
|
+
console.log(packet);
|
|
1660
|
+
return this.config_send(sensor_mac, packet);
|
|
1661
|
+
}
|
|
1662
|
+
config_set_change_otf_interval(sensor_mac, value){
|
|
1663
|
+
console.log('config_set_change_otf_interval');
|
|
1664
|
+
var packet = [244, 40, 0, 2, 5];
|
|
1665
|
+
var max = int2Bytes(value, 2);
|
|
1666
|
+
packet.push(...max);
|
|
1667
|
+
console.log(packet);
|
|
1668
|
+
return this.config_send(sensor_mac, packet);
|
|
1669
|
+
}
|
|
1670
|
+
config_set_sampling_rate_duration(sensor_mac, value){
|
|
1671
|
+
console.log('config_set_sampling_rate_duration');
|
|
1672
|
+
var packet = [244, 36, 0, 2, 5, 0, value, 255, 255];
|
|
1673
|
+
console.log(packet);
|
|
1674
|
+
return this.config_send(sensor_mac, packet);
|
|
1675
|
+
}
|
|
1620
1676
|
config_set_fly_interval_110(sensor_mac, value){
|
|
1621
1677
|
console.log('config_set_fly_interval');
|
|
1622
1678
|
var packet = [244, 79, 0, 0, 101, 81];
|
|
@@ -5751,6 +5807,17 @@ function sensor_types(parent){
|
|
|
5751
5807
|
return response;
|
|
5752
5808
|
}
|
|
5753
5809
|
},
|
|
5810
|
+
'87': {
|
|
5811
|
+
'name': '24-Bit 1-Channel Current Monitor',
|
|
5812
|
+
parse: (d) => {
|
|
5813
|
+
return {
|
|
5814
|
+
ct1_rms: d.slice(0, 4).reduce(msbLsb),
|
|
5815
|
+
ct1_peak_1_freq: d.slice(4, 6).reduce(msbLsb),
|
|
5816
|
+
ct1_peak_2_freq: d.slice(6, 8).reduce(msbLsb),
|
|
5817
|
+
ct1_peak_3_freq: d.slice(8, 10).reduce(msbLsb),
|
|
5818
|
+
}
|
|
5819
|
+
}
|
|
5820
|
+
},
|
|
5754
5821
|
'88': {
|
|
5755
5822
|
name: '1 Channel Ultrasound Vibration Sensor',
|
|
5756
5823
|
parse: (d) => {
|
|
@@ -5787,13 +5854,13 @@ function sensor_types(parent){
|
|
|
5787
5854
|
'report_rate': frame.slice(12, 16).reduce(msbLsb),
|
|
5788
5855
|
'fsr':frame_data.fsr,
|
|
5789
5856
|
'boot_up_time': frame[17],
|
|
5790
|
-
'adc_pin_reading': frame.slice(18, 20).reduce(msbLsb),
|
|
5857
|
+
// 'adc_pin_reading': frame.slice(18, 20).reduce(msbLsb),
|
|
5791
5858
|
'machine_values': {
|
|
5792
5859
|
'firmware': frame[2],
|
|
5793
5860
|
'report_rate': frame.slice(12, 16),
|
|
5794
5861
|
'fsr':frame[16],
|
|
5795
5862
|
'boot_up_time': frame[17],
|
|
5796
|
-
'adc_pin_reading': frame.slice(18, 20),
|
|
5863
|
+
// 'adc_pin_reading': frame.slice(18, 20),
|
|
5797
5864
|
'frame': frame
|
|
5798
5865
|
}
|
|
5799
5866
|
}
|
|
@@ -5838,13 +5905,13 @@ function sensor_types(parent){
|
|
|
5838
5905
|
'report_rate': frame.slice(12, 16).reduce(msbLsb),
|
|
5839
5906
|
'fsr':frame_data.fsr,
|
|
5840
5907
|
'boot_up_time': frame[17],
|
|
5841
|
-
'adc_pin_reading': frame.slice(18, 20).reduce(msbLsb),
|
|
5908
|
+
// 'adc_pin_reading': frame.slice(18, 20).reduce(msbLsb),
|
|
5842
5909
|
'machine_values': {
|
|
5843
5910
|
'firmware': frame[2],
|
|
5844
5911
|
'report_rate': frame.slice(12, 16),
|
|
5845
5912
|
'fsr':frame[16],
|
|
5846
5913
|
'boot_up_time': frame[17],
|
|
5847
|
-
'adc_pin_reading': frame.slice(18, 20),
|
|
5914
|
+
// 'adc_pin_reading': frame.slice(18, 20),
|
|
5848
5915
|
'frame': frame
|
|
5849
5916
|
}
|
|
5850
5917
|
}
|
|
@@ -5957,7 +6024,8 @@ function sensor_types(parent){
|
|
|
5957
6024
|
let error = {error: 'Error found, Acclerometer Probe may be unattached'};
|
|
5958
6025
|
return error;
|
|
5959
6026
|
}
|
|
5960
|
-
if(firmware >
|
|
6027
|
+
if(firmware > 4){
|
|
6028
|
+
let report_type = d[41]? "Shift": "Regular";
|
|
5961
6029
|
return {
|
|
5962
6030
|
digital_input_counter: d.slice(0, 4).reduce(msbLsb),
|
|
5963
6031
|
digital_input_uptime: d.slice(4, 8).reduce(msbLsb),
|
|
@@ -5974,7 +6042,7 @@ function sensor_types(parent){
|
|
|
5974
6042
|
input_opto: d[40] & 4 ? 1 : 0,
|
|
5975
6043
|
input_acc: d[40] & 8 ? 1 : 0,
|
|
5976
6044
|
input_mag: d[40] & 16 ? 1 : 0,
|
|
5977
|
-
report_type:
|
|
6045
|
+
report_type: report_type,
|
|
5978
6046
|
rtc: [
|
|
5979
6047
|
String(d[42]).padStart(2, '0'),
|
|
5980
6048
|
String(d[43]).padStart(2, '0'),
|
package/package.json
CHANGED
package/wireless.html
CHANGED
|
@@ -392,6 +392,18 @@
|
|
|
392
392
|
input_three_108_active:{value:""},
|
|
393
393
|
counter_threshold_108:{value:1000, validate: NCD_validators.number_range(0, 65534)},
|
|
394
394
|
counter_threshold_108_active:{value:""},
|
|
395
|
+
shift_one_108_active:{value:""},
|
|
396
|
+
shift_one_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
|
|
397
|
+
shift_one_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
|
|
398
|
+
shift_two_108_active:{value:""},
|
|
399
|
+
shift_two_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
|
|
400
|
+
shift_two_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
|
|
401
|
+
shift_three_108_active:{value:""},
|
|
402
|
+
shift_three_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
|
|
403
|
+
shift_three_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
|
|
404
|
+
shift_four_108_active:{value:""},
|
|
405
|
+
shift_four_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
|
|
406
|
+
shift_four_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
|
|
395
407
|
|
|
396
408
|
counter_threshold_35:{value:50, validate: NCD_validators.number_range(0, 65534)},
|
|
397
409
|
counter_threshold_35_active:{value:""},
|
|
@@ -551,7 +563,17 @@
|
|
|
551
563
|
reset_mode_to_disabled_108: {value: 0},
|
|
552
564
|
rtc_interval_108_active: {value: ""},
|
|
553
565
|
rtc_interval_108: {value: 0},
|
|
554
|
-
rtc_108:{value:0}
|
|
566
|
+
rtc_108:{value:0},
|
|
567
|
+
|
|
568
|
+
change_otf_interval_active:{value: ""},
|
|
569
|
+
change_otf_interval:{value: 60},
|
|
570
|
+
|
|
571
|
+
sampling_rate_duration_active:{value: ""},
|
|
572
|
+
sampling_rate_duration:{value: 30, validate: NCD_validators.number_range(30, 20000)},
|
|
573
|
+
|
|
574
|
+
stop_sampling:{value:0},
|
|
575
|
+
extend_otf_timeout:{value:0},
|
|
576
|
+
end_cfg:{value:0}
|
|
555
577
|
},
|
|
556
578
|
inputs: 0,
|
|
557
579
|
outputs: 1,
|
|
@@ -636,6 +658,7 @@
|
|
|
636
658
|
"81": "81 - Two Channel Vibration Plus",
|
|
637
659
|
"82": "82 - Condition Based/Predictive Maintenance Sensor",
|
|
638
660
|
"84": "84 - Standalone Smart Vibration Sensor",
|
|
661
|
+
"87": "87 - One Channel Current v4",
|
|
639
662
|
"88": "88 - 1 Channel Ultrasound Vibration Sensor",
|
|
640
663
|
"89": "89 - 2 Channel Ultrasound Vibration Sensor",
|
|
641
664
|
"90": "90 - DC Current Sensor",
|
|
@@ -929,6 +952,7 @@
|
|
|
929
952
|
<option value="81">81 - Two Channel Vibration Plus</option>
|
|
930
953
|
<option value="82">82 - Condition Based/Predictive Maintenance Sensor</option>
|
|
931
954
|
<option value="84">84 - Standalone Smart Vibration Sensor</option>
|
|
955
|
+
<option value="87">87 - One Channel Current v4</option>
|
|
932
956
|
<option value="88">88 - 1 Channel Ultrasound Vibration Sensor</option>
|
|
933
957
|
<option value="89">89 - 2 Channel Ultrasound Vibration Sensor</option>
|
|
934
958
|
<option value="90">90 - DC Current Sensor</option>
|
|
@@ -982,7 +1006,7 @@
|
|
|
982
1006
|
<label for="node-input-auto_config"><i class="icon-tag"></i> Auto Config</label>
|
|
983
1007
|
<input class="section-control" type="checkbox" id="node-input-auto_config" value="1">
|
|
984
1008
|
</div>
|
|
985
|
-
<div class="form-row ncd-dependent" 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-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-88 data-sensor-89 data-sensor-90 data-sensor-91 data-sensor-101 data-sensor-102 data-sensor-105 data-sensor-106 data-sensor-107 data-sensor-108 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-202 data-sensor-519 data-sensor-520 data-sensor-521 data-sensor-531 data-sensor-535 data-sensor-537 data-sensor-538 data-sensor-539 data-sensor-540 data-sensor-1010 data-sensor-1011>
|
|
1009
|
+
<div class="form-row ncd-dependent" 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-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-101 data-sensor-102 data-sensor-105 data-sensor-106 data-sensor-107 data-sensor-108 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-202 data-sensor-519 data-sensor-520 data-sensor-521 data-sensor-531 data-sensor-535 data-sensor-537 data-sensor-538 data-sensor-539 data-sensor-540 data-sensor-1010 data-sensor-1011>
|
|
986
1010
|
<hr>
|
|
987
1011
|
<label for="node-input-on_the_fly_enable"><i class="icon-tag"></i> OTF Config*</label>
|
|
988
1012
|
<input type="checkbox" id="node-input-on_the_fly_enable" value="1">
|
|
@@ -2429,34 +2453,34 @@
|
|
|
2429
2453
|
<option value="31">Enable All</option>
|
|
2430
2454
|
<option value="1">Enable on IO 1</option>
|
|
2431
2455
|
<option value="2">Enable on IO 2</option>
|
|
2432
|
-
<option value="3">Enable on IO 2 and 1</option>
|
|
2433
2456
|
<option value="4">Enable on IO 3</option>
|
|
2434
|
-
<option value="5">Enable on IO 3 and 1</option>
|
|
2435
|
-
<option value="6">Enable on IO 3 and 2</option>
|
|
2436
|
-
<option value="7">Enable on IO 3 to 1</option>
|
|
2437
2457
|
<option value="8">Enable on IO 4</option>
|
|
2438
|
-
<option value="9">Enable on IO 4 and 1</option>
|
|
2439
|
-
<option value="10">Enable on IO 4 and 2</option>
|
|
2440
|
-
<option value="11">Enable on IO 4, 1 and 2</option>
|
|
2441
|
-
<option value="12">Enable on IO 4 and 3</option>
|
|
2442
|
-
<option value="13">Enable on IO 4, 1 and 3</option>
|
|
2443
|
-
<option value="14">Enable on IO 4, 2 and 3</option>
|
|
2444
|
-
<option value="15">Enable on IO 4 to 1</option>
|
|
2445
2458
|
<option value="16">Enable on IO 5</option>
|
|
2446
|
-
<option value="
|
|
2447
|
-
<option value="
|
|
2448
|
-
<option value="
|
|
2449
|
-
<option value="
|
|
2450
|
-
<option value="
|
|
2451
|
-
<option value="
|
|
2452
|
-
<option value="
|
|
2453
|
-
<option value="
|
|
2454
|
-
<option value="
|
|
2455
|
-
<option value="
|
|
2456
|
-
<option value="
|
|
2457
|
-
<option value="
|
|
2458
|
-
<option value="
|
|
2459
|
-
<option value="
|
|
2459
|
+
<option value="3">Enable on IO 1 and 2</option>
|
|
2460
|
+
<option value="5">Enable on IO 1 and 3</option>
|
|
2461
|
+
<option value="9">Enable on IO 1 and 4</option>
|
|
2462
|
+
<option value="17">Enable on IO 1 and 5</option>
|
|
2463
|
+
<option value="7">Enable on IO 1, 2 and 3</option>
|
|
2464
|
+
<option value="11">Enable on IO 1, 2 and 4</option>
|
|
2465
|
+
<option value="19">Enable on IO 1, 2 and 5</option>
|
|
2466
|
+
<option value="15">Enable on IO 1, 2, 3 and 4</option>
|
|
2467
|
+
<option value="27">Enable on IO 1, 2, 4 and 5</option>
|
|
2468
|
+
<option value="23">Enable on IO 1, 2, 3 and 5</option>
|
|
2469
|
+
<option value="13">Enable on IO 1, 3 and 4</option>
|
|
2470
|
+
<option value="29">Enable on IO 1, 3, 4 and 5</option>
|
|
2471
|
+
<option value="21">Enable on IO 1, 3 and 5</option>
|
|
2472
|
+
<option value="25">Enable on IO 1, 4 and 5</option>
|
|
2473
|
+
<option value="6">Enable on IO 2 and 3</option>
|
|
2474
|
+
<option value="10">Enable on IO 2 and 4</option>
|
|
2475
|
+
<option value="18">Enable on IO 2 and 5</option>
|
|
2476
|
+
<option value="14">Enable on IO 2, 3 and 4</option>
|
|
2477
|
+
<option value="22">Enable on IO 2, 3 and 5</option>
|
|
2478
|
+
<option value="26">Enable on IO 2, 4 and 5</option>
|
|
2479
|
+
<option value="30">Enable on IO 2, 3, 4, and 5</option>
|
|
2480
|
+
<option value="12">Enable on IO 3 and 4</option>
|
|
2481
|
+
<option value="20">Enable on IO 3 and 5</option>
|
|
2482
|
+
<option value="28">Enable on IO 3, 4 and 5</option>
|
|
2483
|
+
<option value="24">Enable on IO 4 and 5</option>
|
|
2460
2484
|
</select>
|
|
2461
2485
|
</div>
|
|
2462
2486
|
</div>
|
|
@@ -2488,9 +2512,35 @@
|
|
|
2488
2512
|
</select>
|
|
2489
2513
|
</div>
|
|
2490
2514
|
</div>
|
|
2515
|
+
<div class="form-row ncd-active-check">
|
|
2516
|
+
<strong> Sample Data Interval Rate </strong>
|
|
2517
|
+
<div>
|
|
2518
|
+
<label for="node-input-rtc_interval_108_active">Active:</label>
|
|
2519
|
+
<input type="checkbox" id="node-input-rtc_interval_108_active" class="ncd-config-toggle" data-target-id="node-input-rtc_interval_108" value="1">
|
|
2520
|
+
</div>
|
|
2521
|
+
<div>
|
|
2522
|
+
<label for="node-input-rtc_interval_108"><i class="icon-tag"></i>Value:</label>
|
|
2523
|
+
<select id="node-input-rtc_interval_108">
|
|
2524
|
+
<option value="0" selected>1 minute</option>
|
|
2525
|
+
<option value="1">5 minutes</option>
|
|
2526
|
+
<option value="2">10 minutes</option>
|
|
2527
|
+
<option value="3">15 minutes</option>
|
|
2528
|
+
<option value="4">30 minutes</option>
|
|
2529
|
+
<option value="5">45 minutes</option>
|
|
2530
|
+
<option value="6">1 hour</option>
|
|
2531
|
+
<option value="7">2 hours</option>
|
|
2532
|
+
<option value="8">3 hours</option>
|
|
2533
|
+
<option value="9">4 hours</option>
|
|
2534
|
+
<option value="10">6 hours</option>
|
|
2535
|
+
<option value="11">8 hours</option>
|
|
2536
|
+
<option value="12">12 hours</option>
|
|
2537
|
+
</select>
|
|
2538
|
+
</div>
|
|
2539
|
+
</div>
|
|
2491
2540
|
<div class="form-row ncd-active-check">
|
|
2492
2541
|
<strong>Reset Timeout</strong>
|
|
2493
2542
|
<p class="caption">
|
|
2543
|
+
Sensor will reset after this time and before reset it will set it data value.<br>
|
|
2494
2544
|
Valid range: 60 - 65535
|
|
2495
2545
|
</p>
|
|
2496
2546
|
<div>
|
|
@@ -2503,7 +2553,79 @@
|
|
|
2503
2553
|
</div>
|
|
2504
2554
|
</div>
|
|
2505
2555
|
<div class="form-row ncd-active-check">
|
|
2506
|
-
<strong>
|
|
2556
|
+
<strong>Set Shift Time 1</strong>
|
|
2557
|
+
<p class="caption">
|
|
2558
|
+
24-hour time format
|
|
2559
|
+
</p>
|
|
2560
|
+
<div>
|
|
2561
|
+
<label for="node-input-shift_one_108_active">Active:</label>
|
|
2562
|
+
<input type="checkbox" id="node-input-shift_one_108_active" class="ncd-config-toggle" data-target-class="shift_one_108" value="1">
|
|
2563
|
+
</div>
|
|
2564
|
+
<div>
|
|
2565
|
+
<label for="node-input-shift_one_hours_108"><i class="icon-tag"></i>Hours:</label>
|
|
2566
|
+
<input type="text" id="node-input-shift_one_hours_108" class="shift_one_108" placeholder="0" value="00">
|
|
2567
|
+
</div>
|
|
2568
|
+
<div>
|
|
2569
|
+
<label for="node-input-shift_one_minutes_108"><i class="icon-tag"></i>Minutes:</label>
|
|
2570
|
+
<input type="text" id="node-input-shift_one_minutes_108" class="shift_one_108" placeholder="0" value="00">
|
|
2571
|
+
</div>
|
|
2572
|
+
</div>
|
|
2573
|
+
<div class="form-row ncd-active-check">
|
|
2574
|
+
<strong>Set Shift Time 2</strong>
|
|
2575
|
+
<p class="caption">
|
|
2576
|
+
24-hour time format
|
|
2577
|
+
</p>
|
|
2578
|
+
<div>
|
|
2579
|
+
<label for="node-input-shift_two_108_active">Active:</label>
|
|
2580
|
+
<input type="checkbox" id="node-input-shift_two_108_active" class="ncd-config-toggle" data-target-class="shift_two_108" value="1">
|
|
2581
|
+
</div>
|
|
2582
|
+
<div>
|
|
2583
|
+
<label for="node-input-shift_two_hours_108"><i class="icon-tag"></i>Hours:</label>
|
|
2584
|
+
<input type="text" id="node-input-shift_two_hours_108" class="shift_two_108" placeholder="0" value="00">
|
|
2585
|
+
</div>
|
|
2586
|
+
<div>
|
|
2587
|
+
<label for="node-input-shift_two_minutes_108"><i class="icon-tag"></i>Minutes:</label>
|
|
2588
|
+
<input type="text" id="node-input-shift_two_minutes_108" class="shift_two_108" placeholder="0" value="00">
|
|
2589
|
+
</div>
|
|
2590
|
+
</div>
|
|
2591
|
+
<div class="form-row ncd-active-check">
|
|
2592
|
+
<strong>Set Shift Time 3</strong>
|
|
2593
|
+
<p class="caption">
|
|
2594
|
+
24-hour time format
|
|
2595
|
+
</p>
|
|
2596
|
+
<div>
|
|
2597
|
+
<label for="node-input-shift_three_108_active">Active:</label>
|
|
2598
|
+
<input type="checkbox" id="node-input-shift_three_108_active" class="ncd-config-toggle" data-target-class="shift_three_108" value="1">
|
|
2599
|
+
</div>
|
|
2600
|
+
<div>
|
|
2601
|
+
<label for="node-input-shift_three_hours_108"><i class="icon-tag"></i>Hours:</label>
|
|
2602
|
+
<input type="text" id="node-input-shift_three_hours_108" class="shift_three_108" placeholder="0" value="00">
|
|
2603
|
+
</div>
|
|
2604
|
+
<div>
|
|
2605
|
+
<label for="node-input-shift_three_minutes_108"><i class="icon-tag"></i>Minutes:</label>
|
|
2606
|
+
<input type="text" id="node-input-shift_three_minutes_108" class="shift_three_108" placeholder="0" value="00">
|
|
2607
|
+
</div>
|
|
2608
|
+
</div>
|
|
2609
|
+
<div class="form-row ncd-active-check">
|
|
2610
|
+
<strong>Set Shift Time 4</strong>
|
|
2611
|
+
<p class="caption">
|
|
2612
|
+
24-hour time format
|
|
2613
|
+
</p>
|
|
2614
|
+
<div>
|
|
2615
|
+
<label for="node-input-shift_four_108_active">Active:</label>
|
|
2616
|
+
<input type="checkbox" id="node-input-shift_four_108_active" class="ncd-config-toggle" data-target-class="shift_four_108" value="1">
|
|
2617
|
+
</div>
|
|
2618
|
+
<div>
|
|
2619
|
+
<label for="node-input-shift_four_hours_108"><i class="icon-tag"></i>Hours:</label>
|
|
2620
|
+
<input type="text" id="node-input-shift_four_hours_108" class="shift_four_108" placeholder="0" value="00">
|
|
2621
|
+
</div>
|
|
2622
|
+
<div>
|
|
2623
|
+
<label for="node-input-shift_four_minutes_108"><i class="icon-tag"></i>Minutes:</label>
|
|
2624
|
+
<input type="text" id="node-input-shift_four_minutes_108" class="shift_four_108" placeholder="0" value="00">
|
|
2625
|
+
</div>
|
|
2626
|
+
</div>
|
|
2627
|
+
<div class="form-row ncd-active-check">
|
|
2628
|
+
<strong> Set Reset Mode</strong>
|
|
2507
2629
|
<div>
|
|
2508
2630
|
<label for="node-input-reset_mode_to_disabled_108_active">Active:</label>
|
|
2509
2631
|
<input type="checkbox" id="node-input-reset_mode_to_disabled_108_active" class="ncd-config-toggle" data-target-id="node-input-reset_mode_to_disabled_108" value="1">
|
|
@@ -2524,33 +2646,6 @@
|
|
|
2524
2646
|
<input type="checkbox" id="node-input-rtc_108" value="1">
|
|
2525
2647
|
</div>
|
|
2526
2648
|
</div>
|
|
2527
|
-
<div class="form-row ncd-active-check">
|
|
2528
|
-
<strong> Set RTC Interval</strong>
|
|
2529
|
-
<div>
|
|
2530
|
-
<label for="node-input-rtc_interval_108_active">Active:</label>
|
|
2531
|
-
<input type="checkbox" id="node-input-rtc_interval_108_active" class="ncd-config-toggle" data-target-id="node-input-rtc_interval_108" value="1">
|
|
2532
|
-
</div>
|
|
2533
|
-
<div>
|
|
2534
|
-
<label for="node-input-rtc_interval_108"><i class="icon-tag"></i>Value:</label>
|
|
2535
|
-
<select id="node-input-rtc_interval_108">
|
|
2536
|
-
<option value="0" selected>1 minute</option>
|
|
2537
|
-
<option value="1">5 minutes</option>
|
|
2538
|
-
<option value="2">10 minutes</option>
|
|
2539
|
-
<option value="3">15 minutes</option>
|
|
2540
|
-
<option value="4">30 minutes</option>
|
|
2541
|
-
<option value="5">45 minutes</option>
|
|
2542
|
-
<option value="6">1 hour</option>
|
|
2543
|
-
<option value="7">2 hours</option>
|
|
2544
|
-
<option value="8">3 hours</option>
|
|
2545
|
-
<option value="9">4 hours</option>
|
|
2546
|
-
<option value="10">6 hours</option>
|
|
2547
|
-
<option value="11">8 hours</option>
|
|
2548
|
-
<option value="12">12 hours</option>
|
|
2549
|
-
</select>
|
|
2550
|
-
</div>
|
|
2551
|
-
</div>
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
2649
|
</div>
|
|
2555
2650
|
<div class="ncd-dependent" data-sensor-35 data-sensor-36>
|
|
2556
2651
|
<hr>
|
|
@@ -3246,6 +3341,62 @@
|
|
|
3246
3341
|
</div>
|
|
3247
3342
|
</div>
|
|
3248
3343
|
</div>
|
|
3344
|
+
<div class="ncd-dependent" data-sensor-32 data-sensor-44 data-sensor-53>
|
|
3345
|
+
<div class="form-row ncd-active-check">
|
|
3346
|
+
<strong>Set FLY Rate</strong>
|
|
3347
|
+
<div>
|
|
3348
|
+
<label for="node-input-change_otf_interval_active">Active:</label>
|
|
3349
|
+
<input type="checkbox" id="node-input-change_otf_interval_active" class="ncd-config-toggle" data-target-id="node-input-change_otf_interval_110" value="1">
|
|
3350
|
+
</div>
|
|
3351
|
+
<div>
|
|
3352
|
+
<label for="node-input-change_otf_interval"><i class="icon-tag"></i>Value:</label>
|
|
3353
|
+
<select id="node-input-change_otf_interval">
|
|
3354
|
+
<option value="60">1 Hour</option>
|
|
3355
|
+
<option value="120">2 Hours</option>
|
|
3356
|
+
<option value="240">4 Hours</option>
|
|
3357
|
+
<option value="480">8 Hours</option>
|
|
3358
|
+
<option value="720">12 Hours</option>
|
|
3359
|
+
<option value="1080">18 Hours</option>
|
|
3360
|
+
<option value="1440">24 Hours</option>
|
|
3361
|
+
</select>
|
|
3362
|
+
</div>
|
|
3363
|
+
</div>
|
|
3364
|
+
<div class="form-row ncd-active-check">
|
|
3365
|
+
<strong>Set Sampling Rate</strong>
|
|
3366
|
+
<p>
|
|
3367
|
+
Valid Range: 30 - 20000 (Seconds).
|
|
3368
|
+
</p>
|
|
3369
|
+
<div>
|
|
3370
|
+
<label for="node-input-sampling_rate_duration_active">Active:</label>
|
|
3371
|
+
<input type="checkbox" id="node-input-sampling_rate_duration_active" class="ncd-config-toggle" data-target-id="node-input-sampling_rate_duration" value="1">
|
|
3372
|
+
</div>
|
|
3373
|
+
<div>
|
|
3374
|
+
<label for="node-input-sampling_rate_duration"><i class="icon-tag"></i>Value:</label>
|
|
3375
|
+
<input type="text" id="node-input-sampling_rate_duration" placeholder="0" value="0">
|
|
3376
|
+
</div>
|
|
3377
|
+
</div>
|
|
3378
|
+
<div class="form-row ncd-active-check">
|
|
3379
|
+
<strong>Stop Sampling</strong>
|
|
3380
|
+
<div>
|
|
3381
|
+
<label for="node-input-stop_sampling"><i class="icon-tag"></i>Active:</label>
|
|
3382
|
+
<input type="checkbox" id="node-input-stop_sampling" value="1">
|
|
3383
|
+
</div>
|
|
3384
|
+
</div>
|
|
3385
|
+
<div class="form-row ncd-active-check">
|
|
3386
|
+
<strong>Extend OTF Timeout</strong>
|
|
3387
|
+
<div>
|
|
3388
|
+
<label for="node-input-extend_otf_timeout"><i class="icon-tag"></i>Active:</label>
|
|
3389
|
+
<input type="checkbox" id="node-input-extend_otf_timeout" value="1">
|
|
3390
|
+
</div>
|
|
3391
|
+
</div>
|
|
3392
|
+
<div class="form-row ncd-active-check">
|
|
3393
|
+
<strong>End Configuration</strong>
|
|
3394
|
+
<div>
|
|
3395
|
+
<label for="node-input-end_cfg"><i class="icon-tag"></i>Active:</label>
|
|
3396
|
+
<input type="checkbox" id="node-input-end_cfg" value="1">
|
|
3397
|
+
</div>
|
|
3398
|
+
</div>
|
|
3399
|
+
</div>
|
|
3249
3400
|
</div>
|
|
3250
3401
|
</div>
|
|
3251
3402
|
</script>
|
package/wireless.js
CHANGED
|
@@ -1012,6 +1012,21 @@ module.exports = function(RED) {
|
|
|
1012
1012
|
if(config.sps_skip_samples_32_active){
|
|
1013
1013
|
promises.sps_skip_samples_32 = node.config_gateway.config_set_sps_skip_samples_32(mac, parseInt(config.sps_skip_samples_32));
|
|
1014
1014
|
}
|
|
1015
|
+
if(config.stop_sampling){
|
|
1016
|
+
promises.stop_sampling = node.config_gateway.config_set_stop_sampling(mac);
|
|
1017
|
+
}
|
|
1018
|
+
if(config.extend_otf_timeout){
|
|
1019
|
+
promises.extend_otf_timeout = node.config_gateway.config_set_extend_otf_timeout(mac);
|
|
1020
|
+
}
|
|
1021
|
+
if(config.end_cfg){
|
|
1022
|
+
promises.end_cfg = node.config_gateway.config_set_end_cfg(mac);
|
|
1023
|
+
}
|
|
1024
|
+
if(config.change_otf_interval_active){
|
|
1025
|
+
promises.change_otf_interval = node.config_gateway.config_set_change_otf_interval(mac, parseInt(config.change_otf_interval));
|
|
1026
|
+
}
|
|
1027
|
+
if(config.sampling_rate_duration_active){
|
|
1028
|
+
promises.sampling_rate_duration = node.config_gateway.config_set_sampling_rate_duration(mac, parseInt(config.sampling_rate_duration));
|
|
1029
|
+
}
|
|
1015
1030
|
break;
|
|
1016
1031
|
case 33:
|
|
1017
1032
|
if(config.clear_counter_33){
|
|
@@ -1062,6 +1077,21 @@ module.exports = function(RED) {
|
|
|
1062
1077
|
if(config.scd_skip_samples_44_active){
|
|
1063
1078
|
promises.scd_skip_samples_44 = node.config_gateway.config_set_scd_skip_samples_44(mac, parseInt(config.scd_skip_samples_44));
|
|
1064
1079
|
}
|
|
1080
|
+
if(config.stop_sampling){
|
|
1081
|
+
promises.stop_sampling = node.config_gateway.config_set_stop_sampling(mac);
|
|
1082
|
+
}
|
|
1083
|
+
if(config.extend_otf_timeout){
|
|
1084
|
+
promises.extend_otf_timeout = node.config_gateway.config_set_extend_otf_timeout(mac);
|
|
1085
|
+
}
|
|
1086
|
+
if(config.end_cfg){
|
|
1087
|
+
promises.end_cfg = node.config_gateway.config_set_end_cfg(mac);
|
|
1088
|
+
}
|
|
1089
|
+
if(config.change_otf_interval_active){
|
|
1090
|
+
promises.change_otf_interval = node.config_gateway.config_set_change_otf_interval(mac, parseInt(config.change_otf_interval));
|
|
1091
|
+
}
|
|
1092
|
+
if(config.sampling_rate_duration_active){
|
|
1093
|
+
promises.sampling_rate_duration = node.config_gateway.config_set_sampling_rate_duration(mac, parseInt(config.sampling_rate_duration));
|
|
1094
|
+
}
|
|
1065
1095
|
break;
|
|
1066
1096
|
case 45:
|
|
1067
1097
|
if(config.sensor_boot_time_420ma_active){
|
|
@@ -1122,6 +1152,21 @@ module.exports = function(RED) {
|
|
|
1122
1152
|
if(config.scd_skip_samples_44_active){
|
|
1123
1153
|
promises.scd_skip_samples_44 = node.config_gateway.config_set_scd_skip_samples_44(mac, parseInt(config.scd_skip_samples_44));
|
|
1124
1154
|
}
|
|
1155
|
+
if(config.stop_sampling){
|
|
1156
|
+
promises.stop_sampling = node.config_gateway.config_set_stop_sampling(mac);
|
|
1157
|
+
}
|
|
1158
|
+
if(config.extend_otf_timeout){
|
|
1159
|
+
promises.extend_otf_timeout = node.config_gateway.config_set_extend_otf_timeout(mac);
|
|
1160
|
+
}
|
|
1161
|
+
if(config.end_cfg){
|
|
1162
|
+
promises.end_cfg = node.config_gateway.config_set_end_cfg(mac);
|
|
1163
|
+
}
|
|
1164
|
+
if(config.change_otf_interval_active){
|
|
1165
|
+
promises.change_otf_interval = node.config_gateway.config_set_change_otf_interval(mac, parseInt(config.change_otf_interval));
|
|
1166
|
+
}
|
|
1167
|
+
if(config.sampling_rate_duration_active){
|
|
1168
|
+
promises.sampling_rate_duration = node.config_gateway.config_set_sampling_rate_duration(mac, parseInt(config.sampling_rate_duration));
|
|
1169
|
+
}
|
|
1125
1170
|
break;
|
|
1126
1171
|
case 56:
|
|
1127
1172
|
if(config.sensor_boot_time_420ma_active){
|
|
@@ -1519,6 +1564,18 @@ module.exports = function(RED) {
|
|
|
1519
1564
|
if(config.rtc_interval_108_active){
|
|
1520
1565
|
promises.rtc_interval_108 = node.config_gateway.config_set_rtc_interval_108(mac, parseInt(config.rtc_interval_108));
|
|
1521
1566
|
}
|
|
1567
|
+
if(config.shift_one_108_active){
|
|
1568
|
+
promises.shift_time1 = node.config_gateway.config_set_shift_one_108(mac, parseInt(config.shift_one_hours_108), parseInt(config.shift_one_minutes_108));
|
|
1569
|
+
}
|
|
1570
|
+
if(config.shift_two_108_active){
|
|
1571
|
+
promises.shift_time2 = node.config_gateway.config_set_shift_two_108(mac, parseInt(config.shift_two_hours_108), parseInt(config.shift_two_minutes_108));
|
|
1572
|
+
}
|
|
1573
|
+
if(config.shift_three_108_active){
|
|
1574
|
+
promises.shift_time3 = node.config_gateway.config_set_shift_three_108(mac, parseInt(config.shift_three_hours_108), parseInt(config.shift_three_minutes_108));
|
|
1575
|
+
}
|
|
1576
|
+
if(config.shift_four_108_active){
|
|
1577
|
+
promises.shift_time4 = node.config_gateway.config_set_shift_four_108(mac, parseInt(config.shift_four_hours_108), parseInt(config.shift_four_minutes_108));
|
|
1578
|
+
}
|
|
1522
1579
|
break;
|
|
1523
1580
|
case 110:
|
|
1524
1581
|
if(config.output_data_rate_101_active){
|