@ncd-io/node-red-enterprise-sensors 1.0.9 → 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.
@@ -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];
@@ -1382,6 +1406,14 @@ module.exports = class WirelessSensor{
1382
1406
  console.log(packet);
1383
1407
  return this.config_send(sensor_mac, packet);
1384
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
+ }
1385
1417
  config_set_stay_on_mode_539(sensor_mac, value){
1386
1418
  console.log('config_set_stay_on_mode_539');
1387
1419
  var packet = [247, 50, 0, 0, 0, value];
@@ -1617,6 +1649,38 @@ module.exports = class WirelessSensor{
1617
1649
  console.log(packet);
1618
1650
  return this.config_send(sensor_mac, packet);
1619
1651
  }
1652
+ config_set_stop_sampling(sensor_mac){
1653
+ console.log('config_set_stop_sampling');
1654
+ var packet = [244, 37, 0, 2, 5];
1655
+ console.log(packet);
1656
+ return this.config_send(sensor_mac, packet);
1657
+ }
1658
+ config_set_extend_otf_timeout(sensor_mac){
1659
+ console.log('config_set_extend_otf_timeout');
1660
+ var packet = [244, 38, 0, 2, 5];
1661
+ console.log(packet);
1662
+ return this.config_send(sensor_mac, packet);
1663
+ }
1664
+ config_set_end_cfg(sensor_mac){
1665
+ console.log('config_set_end_cfg');
1666
+ var packet = [244, 39, 0, 2, 5];
1667
+ console.log(packet);
1668
+ return this.config_send(sensor_mac, packet);
1669
+ }
1670
+ config_set_change_otf_interval(sensor_mac, value){
1671
+ console.log('config_set_change_otf_interval');
1672
+ var packet = [244, 40, 0, 2, 5];
1673
+ var max = int2Bytes(value, 2);
1674
+ packet.push(...max);
1675
+ console.log(packet);
1676
+ return this.config_send(sensor_mac, packet);
1677
+ }
1678
+ config_set_sampling_rate_duration(sensor_mac, value){
1679
+ console.log('config_set_sampling_rate_duration');
1680
+ var packet = [244, 36, 0, 2, 5, 0, value, 255, 255];
1681
+ console.log(packet);
1682
+ return this.config_send(sensor_mac, packet);
1683
+ }
1620
1684
  config_set_fly_interval_110(sensor_mac, value){
1621
1685
  console.log('config_set_fly_interval');
1622
1686
  var packet = [244, 79, 0, 0, 101, 81];
@@ -5751,6 +5815,17 @@ function sensor_types(parent){
5751
5815
  return response;
5752
5816
  }
5753
5817
  },
5818
+ '87': {
5819
+ 'name': '24-Bit 1-Channel Current Monitor',
5820
+ parse: (d) => {
5821
+ return {
5822
+ ct1_rms: d.slice(0, 4).reduce(msbLsb),
5823
+ ct1_peak_1_freq: d.slice(4, 6).reduce(msbLsb),
5824
+ ct1_peak_2_freq: d.slice(6, 8).reduce(msbLsb),
5825
+ ct1_peak_3_freq: d.slice(8, 10).reduce(msbLsb),
5826
+ }
5827
+ }
5828
+ },
5754
5829
  '88': {
5755
5830
  name: '1 Channel Ultrasound Vibration Sensor',
5756
5831
  parse: (d) => {
@@ -5787,13 +5862,13 @@ function sensor_types(parent){
5787
5862
  'report_rate': frame.slice(12, 16).reduce(msbLsb),
5788
5863
  'fsr':frame_data.fsr,
5789
5864
  'boot_up_time': frame[17],
5790
- 'adc_pin_reading': frame.slice(18, 20).reduce(msbLsb),
5865
+ // 'adc_pin_reading': frame.slice(18, 20).reduce(msbLsb),
5791
5866
  'machine_values': {
5792
5867
  'firmware': frame[2],
5793
5868
  'report_rate': frame.slice(12, 16),
5794
5869
  'fsr':frame[16],
5795
5870
  'boot_up_time': frame[17],
5796
- 'adc_pin_reading': frame.slice(18, 20),
5871
+ // 'adc_pin_reading': frame.slice(18, 20),
5797
5872
  'frame': frame
5798
5873
  }
5799
5874
  }
@@ -5838,13 +5913,13 @@ function sensor_types(parent){
5838
5913
  'report_rate': frame.slice(12, 16).reduce(msbLsb),
5839
5914
  'fsr':frame_data.fsr,
5840
5915
  'boot_up_time': frame[17],
5841
- 'adc_pin_reading': frame.slice(18, 20).reduce(msbLsb),
5916
+ // 'adc_pin_reading': frame.slice(18, 20).reduce(msbLsb),
5842
5917
  'machine_values': {
5843
5918
  'firmware': frame[2],
5844
5919
  'report_rate': frame.slice(12, 16),
5845
5920
  'fsr':frame[16],
5846
5921
  'boot_up_time': frame[17],
5847
- 'adc_pin_reading': frame.slice(18, 20),
5922
+ // 'adc_pin_reading': frame.slice(18, 20),
5848
5923
  'frame': frame
5849
5924
  }
5850
5925
  }
@@ -5957,7 +6032,8 @@ function sensor_types(parent){
5957
6032
  let error = {error: 'Error found, Acclerometer Probe may be unattached'};
5958
6033
  return error;
5959
6034
  }
5960
- if(firmware > 5){
6035
+ if(firmware > 4){
6036
+ let report_type = d[41]? "Shift": "Regular";
5961
6037
  return {
5962
6038
  digital_input_counter: d.slice(0, 4).reduce(msbLsb),
5963
6039
  digital_input_uptime: d.slice(4, 8).reduce(msbLsb),
@@ -5974,7 +6050,7 @@ function sensor_types(parent){
5974
6050
  input_opto: d[40] & 4 ? 1 : 0,
5975
6051
  input_acc: d[40] & 8 ? 1 : 0,
5976
6052
  input_mag: d[40] & 16 ? 1 : 0,
5977
- report_type: d[41],
6053
+ report_type: report_type,
5978
6054
  rtc: [
5979
6055
  String(d[42]).padStart(2, '0'),
5980
6056
  String(d[43]).padStart(2, '0'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncd-io/node-red-enterprise-sensors",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
 
@@ -392,6 +395,18 @@
392
395
  input_three_108_active:{value:""},
393
396
  counter_threshold_108:{value:1000, validate: NCD_validators.number_range(0, 65534)},
394
397
  counter_threshold_108_active:{value:""},
398
+ shift_one_108_active:{value:""},
399
+ shift_one_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
400
+ shift_one_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
401
+ shift_two_108_active:{value:""},
402
+ shift_two_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
403
+ shift_two_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
404
+ shift_three_108_active:{value:""},
405
+ shift_three_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
406
+ shift_three_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
407
+ shift_four_108_active:{value:""},
408
+ shift_four_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
409
+ shift_four_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
395
410
 
396
411
  counter_threshold_35:{value:50, validate: NCD_validators.number_range(0, 65534)},
397
412
  counter_threshold_35_active:{value:""},
@@ -551,7 +566,17 @@
551
566
  reset_mode_to_disabled_108: {value: 0},
552
567
  rtc_interval_108_active: {value: ""},
553
568
  rtc_interval_108: {value: 0},
554
- rtc_108:{value:0}
569
+ rtc_108:{value:0},
570
+
571
+ change_otf_interval_active:{value: ""},
572
+ change_otf_interval:{value: 60},
573
+
574
+ sampling_rate_duration_active:{value: ""},
575
+ sampling_rate_duration:{value: 30, validate: NCD_validators.number_range(30, 20000)},
576
+
577
+ stop_sampling:{value:0},
578
+ extend_otf_timeout:{value:0},
579
+ end_cfg:{value:0}
555
580
  },
556
581
  inputs: 0,
557
582
  outputs: 1,
@@ -636,6 +661,7 @@
636
661
  "81": "81 - Two Channel Vibration Plus",
637
662
  "82": "82 - Condition Based/Predictive Maintenance Sensor",
638
663
  "84": "84 - Standalone Smart Vibration Sensor",
664
+ "87": "87 - One Channel Current v4",
639
665
  "88": "88 - 1 Channel Ultrasound Vibration Sensor",
640
666
  "89": "89 - 2 Channel Ultrasound Vibration Sensor",
641
667
  "90": "90 - DC Current Sensor",
@@ -929,6 +955,7 @@
929
955
  <option value="81">81 - Two Channel Vibration Plus</option>
930
956
  <option value="82">82 - Condition Based/Predictive Maintenance Sensor</option>
931
957
  <option value="84">84 - Standalone Smart Vibration Sensor</option>
958
+ <option value="87">87 - One Channel Current v4</option>
932
959
  <option value="88">88 - 1 Channel Ultrasound Vibration Sensor</option>
933
960
  <option value="89">89 - 2 Channel Ultrasound Vibration Sensor</option>
934
961
  <option value="90">90 - DC Current Sensor</option>
@@ -982,7 +1009,7 @@
982
1009
  <label for="node-input-auto_config"><i class="icon-tag"></i> Auto Config</label>
983
1010
  <input class="section-control" type="checkbox" id="node-input-auto_config" value="1">
984
1011
  </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>
1012
+ <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
1013
  <hr>
987
1014
  <label for="node-input-on_the_fly_enable"><i class="icon-tag"></i> OTF Config*</label>
988
1015
  <input type="checkbox" id="node-input-on_the_fly_enable" value="1">
@@ -2108,6 +2135,23 @@
2108
2135
  </div>
2109
2136
  </div>
2110
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
+
2111
2155
  <div class="ncd-dependent" data-sensor-78 data-sensor-79 data-sensor-91>
2112
2156
  <div class="form-row ncd-active-check">
2113
2157
  <strong>Sensor Boot Time</strong>
@@ -2429,34 +2473,34 @@
2429
2473
  <option value="31">Enable All</option>
2430
2474
  <option value="1">Enable on IO 1</option>
2431
2475
  <option value="2">Enable on IO 2</option>
2432
- <option value="3">Enable on IO 2 and 1</option>
2433
2476
  <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
2477
  <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
2478
  <option value="16">Enable on IO 5</option>
2446
- <option value="17">Enable on IO 5 and 1</option>
2447
- <option value="18">Enable on IO 5 and 2</option>
2448
- <option value="19">Enable on IO 5, 2 and 1</option>
2449
- <option value="20">Enable on IO 5 and 3</option>
2450
- <option value="21">Enable on IO 5, 3 and 1</option>
2451
- <option value="22">Enable on IO 5, 3 and 2</option>
2452
- <option value="23">Enable on IO 5, 3, 2 and 1</option>
2453
- <option value="24">Enable on IO 5 and 4</option>
2454
- <option value="25">Enable on IO 5, 4 and 1</option>
2455
- <option value="26">Enable on IO 5, 4 and 2</option>
2456
- <option value="27">Enable on IO 5, 4, 2 and 1</option>
2457
- <option value="28">Enable on IO 5, 4 and 3</option>
2458
- <option value="29">Enable on IO 5, 4, 3 and 1</option>
2459
- <option value="30">Enable on IO 5, 4, 3, and 2</option>
2479
+ <option value="3">Enable on IO 1 and 2</option>
2480
+ <option value="5">Enable on IO 1 and 3</option>
2481
+ <option value="9">Enable on IO 1 and 4</option>
2482
+ <option value="17">Enable on IO 1 and 5</option>
2483
+ <option value="7">Enable on IO 1, 2 and 3</option>
2484
+ <option value="11">Enable on IO 1, 2 and 4</option>
2485
+ <option value="19">Enable on IO 1, 2 and 5</option>
2486
+ <option value="15">Enable on IO 1, 2, 3 and 4</option>
2487
+ <option value="27">Enable on IO 1, 2, 4 and 5</option>
2488
+ <option value="23">Enable on IO 1, 2, 3 and 5</option>
2489
+ <option value="13">Enable on IO 1, 3 and 4</option>
2490
+ <option value="29">Enable on IO 1, 3, 4 and 5</option>
2491
+ <option value="21">Enable on IO 1, 3 and 5</option>
2492
+ <option value="25">Enable on IO 1, 4 and 5</option>
2493
+ <option value="6">Enable on IO 2 and 3</option>
2494
+ <option value="10">Enable on IO 2 and 4</option>
2495
+ <option value="18">Enable on IO 2 and 5</option>
2496
+ <option value="14">Enable on IO 2, 3 and 4</option>
2497
+ <option value="22">Enable on IO 2, 3 and 5</option>
2498
+ <option value="26">Enable on IO 2, 4 and 5</option>
2499
+ <option value="30">Enable on IO 2, 3, 4, and 5</option>
2500
+ <option value="12">Enable on IO 3 and 4</option>
2501
+ <option value="20">Enable on IO 3 and 5</option>
2502
+ <option value="28">Enable on IO 3, 4 and 5</option>
2503
+ <option value="24">Enable on IO 4 and 5</option>
2460
2504
  </select>
2461
2505
  </div>
2462
2506
  </div>
@@ -2488,9 +2532,35 @@
2488
2532
  </select>
2489
2533
  </div>
2490
2534
  </div>
2535
+ <div class="form-row ncd-active-check">
2536
+ <strong> Sample Data Interval Rate </strong>
2537
+ <div>
2538
+ <label for="node-input-rtc_interval_108_active">Active:</label>
2539
+ <input type="checkbox" id="node-input-rtc_interval_108_active" class="ncd-config-toggle" data-target-id="node-input-rtc_interval_108" value="1">
2540
+ </div>
2541
+ <div>
2542
+ <label for="node-input-rtc_interval_108"><i class="icon-tag"></i>Value:</label>
2543
+ <select id="node-input-rtc_interval_108">
2544
+ <option value="0" selected>1 minute</option>
2545
+ <option value="1">5 minutes</option>
2546
+ <option value="2">10 minutes</option>
2547
+ <option value="3">15 minutes</option>
2548
+ <option value="4">30 minutes</option>
2549
+ <option value="5">45 minutes</option>
2550
+ <option value="6">1 hour</option>
2551
+ <option value="7">2 hours</option>
2552
+ <option value="8">3 hours</option>
2553
+ <option value="9">4 hours</option>
2554
+ <option value="10">6 hours</option>
2555
+ <option value="11">8 hours</option>
2556
+ <option value="12">12 hours</option>
2557
+ </select>
2558
+ </div>
2559
+ </div>
2491
2560
  <div class="form-row ncd-active-check">
2492
2561
  <strong>Reset Timeout</strong>
2493
2562
  <p class="caption">
2563
+ Sensor will reset after this time and before reset it will set it data value.<br>
2494
2564
  Valid range: 60 - 65535
2495
2565
  </p>
2496
2566
  <div>
@@ -2503,7 +2573,79 @@
2503
2573
  </div>
2504
2574
  </div>
2505
2575
  <div class="form-row ncd-active-check">
2506
- <strong> Set Reset Mode to Disabled</strong>
2576
+ <strong>Set Shift Time 1</strong>
2577
+ <p class="caption">
2578
+ 24-hour time format
2579
+ </p>
2580
+ <div>
2581
+ <label for="node-input-shift_one_108_active">Active:</label>
2582
+ <input type="checkbox" id="node-input-shift_one_108_active" class="ncd-config-toggle" data-target-class="shift_one_108" value="1">
2583
+ </div>
2584
+ <div>
2585
+ <label for="node-input-shift_one_hours_108"><i class="icon-tag"></i>Hours:</label>
2586
+ <input type="text" id="node-input-shift_one_hours_108" class="shift_one_108" placeholder="0" value="00">
2587
+ </div>
2588
+ <div>
2589
+ <label for="node-input-shift_one_minutes_108"><i class="icon-tag"></i>Minutes:</label>
2590
+ <input type="text" id="node-input-shift_one_minutes_108" class="shift_one_108" placeholder="0" value="00">
2591
+ </div>
2592
+ </div>
2593
+ <div class="form-row ncd-active-check">
2594
+ <strong>Set Shift Time 2</strong>
2595
+ <p class="caption">
2596
+ 24-hour time format
2597
+ </p>
2598
+ <div>
2599
+ <label for="node-input-shift_two_108_active">Active:</label>
2600
+ <input type="checkbox" id="node-input-shift_two_108_active" class="ncd-config-toggle" data-target-class="shift_two_108" value="1">
2601
+ </div>
2602
+ <div>
2603
+ <label for="node-input-shift_two_hours_108"><i class="icon-tag"></i>Hours:</label>
2604
+ <input type="text" id="node-input-shift_two_hours_108" class="shift_two_108" placeholder="0" value="00">
2605
+ </div>
2606
+ <div>
2607
+ <label for="node-input-shift_two_minutes_108"><i class="icon-tag"></i>Minutes:</label>
2608
+ <input type="text" id="node-input-shift_two_minutes_108" class="shift_two_108" placeholder="0" value="00">
2609
+ </div>
2610
+ </div>
2611
+ <div class="form-row ncd-active-check">
2612
+ <strong>Set Shift Time 3</strong>
2613
+ <p class="caption">
2614
+ 24-hour time format
2615
+ </p>
2616
+ <div>
2617
+ <label for="node-input-shift_three_108_active">Active:</label>
2618
+ <input type="checkbox" id="node-input-shift_three_108_active" class="ncd-config-toggle" data-target-class="shift_three_108" value="1">
2619
+ </div>
2620
+ <div>
2621
+ <label for="node-input-shift_three_hours_108"><i class="icon-tag"></i>Hours:</label>
2622
+ <input type="text" id="node-input-shift_three_hours_108" class="shift_three_108" placeholder="0" value="00">
2623
+ </div>
2624
+ <div>
2625
+ <label for="node-input-shift_three_minutes_108"><i class="icon-tag"></i>Minutes:</label>
2626
+ <input type="text" id="node-input-shift_three_minutes_108" class="shift_three_108" placeholder="0" value="00">
2627
+ </div>
2628
+ </div>
2629
+ <div class="form-row ncd-active-check">
2630
+ <strong>Set Shift Time 4</strong>
2631
+ <p class="caption">
2632
+ 24-hour time format
2633
+ </p>
2634
+ <div>
2635
+ <label for="node-input-shift_four_108_active">Active:</label>
2636
+ <input type="checkbox" id="node-input-shift_four_108_active" class="ncd-config-toggle" data-target-class="shift_four_108" value="1">
2637
+ </div>
2638
+ <div>
2639
+ <label for="node-input-shift_four_hours_108"><i class="icon-tag"></i>Hours:</label>
2640
+ <input type="text" id="node-input-shift_four_hours_108" class="shift_four_108" placeholder="0" value="00">
2641
+ </div>
2642
+ <div>
2643
+ <label for="node-input-shift_four_minutes_108"><i class="icon-tag"></i>Minutes:</label>
2644
+ <input type="text" id="node-input-shift_four_minutes_108" class="shift_four_108" placeholder="0" value="00">
2645
+ </div>
2646
+ </div>
2647
+ <div class="form-row ncd-active-check">
2648
+ <strong> Set Reset Mode</strong>
2507
2649
  <div>
2508
2650
  <label for="node-input-reset_mode_to_disabled_108_active">Active:</label>
2509
2651
  <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 +2666,6 @@
2524
2666
  <input type="checkbox" id="node-input-rtc_108" value="1">
2525
2667
  </div>
2526
2668
  </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
2669
  </div>
2555
2670
  <div class="ncd-dependent" data-sensor-35 data-sensor-36>
2556
2671
  <hr>
@@ -3246,6 +3361,62 @@
3246
3361
  </div>
3247
3362
  </div>
3248
3363
  </div>
3364
+ <div class="ncd-dependent" data-sensor-32 data-sensor-44 data-sensor-53>
3365
+ <div class="form-row ncd-active-check">
3366
+ <strong>Set FLY Rate</strong>
3367
+ <div>
3368
+ <label for="node-input-change_otf_interval_active">Active:</label>
3369
+ <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">
3370
+ </div>
3371
+ <div>
3372
+ <label for="node-input-change_otf_interval"><i class="icon-tag"></i>Value:</label>
3373
+ <select id="node-input-change_otf_interval">
3374
+ <option value="60">1 Hour</option>
3375
+ <option value="120">2 Hours</option>
3376
+ <option value="240">4 Hours</option>
3377
+ <option value="480">8 Hours</option>
3378
+ <option value="720">12 Hours</option>
3379
+ <option value="1080">18 Hours</option>
3380
+ <option value="1440">24 Hours</option>
3381
+ </select>
3382
+ </div>
3383
+ </div>
3384
+ <div class="form-row ncd-active-check">
3385
+ <strong>Set Sampling Rate</strong>
3386
+ <p>
3387
+ Valid Range: 30 - 20000 (Seconds).
3388
+ </p>
3389
+ <div>
3390
+ <label for="node-input-sampling_rate_duration_active">Active:</label>
3391
+ <input type="checkbox" id="node-input-sampling_rate_duration_active" class="ncd-config-toggle" data-target-id="node-input-sampling_rate_duration" value="1">
3392
+ </div>
3393
+ <div>
3394
+ <label for="node-input-sampling_rate_duration"><i class="icon-tag"></i>Value:</label>
3395
+ <input type="text" id="node-input-sampling_rate_duration" placeholder="0" value="0">
3396
+ </div>
3397
+ </div>
3398
+ <div class="form-row ncd-active-check">
3399
+ <strong>Stop Sampling</strong>
3400
+ <div>
3401
+ <label for="node-input-stop_sampling"><i class="icon-tag"></i>Active:</label>
3402
+ <input type="checkbox" id="node-input-stop_sampling" value="1">
3403
+ </div>
3404
+ </div>
3405
+ <div class="form-row ncd-active-check">
3406
+ <strong>Extend OTF Timeout</strong>
3407
+ <div>
3408
+ <label for="node-input-extend_otf_timeout"><i class="icon-tag"></i>Active:</label>
3409
+ <input type="checkbox" id="node-input-extend_otf_timeout" value="1">
3410
+ </div>
3411
+ </div>
3412
+ <div class="form-row ncd-active-check">
3413
+ <strong>End Configuration</strong>
3414
+ <div>
3415
+ <label for="node-input-end_cfg"><i class="icon-tag"></i>Active:</label>
3416
+ <input type="checkbox" id="node-input-end_cfg" value="1">
3417
+ </div>
3418
+ </div>
3419
+ </div>
3249
3420
  </div>
3250
3421
  </div>
3251
3422
  </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){
@@ -1376,6 +1421,9 @@ module.exports = function(RED) {
1376
1421
  if(config.high_calibration_420ma_active){
1377
1422
  promises.high_calibration_420ma = node.config_gateway.config_set_high_calibration_420ma(mac, parseInt(config.high_calibration_420ma));
1378
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
+ }
1379
1427
  break;
1380
1428
  case 89:
1381
1429
  if(config.sensor_boot_time_420ma_active){
@@ -1390,6 +1438,9 @@ module.exports = function(RED) {
1390
1438
  if(config.high_calibration_420ma_active){
1391
1439
  promises.high_calibration_420ma = node.config_gateway.config_set_high_calibration_420ma(mac, parseInt(config.high_calibration_420ma));
1392
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
+ }
1393
1444
  break;
1394
1445
  case 91:
1395
1446
  if(config.sensor_boot_time_78_active){
@@ -1519,6 +1570,18 @@ module.exports = function(RED) {
1519
1570
  if(config.rtc_interval_108_active){
1520
1571
  promises.rtc_interval_108 = node.config_gateway.config_set_rtc_interval_108(mac, parseInt(config.rtc_interval_108));
1521
1572
  }
1573
+ if(config.shift_one_108_active){
1574
+ promises.shift_time1 = node.config_gateway.config_set_shift_one_108(mac, parseInt(config.shift_one_hours_108), parseInt(config.shift_one_minutes_108));
1575
+ }
1576
+ if(config.shift_two_108_active){
1577
+ promises.shift_time2 = node.config_gateway.config_set_shift_two_108(mac, parseInt(config.shift_two_hours_108), parseInt(config.shift_two_minutes_108));
1578
+ }
1579
+ if(config.shift_three_108_active){
1580
+ promises.shift_time3 = node.config_gateway.config_set_shift_three_108(mac, parseInt(config.shift_three_hours_108), parseInt(config.shift_three_minutes_108));
1581
+ }
1582
+ if(config.shift_four_108_active){
1583
+ promises.shift_time4 = node.config_gateway.config_set_shift_four_108(mac, parseInt(config.shift_four_hours_108), parseInt(config.shift_four_minutes_108));
1584
+ }
1522
1585
  break;
1523
1586
  case 110:
1524
1587
  if(config.output_data_rate_101_active){