@ncd-io/node-red-enterprise-sensors 0.1.6 → 0.1.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 +33 -0
- package/package.json +1 -1
- package/wireless.html +7 -3
- package/wireless.js +14 -0
package/lib/WirelessGateway.js
CHANGED
|
@@ -2214,6 +2214,29 @@ function sensor_types(parent){
|
|
|
2214
2214
|
};
|
|
2215
2215
|
}
|
|
2216
2216
|
},
|
|
2217
|
+
'78': {
|
|
2218
|
+
name: 'Oil Particulate Counter Sensor',
|
|
2219
|
+
parse: (d) => {
|
|
2220
|
+
return {
|
|
2221
|
+
|
|
2222
|
+
ferro_particles_lt_50_um: d.slice(0, 2).reduce(msbLsb),
|
|
2223
|
+
ferro_particles_50_100_um: d.slice(2, 4).reduce(msbLsb),
|
|
2224
|
+
ferro_particles_100_200_um: d.slice(4, 6).reduce(msbLsb),
|
|
2225
|
+
ferro_particles_200_400_um: d.slice(6, 8).reduce(msbLsb),
|
|
2226
|
+
ferro_particles_400_800_um: d.slice(8, 10).reduce(msbLsb),
|
|
2227
|
+
ferro_particles_gt_800_um: d.slice(10, 12).reduce(msbLsb),
|
|
2228
|
+
ferro_particles_total: d.slice(12, 14).reduce(msbLsb),
|
|
2229
|
+
non_ferro_particles_150_200_um: d.slice(14, 16).reduce(msbLsb),
|
|
2230
|
+
non_ferro_particles_200_400_um: d.slice(16, 18).reduce(msbLsb),
|
|
2231
|
+
non_ferro_particles_400_800_um: d.slice(18, 20).reduce(msbLsb),
|
|
2232
|
+
non_ferro_particles_800_1600_um: d.slice(20, 22).reduce(msbLsb),
|
|
2233
|
+
non_ferro_particles_gt_1600_um: d.slice(22, 24).reduce(msbLsb),
|
|
2234
|
+
non_ferro_particles_total: d.slice(24, 26).reduce(msbLsb),
|
|
2235
|
+
ferro_particles_total_24h: d.slice(26, 28).reduce(msbLsb),
|
|
2236
|
+
non_ferro_particles_total_24h: d.slice(28, 30).reduce(msbLsb)
|
|
2237
|
+
};
|
|
2238
|
+
}
|
|
2239
|
+
},
|
|
2217
2240
|
'79': {
|
|
2218
2241
|
name: 'Oil Analysis Sensor',
|
|
2219
2242
|
parse: (d) => {
|
|
@@ -4651,6 +4674,16 @@ function sensor_types(parent){
|
|
|
4651
4674
|
}
|
|
4652
4675
|
}
|
|
4653
4676
|
},
|
|
4677
|
+
'88': {
|
|
4678
|
+
name: '1 Channel Ultrasound Vibration Sensor',
|
|
4679
|
+
parse: (d) => {
|
|
4680
|
+
return {
|
|
4681
|
+
raw_adc: d.slice(0, 2).reduce(msbLsb),
|
|
4682
|
+
ma: d.slice(2, 4).reduce(msbLsb) / 100,
|
|
4683
|
+
db: d.slice(4, 6).reduce(msbLsb) / 100
|
|
4684
|
+
};
|
|
4685
|
+
}
|
|
4686
|
+
},
|
|
4654
4687
|
'89': {
|
|
4655
4688
|
name: '2 Channel Ultrasound Vibration Sensor',
|
|
4656
4689
|
parse: (d) => {
|
package/package.json
CHANGED
package/wireless.html
CHANGED
|
@@ -406,11 +406,13 @@
|
|
|
406
406
|
"75": "75 - Siemens Air Velocity Probe",
|
|
407
407
|
"76": "76 - Wireless CO Gas Sensor",
|
|
408
408
|
"77": "77 - 3 Channel SDI Soil Moisture Temperature Moisture Probe",
|
|
409
|
+
"78": "78 - Oil Particulate Counter Sensor",
|
|
409
410
|
"79": "79 - Oil Analysis Sensor",
|
|
410
411
|
"80": "80 - One Channel Vibration Plus",
|
|
411
412
|
"81": "81 - Two Channel Vibration Plus",
|
|
412
413
|
"82": "82 - Condition Based/Predictive Maintenance Sensor",
|
|
413
414
|
"84": "84 - Standalone Smart Vibration Sensor",
|
|
415
|
+
"88": "88 - 1 Channel Ultrasound Vibration Sensor",
|
|
414
416
|
"89": "89 - 2 Channel Ultrasound Vibration Sensor",
|
|
415
417
|
"92": "92 - Sound Sensor",
|
|
416
418
|
"101": "101 - Pro Vibration",
|
|
@@ -647,11 +649,13 @@
|
|
|
647
649
|
<option value="75">75 - Siemens Air Velocity Probe</option>
|
|
648
650
|
<option value="76">76 - Wireless CO Gas Sensor</option>
|
|
649
651
|
<option value="77">77 - 3 Channel SDI Soil Moisture Temperature Moisture Probe</option>
|
|
652
|
+
<option value="78">78 - Oil Particulate Counter Sensor</option>
|
|
650
653
|
<option value="79">79 - Oil Analysis Sensor</option>
|
|
651
654
|
<option value="80">80 - One Channel Vibration Plus</option>
|
|
652
655
|
<option value="81">81 - Two Channel Vibration Plus</option>
|
|
653
656
|
<option value="82">82 - Condition Based/Predictive Maintenance Sensor</option>
|
|
654
657
|
<option value="84">84 - Standalone Smart Vibration Sensor</option>
|
|
658
|
+
<option value="88">88 - 1 Channel Ultrasound Vibration Sensor</option>
|
|
655
659
|
<option value="89">89 - 2 Channel Ultrasound Vibration Sensor</option>
|
|
656
660
|
<option value="92">92 - Sound Sensor</option>
|
|
657
661
|
<option value="101">101 - Pro Vibration</option>
|
|
@@ -679,7 +683,7 @@
|
|
|
679
683
|
<label for="node-input-auto_config"><i class="icon-tag"></i> Auto Config</label>
|
|
680
684
|
<input class="section-control" type="checkbox" id="node-input-auto_config" value="1">
|
|
681
685
|
</div>
|
|
682
|
-
<div class="form-row ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-89 data-sensor-101 data-sensor-102 data-sensor-519 data-sensor-520>
|
|
686
|
+
<div class="form-row ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-88 data-sensor-89 data-sensor-101 data-sensor-102 data-sensor-519 data-sensor-520>
|
|
683
687
|
<hr>
|
|
684
688
|
<label for="node-input-on_the_fly_enable"><i class="icon-tag"></i> OTF Config*</label>
|
|
685
689
|
<input type="checkbox" id="node-input-on_the_fly_enable" value="1">
|
|
@@ -1451,7 +1455,7 @@
|
|
|
1451
1455
|
</div>
|
|
1452
1456
|
</div>
|
|
1453
1457
|
|
|
1454
|
-
<div class="ncd-dependent" data-sensor-14 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-89>
|
|
1458
|
+
<div class="ncd-dependent" data-sensor-14 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-88 data-sensor-89>
|
|
1455
1459
|
<div class="form-row ncd-active-check">
|
|
1456
1460
|
<strong>Sensor Boot Time</strong>
|
|
1457
1461
|
<p class="caption">
|
|
@@ -1469,7 +1473,7 @@
|
|
|
1469
1473
|
</div>
|
|
1470
1474
|
</div>
|
|
1471
1475
|
|
|
1472
|
-
<div class="ncd-dependent" data-sensor-3 data-sensor-14 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-89 data-sensor-200>
|
|
1476
|
+
<div class="ncd-dependent" data-sensor-3 data-sensor-14 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-88 data-sensor-89 data-sensor-200>
|
|
1473
1477
|
<div class="form-row ncd-active-check">
|
|
1474
1478
|
<strong>Low Calibration Point</strong>
|
|
1475
1479
|
<div>
|
package/wireless.js
CHANGED
|
@@ -711,6 +711,20 @@ module.exports = function(RED) {
|
|
|
711
711
|
promises.set_rtc_101 = node.config_gateway.config_set_rtc_101(mac);
|
|
712
712
|
}
|
|
713
713
|
break;
|
|
714
|
+
case 88:
|
|
715
|
+
if(config.sensor_boot_time_420ma_active){
|
|
716
|
+
promises.sensor_boot_time_420ma = node.config_gateway.config_set_sensor_boot_time_420ma(mac, parseInt(config.sensor_boot_time_420ma));
|
|
717
|
+
}
|
|
718
|
+
if(config.low_calibration_420ma_active){
|
|
719
|
+
promises.low_calibration_420ma = node.config_gateway.config_set_low_calibration_420ma(mac, parseInt(config.low_calibration_420ma));
|
|
720
|
+
}
|
|
721
|
+
if(config.mid_calibration_420ma_active){
|
|
722
|
+
promises.mid_calibration_420ma = node.config_gateway.config_set_mid_calibration_420ma(mac, parseInt(config.mid_calibration_420ma));
|
|
723
|
+
}
|
|
724
|
+
if(config.high_calibration_420ma_active){
|
|
725
|
+
promises.high_calibration_420ma = node.config_gateway.config_set_high_calibration_420ma(mac, parseInt(config.high_calibration_420ma));
|
|
726
|
+
}
|
|
727
|
+
break;
|
|
714
728
|
case 89:
|
|
715
729
|
if(config.sensor_boot_time_420ma_active){
|
|
716
730
|
promises.sensor_boot_time_420ma = node.config_gateway.config_set_sensor_boot_time_420ma(mac, parseInt(config.sensor_boot_time_420ma));
|