@ncd-io/node-red-enterprise-sensors 0.1.4 → 0.1.6
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 +64 -6
- package/package.json +1 -1
- package/wireless.html +311 -264
- package/wireless.js +958 -887
package/wireless.html
CHANGED
|
@@ -65,63 +65,63 @@
|
|
|
65
65
|
</script>
|
|
66
66
|
|
|
67
67
|
<style>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
68
|
+
.ncd-active-check strong{
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
.form-row.ncd-active-check{
|
|
72
|
+
margin: 12px 0px;
|
|
73
|
+
border: 1px solid #eee;
|
|
74
|
+
padding: 12px;
|
|
75
|
+
border-radius: 8px;
|
|
76
|
+
}
|
|
77
|
+
.form-row.ncd-active-check > div{
|
|
78
|
+
padding: 4px;
|
|
79
|
+
}
|
|
80
|
+
.form-row.ncd-active-check > div > input[type='checkbox']{
|
|
81
|
+
width: inherit;
|
|
82
|
+
}
|
|
83
|
+
.form-row .caption{
|
|
84
|
+
font-size: .95em;
|
|
85
85
|
padding-left: 1em;
|
|
86
86
|
margin-top: .25em;
|
|
87
|
-
|
|
87
|
+
}
|
|
88
88
|
</style>
|
|
89
89
|
|
|
90
90
|
<script type="text/x-red" data-help-name="ncd-gateway-node">
|
|
91
|
-
|
|
91
|
+
<h3>Gateway Node</h3>
|
|
92
92
|
<p>This node is primarily useful for debugging and configuring sensors. This node is equipped with a button on the flow that switches the modem between configuration and listening mode.</p>
|
|
93
93
|
<h3>Output</h3>
|
|
94
94
|
<p>Any time sensor data is received from any sensor on the network, this node will output a message containing all pertinant information as in the example below.</p>
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
95
|
+
<h3>Input</h3>
|
|
96
|
+
<p>The Input connection to this Gateway node allows for sending data to devices. The input connection expects the payload to be an object containging an address and data variable. Address is a string representation of the destination device. Data is a byte array of data to be transmitted as payload to that device. Example "payload":{"address":"00:13:A2:00:01:02:03:04",data:[254,108,1]}</p>
|
|
97
|
+
<pre>
|
|
98
|
+
msg = {
|
|
99
|
+
topic: "sensor_data",
|
|
100
|
+
payload: {
|
|
101
|
+
nodeId: 0,
|
|
102
|
+
firmware: 3,
|
|
103
|
+
battery: 3.2940600000000004,
|
|
104
|
+
counter: 37,
|
|
105
|
+
sensor_type: 1,
|
|
106
|
+
sensor_data: {
|
|
107
|
+
humidity: 45.51,
|
|
108
|
+
temperature: 23.91,
|
|
109
|
+
},
|
|
110
|
+
type: "sensor_data",
|
|
111
|
+
addr: "00:13:a2:00:41:07:18:81",
|
|
112
|
+
original: {
|
|
113
|
+
mac: "00:13:a2:00:41:07:18:81",
|
|
114
|
+
receive_options: {
|
|
115
|
+
ack: 0,
|
|
116
|
+
broadcast: 0,
|
|
117
|
+
type: ""
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
data: [127,0,3,3,255,37,0,1,0,17,199,9,87],
|
|
121
|
+
type: "receive_packet"
|
|
122
|
+
},
|
|
123
|
+
_msgid: "391caba.5a19454"
|
|
124
|
+
}
|
|
125
125
|
</pre>
|
|
126
126
|
</script>
|
|
127
127
|
|
|
@@ -323,6 +323,13 @@
|
|
|
323
323
|
|
|
324
324
|
motion_threshold_46_active:{value:""},
|
|
325
325
|
motion_threshold_46:{value: 100, validate: NCD_validators.number_range(0, 4294967295)},
|
|
326
|
+
|
|
327
|
+
low_calibration_420ma_active:{value:""},
|
|
328
|
+
low_calibration_420ma:{value: 68805, validate: NCD_validators.number_range(0, 4294967295)},
|
|
329
|
+
mid_calibration_420ma_active:{value:""},
|
|
330
|
+
mid_calibration_420ma:{value: 68724, validate: NCD_validators.number_range(0, 4294967295)},
|
|
331
|
+
high_calibration_420ma_active:{value:""},
|
|
332
|
+
high_calibration_420ma:{value: 68714, validate: NCD_validators.number_range(0, 4294967295)},
|
|
326
333
|
},
|
|
327
334
|
inputs: 0,
|
|
328
335
|
outputs: 1,
|
|
@@ -331,95 +338,97 @@
|
|
|
331
338
|
if(this.addr) return this.addr.split(":").slice(4).join(':');
|
|
332
339
|
if(this.sensor_type){
|
|
333
340
|
var types = {
|
|
334
|
-
"1": "Temperature/Humidity",
|
|
335
|
-
"2": "2ch Push Notification/Voltage Detection",
|
|
336
|
-
"3": "ADC/4-20 mA/DC Voltage",
|
|
337
|
-
"4": "Thermocouple",
|
|
338
|
-
"5": "Gyro/Magneto/Temperature",
|
|
339
|
-
"6": "Temperature/Barometeric Pressure",
|
|
340
|
-
"7": "Impact Detection",
|
|
341
|
-
"8": "Vibration",
|
|
342
|
-
"9": "Proximity and Light",
|
|
343
|
-
"10": "Light",
|
|
344
|
-
"12": "3 Channel Thermocouple",
|
|
345
|
-
"13": "Current Monitor",
|
|
346
|
-
"14": "1 Channel 4-20mA Receiver",
|
|
347
|
-
"15": "1 Channel 0-10V Receiver",
|
|
348
|
-
"16": "1 Channel Soil Moisture Sensor",
|
|
349
|
-
"17": "1 Channel AC Voltage Sensor",
|
|
350
|
-
"18": "Pulse Frequency",
|
|
351
|
-
"19": "2 Channel Current Sensor",
|
|
352
|
-
"20": "High Precision Pressure Sensor",
|
|
353
|
-
"21": "Differential Bi directional Pressure Sensor",
|
|
354
|
-
"22": "0-24V AC/DC Optically Isolated Inputs",
|
|
355
|
-
"23": "2 Channel Thermocouple Sensor",
|
|
356
|
-
"24": "Activity Detection",
|
|
357
|
-
"25": "Asset Monitor",
|
|
358
|
-
"26": "Pressure Sensor",
|
|
359
|
-
"27": "Environmental Sensor",
|
|
360
|
-
"28": "3 Channel Current Sensor",
|
|
361
|
-
"29": "Linear Displacement Sensor",
|
|
362
|
-
"30": "Structural Monitoring Sensor",
|
|
363
|
-
"31": "Air Quality TVOC eCO2 Temperature and Humidity Sensor",
|
|
364
|
-
"32": "Particulate Matter Sensor",
|
|
365
|
-
"33": "AC Current Detect Sensor",
|
|
366
|
-
"34": "Tank Level Sensor",
|
|
367
|
-
"35": "1 Channel Counter",
|
|
368
|
-
"36": "2 Channel Counter",
|
|
369
|
-
"37": "7 Channel Push Notification",
|
|
370
|
-
"39": "3 Wire RTD Temperature Sensor",
|
|
371
|
-
"40": "Enterprise Vibration Sensor",
|
|
372
|
-
"41": "RPM Proximity Sensor",
|
|
373
|
-
"42": "0-24VDC Voltage Monitor",
|
|
374
|
-
"43": "Dual Temperature Humidity Current Detection Sensor",
|
|
375
|
-
"44": "CO2 Gas Sensor",
|
|
376
|
-
"45": "4-20mA 16-Bit Input Transmitter",
|
|
377
|
-
"46": "Motion Detection Sensor",
|
|
378
|
-
"47": "Wireless Tilt Sensor",
|
|
379
|
-
"48": "4-20mA 16-Bit Input Transmitter",
|
|
380
|
-
"49": "6 Channel Thermocouple Sensor",
|
|
381
|
-
"50": "Predictive Maintenance Sensor",
|
|
382
|
-
"51": "6 Channel Current Sensor",
|
|
383
|
-
"52": "2 Channel 4-20mA Receiver",
|
|
384
|
-
"53": "Air Quality CO2 and PM Sensor",
|
|
385
|
-
"54": "3 Channel RTD",
|
|
386
|
-
"56": "2 Channel 0-10VDC Receiver",
|
|
387
|
-
"60": "Air Velocity, Pressure, & Temperature Sensor",
|
|
388
|
-
"61": "pH Temperature Sensor",
|
|
389
|
-
"62": "ORP Temperature Sensor",
|
|
390
|
-
"63": "pH and ORPTemperature Sensor",
|
|
391
|
-
"64": "EC Salinity TDS and Temperature Sensor",
|
|
392
|
-
"65": "DO and Temperature Sensor",
|
|
393
|
-
"66": "DO EC Salinity TDS and Temperature Sensor",
|
|
394
|
-
"67": "PAR Sensor",
|
|
395
|
-
"69": "Soil Moisture Temperature and EC Sensor",
|
|
396
|
-
// "70": "2 Channel Soil Moisture Temperature and EC Sensor",
|
|
397
|
-
"71": "3 Channel Soil Moisture Temperature and EC Sensor",
|
|
398
|
-
"72": "SDI Soil Moisture Temperature Moisture Probe",
|
|
399
|
-
"75": "Siemens Air Velocity Probe",
|
|
400
|
-
"76": "Wireless CO Gas Sensor",
|
|
401
|
-
"77": "3 Channel SDI Soil Moisture Temperature Moisture Probe",
|
|
402
|
-
"79": "Oil Analysis Sensor",
|
|
403
|
-
"80": "One Channel Vibration Plus",
|
|
404
|
-
"81": "Two Channel Vibration Plus",
|
|
405
|
-
"82": "Condition Based/Predictive Maintenance Sensor",
|
|
406
|
-
"84": "
|
|
407
|
-
"
|
|
408
|
-
"
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
414
|
-
"
|
|
415
|
-
"
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
"
|
|
421
|
-
"
|
|
422
|
-
"
|
|
341
|
+
"1": "1 - Temperature/Humidity",
|
|
342
|
+
"2": "2 - 2ch Push Notification/Voltage Detection",
|
|
343
|
+
"3": "3 - ADC/4-20 mA/DC Voltage",
|
|
344
|
+
"4": "4 - Thermocouple",
|
|
345
|
+
"5": "5 - Gyro/Magneto/Temperature",
|
|
346
|
+
"6": "6 - Temperature/Barometeric Pressure",
|
|
347
|
+
"7": "7 - Impact Detection",
|
|
348
|
+
"8": "8 - Vibration",
|
|
349
|
+
"9": "9 - Proximity and Light",
|
|
350
|
+
"10": "10 - Light",
|
|
351
|
+
"12": "12 - 3 Channel Thermocouple",
|
|
352
|
+
"13": "13 - Current Monitor",
|
|
353
|
+
"14": "14 - 1 Channel 4-20mA Receiver",
|
|
354
|
+
"15": "15 - 1 Channel 0-10V Receiver",
|
|
355
|
+
"16": "16 - 1 Channel Soil Moisture Sensor",
|
|
356
|
+
"17": "17 - 1 Channel AC Voltage Sensor",
|
|
357
|
+
"18": "18 - Pulse Frequency",
|
|
358
|
+
"19": "19 - 2 Channel Current Sensor",
|
|
359
|
+
"20": "20 - High Precision Pressure Sensor",
|
|
360
|
+
"21": "21 - Differential Bi directional Pressure Sensor",
|
|
361
|
+
"22": "22 - 0-24V AC/DC Optically Isolated Inputs",
|
|
362
|
+
"23": "23 - 2 Channel Thermocouple Sensor",
|
|
363
|
+
"24": "24 - Activity Detection",
|
|
364
|
+
"25": "25 - Asset Monitor",
|
|
365
|
+
"26": "26 - Pressure Sensor",
|
|
366
|
+
"27": "27 - Environmental Sensor",
|
|
367
|
+
"28": "28 - 3 Channel Current Sensor",
|
|
368
|
+
"29": "29 - Linear Displacement Sensor",
|
|
369
|
+
"30": "30 - Structural Monitoring Sensor",
|
|
370
|
+
"31": "31 - Air Quality TVOC eCO2 Temperature and Humidity Sensor",
|
|
371
|
+
"32": "32 - Particulate Matter Sensor",
|
|
372
|
+
"33": "33 - AC Current Detect Sensor",
|
|
373
|
+
"34": "34 - Tank Level Sensor",
|
|
374
|
+
"35": "35 - 1 Channel Counter",
|
|
375
|
+
"36": "36 - 2 Channel Counter",
|
|
376
|
+
"37": "37 - 7 Channel Push Notification",
|
|
377
|
+
"39": "39 - 3 Wire RTD Temperature Sensor",
|
|
378
|
+
"40": "40 - Enterprise Vibration Sensor",
|
|
379
|
+
"41": "41 - RPM Proximity Sensor",
|
|
380
|
+
"42": "42 - 0-24VDC Voltage Monitor",
|
|
381
|
+
"43": "43 - Dual Temperature Humidity Current Detection Sensor",
|
|
382
|
+
"44": "44 - CO2 Gas Sensor",
|
|
383
|
+
"45": "45 - 4-20mA 16-Bit Input Transmitter",
|
|
384
|
+
"46": "46 - Motion Detection Sensor",
|
|
385
|
+
"47": "47 - Wireless Tilt Sensor",
|
|
386
|
+
"48": "48 - 4-20mA 16-Bit Input Transmitter",
|
|
387
|
+
"49": "49 - 6 Channel Thermocouple Sensor",
|
|
388
|
+
"50": "50 - Predictive Maintenance Sensor",
|
|
389
|
+
"51": "51 - 6 Channel Current Sensor",
|
|
390
|
+
"52": "52 - 2 Channel 4-20mA Receiver",
|
|
391
|
+
"53": "53 - Air Quality CO2 and PM Sensor",
|
|
392
|
+
"54": "54 - 3 Channel RTD",
|
|
393
|
+
"56": "56 - 2 Channel 0-10VDC Receiver",
|
|
394
|
+
"60": "60 - Air Velocity, Pressure, & Temperature Sensor",
|
|
395
|
+
"61": "61 - pH Temperature Sensor",
|
|
396
|
+
"62": "62 - ORP Temperature Sensor",
|
|
397
|
+
"63": "63 - pH and ORPTemperature Sensor",
|
|
398
|
+
"64": "64 - EC Salinity TDS and Temperature Sensor",
|
|
399
|
+
"65": "65 - DO and Temperature Sensor",
|
|
400
|
+
"66": "66 - DO EC Salinity TDS and Temperature Sensor",
|
|
401
|
+
"67": "67 - PAR Sensor",
|
|
402
|
+
"69": "69 - Soil Moisture Temperature and EC Sensor",
|
|
403
|
+
// "70": "70 - 2 Channel Soil Moisture Temperature and EC Sensor",
|
|
404
|
+
"71": "71 - 3 Channel Soil Moisture Temperature and EC Sensor",
|
|
405
|
+
"72": "72 - SDI Soil Moisture Temperature Moisture Probe",
|
|
406
|
+
"75": "75 - Siemens Air Velocity Probe",
|
|
407
|
+
"76": "76 - Wireless CO Gas Sensor",
|
|
408
|
+
"77": "77 - 3 Channel SDI Soil Moisture Temperature Moisture Probe",
|
|
409
|
+
"79": "79 - Oil Analysis Sensor",
|
|
410
|
+
"80": "80 - One Channel Vibration Plus",
|
|
411
|
+
"81": "81 - Two Channel Vibration Plus",
|
|
412
|
+
"82": "82 - Condition Based/Predictive Maintenance Sensor",
|
|
413
|
+
"84": "84 - Standalone Smart Vibration Sensor",
|
|
414
|
+
"89": "89 - 2 Channel Ultrasound Vibration Sensor",
|
|
415
|
+
"92": "92 - Sound Sensor",
|
|
416
|
+
"101": "101 - Pro Vibration",
|
|
417
|
+
"102": "102 - Strain Gauge",
|
|
418
|
+
"200": "200 - 4-20mA Pass Through",
|
|
419
|
+
"202": "202 - Weather Station",
|
|
420
|
+
"502": "502 - C_50-27",
|
|
421
|
+
"505": "505 - Custom_SAP_Current_1C",
|
|
422
|
+
"506": "506 - Custom_SAP_Current_3C",
|
|
423
|
+
"507": "507 - Custom_SAP_Current_7C",
|
|
424
|
+
"510": "510 - GreenLight",
|
|
425
|
+
"515": "515 - Custom_SAP_Current_48C",
|
|
426
|
+
"519": "519: Custom Vibration 1",
|
|
427
|
+
"520": "520: Custom 6 Channel Current Temperature & Humidity",
|
|
428
|
+
"10000": "10000 - 4-Channel Relay",
|
|
429
|
+
"10006": "10006 - 4-Channel 4-20 mA Input",
|
|
430
|
+
"10007": "10007 - 4-Channel Current Monitor",
|
|
431
|
+
"10012": "10012 - 2-Relay + 2-Input",
|
|
423
432
|
}
|
|
424
433
|
return types[this.sensor_type];
|
|
425
434
|
}
|
|
@@ -517,10 +526,10 @@
|
|
|
517
526
|
$('.ncd-config-toggle').each(function(){
|
|
518
527
|
var handleClick = function(){
|
|
519
528
|
// if($(this).prop('checked') && $(this).data('target-id')) {
|
|
520
|
-
//
|
|
529
|
+
// $('#'+$(this).data('target-id')).prop('disabled', false);
|
|
521
530
|
// }
|
|
522
531
|
// else{
|
|
523
|
-
//
|
|
532
|
+
// $('#'+$(this).data('target-id')).prop('disabled', true);
|
|
524
533
|
// }
|
|
525
534
|
|
|
526
535
|
if($(this).prop('checked')){
|
|
@@ -568,97 +577,99 @@
|
|
|
568
577
|
<div class="form-row">
|
|
569
578
|
<label for="node-input-sensor_type"><i class="icon-tag"></i> Sensor Type</label>
|
|
570
579
|
<select id="node-input-sensor_type">
|
|
571
|
-
<option value="1">Temperature and Humidity</option>
|
|
572
|
-
<option value="2">2ch Push Notification/Voltage Detection</option>
|
|
573
|
-
<option value="3">ADC/4-20 mA/DC Voltage</option>
|
|
574
|
-
<option value="4">Thermocouple</option>
|
|
575
|
-
<option value="5">Accel, Gyro, Magneto and Temperature</option>
|
|
576
|
-
<option value="6">Temperature and Barometeric Pressure</option>
|
|
577
|
-
<option value="7">Impact Detection</option>
|
|
578
|
-
<option value="8">Vibration</option>
|
|
579
|
-
<option value="9">Proximity</option>
|
|
580
|
-
<option value="10">Light</option>
|
|
581
|
-
<option value="12">3-channel Thermocouple</option>
|
|
582
|
-
<option value="13">Current Monitor</option>
|
|
583
|
-
<option value="14">10-Bit 1-Channel 4-20mA</option>
|
|
584
|
-
<option value="15">10-Bit 1-Channel ADC</option>
|
|
585
|
-
<option value="16">Soil Moisture Sensor</option>
|
|
586
|
-
<option value="17">24-Bit AC Voltage Monitor</option>
|
|
587
|
-
<option value="18">Pulse/Frequency</option>
|
|
588
|
-
<option value="19">2-channel 24-bit Current Monitor</option>
|
|
589
|
-
<option value="20">Precision Pressure & Temperature (pA)</option>
|
|
590
|
-
<option value="21">AMS Pressure & Temperature</option>
|
|
591
|
-
<option value="22">0-24V AC/DC Optically Isolated Inputs</option>
|
|
592
|
-
<option value="23">2-channel Thermocouple</option>
|
|
593
|
-
<option value="24">Activity Detection</option>
|
|
594
|
-
<option value="25">Asset Monitor</option>
|
|
595
|
-
<option value="26">Pressure & Temperature (PSI)</option>
|
|
596
|
-
<option value="27">Environmental</option>
|
|
597
|
-
<option value="28">3-Channel Current Monitor</option>
|
|
598
|
-
<option value="29">Linear Displacement Sensor</option>
|
|
599
|
-
<option value="30">Structural Monitoring Sensor</option>
|
|
600
|
-
<option value="31">Air Quality TVOC eCO2 Temperature and Humidity Sensor</option>
|
|
601
|
-
<option value="32">Particulate Matter Sensor</option>
|
|
602
|
-
<option value="33">AC Current Detect Sensor</option>
|
|
603
|
-
<option value="34">Wireless Tank Level</option>
|
|
604
|
-
<option value="35">One Channel Counter</option>
|
|
605
|
-
<option value="36">Two Channel Counter</option>
|
|
606
|
-
<option value="37">7 Channel Push Notification</option>
|
|
607
|
-
<option value="39">RTD Temperature Sensor</option>
|
|
608
|
-
<option value="40">Vibration w/Time Domain (partial support)</option>
|
|
609
|
-
<option value="41">RPM Proximity Sensor</option>
|
|
610
|
-
<option value="42">0-24VDC Voltage Monitor</option>
|
|
611
|
-
<option value="43">Dual Temperature Humidity Current Detection Sensor</option>
|
|
612
|
-
<option value="44">Wireless CO2 Gas Sensor</option>
|
|
613
|
-
<option value="45">4-20mA 16-Bit Input Transmitter</option>
|
|
614
|
-
<option value="46">Motion Detection Sensor</option>
|
|
615
|
-
<option value="47">Type 47: Tilt Sensor</option>
|
|
616
|
-
<option value="48">4-20mA 16-Bit Input Transmitter</option>
|
|
617
|
-
<option value="49">6 Channel Thermocouple Sensor</option>
|
|
618
|
-
<option value="50">Predictive Maintenance Sensor</option>
|
|
619
|
-
<option value="51">6 Channel Current Sensor</option>
|
|
620
|
-
<option value="52">2 Channel 4-20mA Receiver</option>
|
|
621
|
-
<option value="53">Air Quality CO2 and PM Sensor</option>
|
|
622
|
-
<option value="54">3 Channel RTD</option>
|
|
623
|
-
<option value="56">2 Channel 0-10VDC Receiver</option>
|
|
624
|
-
<option value="60">Air Velocity and Precision Pressure & Temperature Sensor</option>
|
|
625
|
-
<option value="61">pH Temperature Sensor</option>
|
|
626
|
-
<option value="62">ORP Temperature Sensor</option>
|
|
627
|
-
<option value="63">pH and ORPTemperature Sensor</option>
|
|
628
|
-
<option value="64">EC Salinity TDS and Temperature Sensor</option>
|
|
629
|
-
<option value="65">DO and Temperature Sensor</option>
|
|
630
|
-
<option value="66">DO EC Salinity TDS and Temperature Sensor</option>
|
|
631
|
-
<option value="67">PAR Sensor</option>
|
|
632
|
-
<option value="69">Soil Moisture Temperature and EC Sensor</option>
|
|
580
|
+
<option value="1">1 - Temperature and Humidity</option>
|
|
581
|
+
<option value="2">2 - 2ch Push Notification/Voltage Detection</option>
|
|
582
|
+
<option value="3">3 - ADC/4-20 mA/DC Voltage</option>
|
|
583
|
+
<option value="4">4 - Thermocouple</option>
|
|
584
|
+
<option value="5">5 - Accel, Gyro, Magneto and Temperature</option>
|
|
585
|
+
<option value="6">6 - Temperature and Barometeric Pressure</option>
|
|
586
|
+
<option value="7">7 - Impact Detection</option>
|
|
587
|
+
<option value="8">8 - Vibration</option>
|
|
588
|
+
<option value="9">9 - Proximity</option>
|
|
589
|
+
<option value="10">10 - Light</option>
|
|
590
|
+
<option value="12">12 - 3-channel Thermocouple</option>
|
|
591
|
+
<option value="13">13 - Current Monitor</option>
|
|
592
|
+
<option value="14">14 - 10-Bit 1-Channel 4-20mA</option>
|
|
593
|
+
<option value="15">15 - 10-Bit 1-Channel ADC</option>
|
|
594
|
+
<option value="16">16 - Soil Moisture Sensor</option>
|
|
595
|
+
<option value="17">17 - 24-Bit AC Voltage Monitor</option>
|
|
596
|
+
<option value="18">18 - Pulse/Frequency</option>
|
|
597
|
+
<option value="19">19 - 2-channel 24-bit Current Monitor</option>
|
|
598
|
+
<option value="20">20 - Precision Pressure & Temperature (pA)</option>
|
|
599
|
+
<option value="21">21 - AMS Pressure & Temperature</option>
|
|
600
|
+
<option value="22">22 - 0-24V AC/DC Optically Isolated Inputs</option>
|
|
601
|
+
<option value="23">23 - 2-channel Thermocouple</option>
|
|
602
|
+
<option value="24">24 - Activity Detection</option>
|
|
603
|
+
<option value="25">25 - Asset Monitor</option>
|
|
604
|
+
<option value="26">26 - Pressure & Temperature (PSI)</option>
|
|
605
|
+
<option value="27">27 - Environmental</option>
|
|
606
|
+
<option value="28">28 - 3-Channel Current Monitor</option>
|
|
607
|
+
<option value="29">29 - Linear Displacement Sensor</option>
|
|
608
|
+
<option value="30">30 - Structural Monitoring Sensor</option>
|
|
609
|
+
<option value="31">31 - Air Quality TVOC eCO2 Temperature and Humidity Sensor</option>
|
|
610
|
+
<option value="32">32 - Particulate Matter Sensor</option>
|
|
611
|
+
<option value="33">33 - AC Current Detect Sensor</option>
|
|
612
|
+
<option value="34">34 - Wireless Tank Level</option>
|
|
613
|
+
<option value="35">35 - One Channel Counter</option>
|
|
614
|
+
<option value="36">36 - Two Channel Counter</option>
|
|
615
|
+
<option value="37">37 - 7 Channel Push Notification</option>
|
|
616
|
+
<option value="39">39 - RTD Temperature Sensor</option>
|
|
617
|
+
<option value="40">40 - Vibration w/Time Domain (partial support)</option>
|
|
618
|
+
<option value="41">41 - RPM Proximity Sensor</option>
|
|
619
|
+
<option value="42">42 - 0-24VDC Voltage Monitor</option>
|
|
620
|
+
<option value="43">43 - Dual Temperature Humidity Current Detection Sensor</option>
|
|
621
|
+
<option value="44">44 - Wireless CO2 Gas Sensor</option>
|
|
622
|
+
<option value="45">45 - 4-20mA 16-Bit Input Transmitter</option>
|
|
623
|
+
<option value="46">46 - Motion Detection Sensor</option>
|
|
624
|
+
<option value="47">47 - Type 47: Tilt Sensor</option>
|
|
625
|
+
<option value="48">48 - 4-20mA 16-Bit Input Transmitter</option>
|
|
626
|
+
<option value="49">49 - 6 Channel Thermocouple Sensor</option>
|
|
627
|
+
<option value="50">50 - Predictive Maintenance Sensor</option>
|
|
628
|
+
<option value="51">51 - 6 Channel Current Sensor</option>
|
|
629
|
+
<option value="52">52 - 2 Channel 4-20mA Receiver</option>
|
|
630
|
+
<option value="53">53 - Air Quality CO2 and PM Sensor</option>
|
|
631
|
+
<option value="54">54 - 3 Channel RTD</option>
|
|
632
|
+
<option value="56">56 - 2 Channel 0-10VDC Receiver</option>
|
|
633
|
+
<option value="60">60 - Air Velocity and Precision Pressure & Temperature Sensor</option>
|
|
634
|
+
<option value="61">61 - pH Temperature Sensor</option>
|
|
635
|
+
<option value="62">62 - ORP Temperature Sensor</option>
|
|
636
|
+
<option value="63">63 - pH and ORPTemperature Sensor</option>
|
|
637
|
+
<option value="64">64 - EC Salinity TDS and Temperature Sensor</option>
|
|
638
|
+
<option value="65">65 - DO and Temperature Sensor</option>
|
|
639
|
+
<option value="66">66 - DO EC Salinity TDS and Temperature Sensor</option>
|
|
640
|
+
<option value="67">67 - PAR Sensor</option>
|
|
641
|
+
<option value="69">69 - Soil Moisture Temperature and EC Sensor</option>
|
|
633
642
|
<!--
|
|
634
|
-
<option value="70">2 Channel Soil Moisture Temperature and EC Sensor</option>
|
|
643
|
+
<option value="70">70 - 2 Channel Soil Moisture Temperature and EC Sensor</option>
|
|
635
644
|
-->
|
|
636
|
-
<option value="71">3 Channel Soil Moisture Temperature and EC Sensor</option>
|
|
637
|
-
<option value="72">SDI-12 Wireless</option>
|
|
638
|
-
<option value="75">Siemens Air Velocity Probe</option>
|
|
639
|
-
<option value="76">Wireless CO Gas Sensor</option>
|
|
640
|
-
<option value="77">3 Channel SDI Soil Moisture Temperature Moisture Probe</option>
|
|
641
|
-
<option value="79">Oil Analysis Sensor</option>
|
|
642
|
-
<option value="80">One Channel Vibration Plus</option>
|
|
643
|
-
<option value="81">Two Channel Vibration Plus</option>
|
|
644
|
-
<option value="82">Condition Based/Predictive Maintenance Sensor</option>
|
|
645
|
-
<option value="84">
|
|
646
|
-
<option value="
|
|
647
|
-
<option value="
|
|
648
|
-
<option value="
|
|
649
|
-
<option value="
|
|
650
|
-
<option value="
|
|
651
|
-
<option value="
|
|
652
|
-
<option value="
|
|
653
|
-
<option value="
|
|
654
|
-
<option value="
|
|
655
|
-
<option value="
|
|
656
|
-
<option value="
|
|
657
|
-
<option value="
|
|
658
|
-
<option value="
|
|
659
|
-
<option value="
|
|
660
|
-
<option value="
|
|
661
|
-
<option value="
|
|
645
|
+
<option value="71">71 - 3 Channel Soil Moisture Temperature and EC Sensor</option>
|
|
646
|
+
<option value="72">72 - SDI-12 Wireless</option>
|
|
647
|
+
<option value="75">75 - Siemens Air Velocity Probe</option>
|
|
648
|
+
<option value="76">76 - Wireless CO Gas Sensor</option>
|
|
649
|
+
<option value="77">77 - 3 Channel SDI Soil Moisture Temperature Moisture Probe</option>
|
|
650
|
+
<option value="79">79 - Oil Analysis Sensor</option>
|
|
651
|
+
<option value="80">80 - One Channel Vibration Plus</option>
|
|
652
|
+
<option value="81">81 - Two Channel Vibration Plus</option>
|
|
653
|
+
<option value="82">82 - Condition Based/Predictive Maintenance Sensor</option>
|
|
654
|
+
<option value="84">84 - Standalone Smart Vibration Sensor</option>
|
|
655
|
+
<option value="89">89 - 2 Channel Ultrasound Vibration Sensor</option>
|
|
656
|
+
<option value="92">92 - Sound Sensor</option>
|
|
657
|
+
<option value="101">101 - Pro Vibration</option>
|
|
658
|
+
<option value="102">102 - Strain Gauge</option>
|
|
659
|
+
<option value="200">200 - 4-20mA Pass Through</option>
|
|
660
|
+
<option value="202">202 - Weather Station</option>
|
|
661
|
+
<option value="502">502 - C_50-27</option>
|
|
662
|
+
<option value="505">505 - Custom_SAP_Current_1C</option>
|
|
663
|
+
<option value="506">506 - Custom_SAP_Current_3C</option>
|
|
664
|
+
<option value="507">507 - Custom_SAP_Current_7C</option>
|
|
665
|
+
<option value="510">510 - GreenLight</option>
|
|
666
|
+
<option value="515">515 - Custom_SAP_Current_48C</option>
|
|
667
|
+
<option value="519">519 - Type 519: Custom Vibration 1</option>
|
|
668
|
+
<option value="520">520 - Type 520: Custom 6 Channel Current Temperature & Humidity</option>
|
|
669
|
+
<option value="10000">10000 - 4-Channel Relay</option>
|
|
670
|
+
<option value="10006">10006 - 4-Channel 4-20 mA Input</option>
|
|
671
|
+
<option value="10007">10007 - 4-Channel Current Monitor</option>
|
|
672
|
+
<option value="10012">10012 - 2-Relay + 2-Input</option>
|
|
662
673
|
</select>
|
|
663
674
|
</div>
|
|
664
675
|
<div class="section">
|
|
@@ -668,7 +679,7 @@
|
|
|
668
679
|
<label for="node-input-auto_config"><i class="icon-tag"></i> Auto Config</label>
|
|
669
680
|
<input class="section-control" type="checkbox" id="node-input-auto_config" value="1">
|
|
670
681
|
</div>
|
|
671
|
-
<div class="form-row ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-101 data-sensor-102 data-sensor-519 data-sensor-520>
|
|
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>
|
|
672
683
|
<hr>
|
|
673
684
|
<label for="node-input-on_the_fly_enable"><i class="icon-tag"></i> OTF Config*</label>
|
|
674
685
|
<input type="checkbox" id="node-input-on_the_fly_enable" value="1">
|
|
@@ -909,7 +920,7 @@
|
|
|
909
920
|
</select>
|
|
910
921
|
</div>
|
|
911
922
|
</div>
|
|
912
|
-
|
|
923
|
+
<div class="ncd-dependent" data-sensor-40>
|
|
913
924
|
<div class="form-row">
|
|
914
925
|
<label for="node-input-filtering"><i class="icon-tag"></i> Data Filtering</label>
|
|
915
926
|
<select id="node-input-filtering">
|
|
@@ -1440,7 +1451,7 @@
|
|
|
1440
1451
|
</div>
|
|
1441
1452
|
</div>
|
|
1442
1453
|
|
|
1443
|
-
<div class="ncd-dependent" data-sensor-14 data-sensor-45 data-sensor-48 data-sensor-52>
|
|
1454
|
+
<div class="ncd-dependent" data-sensor-14 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-89>
|
|
1444
1455
|
<div class="form-row ncd-active-check">
|
|
1445
1456
|
<strong>Sensor Boot Time</strong>
|
|
1446
1457
|
<p class="caption">
|
|
@@ -1458,6 +1469,42 @@
|
|
|
1458
1469
|
</div>
|
|
1459
1470
|
</div>
|
|
1460
1471
|
|
|
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>
|
|
1473
|
+
<div class="form-row ncd-active-check">
|
|
1474
|
+
<strong>Low Calibration Point</strong>
|
|
1475
|
+
<div>
|
|
1476
|
+
<label for="node-input-low_calibration_420ma_active">Active:</label>
|
|
1477
|
+
<input type="checkbox" id="node-input-low_calibration_420ma_active" class="ncd-config-toggle" data-target-id="node-input-low_calibration_420ma" value="1">
|
|
1478
|
+
</div>
|
|
1479
|
+
<div>
|
|
1480
|
+
<label for="node-input-low_calibration_420ma"><i class="icon-tag"></i>Value:</label>
|
|
1481
|
+
<input type="text" id="node-input-low_calibration_420ma" placeholder="68805" value="68805">
|
|
1482
|
+
</div>
|
|
1483
|
+
</div>
|
|
1484
|
+
<div class="form-row ncd-active-check">
|
|
1485
|
+
<strong>Mid Calibration Point</strong>
|
|
1486
|
+
<div>
|
|
1487
|
+
<label for="node-input-mid_calibration_420ma_active">Active:</label>
|
|
1488
|
+
<input type="checkbox" id="node-input-mid_calibration_420ma_active" class="ncd-config-toggle" data-target-id="node-input-mid_calibration_420ma" value="1">
|
|
1489
|
+
</div>
|
|
1490
|
+
<div>
|
|
1491
|
+
<label for="node-input-mid_calibration_420ma"><i class="icon-tag"></i>Value:</label>
|
|
1492
|
+
<input type="text" id="node-input-mid_calibration_420ma" placeholder="68724" value="68724">
|
|
1493
|
+
</div>
|
|
1494
|
+
</div>
|
|
1495
|
+
<div class="form-row ncd-active-check">
|
|
1496
|
+
<strong>High Calibration Point</strong>
|
|
1497
|
+
<div>
|
|
1498
|
+
<label for="node-input-high_calibration_420ma_active">Active:</label>
|
|
1499
|
+
<input type="checkbox" id="node-input-high_calibration_420ma_active" class="ncd-config-toggle" data-target-id="node-input-high_calibration_420ma" value="1">
|
|
1500
|
+
</div>
|
|
1501
|
+
<div>
|
|
1502
|
+
<label for="node-input-high_calibration_420ma"><i class="icon-tag"></i>Value:</label>
|
|
1503
|
+
<input type="text" id="node-input-high_calibration_420ma" placeholder="68714" value="68714">
|
|
1504
|
+
</div>
|
|
1505
|
+
</div>
|
|
1506
|
+
</div>
|
|
1507
|
+
|
|
1461
1508
|
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-505 data-sensor-506>
|
|
1462
1509
|
<div class="form-row ncd-active-check">
|
|
1463
1510
|
<strong>Channel 1 Current Calibration Value</strong>
|
|
@@ -1602,7 +1649,7 @@
|
|
|
1602
1649
|
</script>
|
|
1603
1650
|
|
|
1604
1651
|
<script type="text/x-red" data-help-name="ncd-wireless-node">
|
|
1605
|
-
|
|
1652
|
+
<h3>Wireless Node</h3>
|
|
1606
1653
|
<p>This node is used to filter sensor data coming from a modem. It can filter by mac address, or sensor type, and can be used to configure wireless devices automatically when they enter configuration mode.</p>
|
|
1607
1654
|
<h4>Serial Devices</h4>
|
|
1608
1655
|
<p>The Serial Device field refers to the modem that will be recieving the packets from the device. The Serial Device for Config field refers to a modem that is always set to the config network ID (0x7BCD), this is the recommended setup as it allows you to configure nodes without missing potentially important sensor data, however, the config button on the Wireless Gateway node may be used if a single modem will be acting as both the listener, and config endpoints, making the second selection optional.</p>
|
|
@@ -1615,37 +1662,37 @@
|
|
|
1615
1662
|
<h4>Output</h4>
|
|
1616
1663
|
<p>This node will output detailed information about incoming sensor data, and the device identity and status including. The payload will contain an object containing sensor data, an example can be seen below:</p>
|
|
1617
1664
|
<pre>
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1665
|
+
msg = {
|
|
1666
|
+
topic: "sensor_data",
|
|
1667
|
+
payload: {
|
|
1668
|
+
humidity: 45.51,
|
|
1669
|
+
temperature: 23.91,
|
|
1670
|
+
}
|
|
1671
|
+
data: {
|
|
1672
|
+
nodeId: 0,
|
|
1673
|
+
firmware: 3,
|
|
1674
|
+
battery: 3.2940600000000004,
|
|
1675
|
+
counter: 37,
|
|
1676
|
+
sensor_type: 1,
|
|
1677
|
+
sensor_data: {
|
|
1678
|
+
humidity: 45.51,
|
|
1679
|
+
temperature: 23.91,
|
|
1680
|
+
},
|
|
1681
|
+
type: "sensor_data",
|
|
1682
|
+
addr: "00:13:a2:00:41:07:18:81",
|
|
1683
|
+
original: {
|
|
1684
|
+
mac: "00:13:a2:00:41:07:18:81",
|
|
1685
|
+
receive_options: {
|
|
1686
|
+
ack: 0,
|
|
1687
|
+
broadcast: 0,
|
|
1688
|
+
type: ""
|
|
1689
|
+
}
|
|
1690
|
+
},
|
|
1691
|
+
data: [127,0,3,3,255,37,0,1,0,17,199,9,87],
|
|
1692
|
+
type: "receive_packet"
|
|
1693
|
+
},
|
|
1694
|
+
_msgid: "391caba.5a19454"
|
|
1695
|
+
}
|
|
1649
1696
|
</pre>
|
|
1650
1697
|
</script>
|
|
1651
1698
|
|