@ncd-io/node-red-enterprise-sensors 1.1.4 → 1.1.5
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/package.json +1 -1
- package/wireless.html +14 -1
package/package.json
CHANGED
package/wireless.html
CHANGED
|
@@ -146,6 +146,19 @@
|
|
|
146
146
|
return int >= l && int <= h;
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
+
if(property_name === 'acceleration_interrupt_threshold_84'){
|
|
150
|
+
return function(v){
|
|
151
|
+
var int = parseInt(v, base);
|
|
152
|
+
if(this.acceleration_interrupt_threshold_84 == 0){
|
|
153
|
+
console.log('ERROR: Invalid property detect. Setting smart_threshold_110 to default value');
|
|
154
|
+
$("#node-input-acceleration_interrupt_threshold_84").val(0);
|
|
155
|
+
return true;
|
|
156
|
+
} else if(v == undefined){
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
return int >= l && int <= h;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
149
162
|
if(base == 'decimal'){
|
|
150
163
|
return function(v){
|
|
151
164
|
var n = parseFloat(v);
|
|
@@ -656,7 +669,7 @@
|
|
|
656
669
|
high_pass_filter_p2_110: {value:0},
|
|
657
670
|
|
|
658
671
|
acceleration_interrupt_threshold_84_active: {value: ""},
|
|
659
|
-
acceleration_interrupt_threshold_84: {value: 0, validate: NCD_validators.number_range(0, 40)},
|
|
672
|
+
acceleration_interrupt_threshold_84: {value: 0, validate: NCD_validators.number_range(0, 40, 10, 'acceleration_interrupt_threshold_84')},
|
|
660
673
|
|
|
661
674
|
motion_detect_threshold_p1_110_active: {value: ""},
|
|
662
675
|
motion_detect_threshold_p1_110: {value: 0, validate: NCD_validators.number_range(0, 40)},
|