@mschaeffler/node-red-logic 3.1.3 → 3.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/counter.html +1 -1
- package/logic_and.html +1 -1
- package/logic_bool.html +1 -1
- package/logic_not.html +1 -1
- package/logic_or.html +1 -1
- package/math_falling.html +3 -3
- package/math_hysteresis.html +5 -5
- package/math_mean.html +7 -7
- package/math_minus.html +1 -1
- package/math_number.html +1 -1
- package/math_reduce.html +1 -1
- package/math_rising.html +5 -5
- package/math_statistics.html +1 -1
- package/package.json +1 -1
package/counter.html
CHANGED
package/logic_and.html
CHANGED
package/logic_bool.html
CHANGED
package/logic_not.html
CHANGED
package/logic_or.html
CHANGED
package/math_falling.html
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script type="text/javascript">
|
|
2
2
|
RED.nodes.registerType('fallingEdge',{
|
|
3
|
-
category: '
|
|
3
|
+
category: 'logic',
|
|
4
4
|
color: "#C0DEED",
|
|
5
5
|
defaults: {
|
|
6
6
|
name:{value:""},
|
|
7
7
|
property:{value:"payload",required:true},
|
|
8
8
|
propertyType:{value:"msg"},
|
|
9
9
|
threshold:{value:"",required:true,validate:RED.validators.number()},
|
|
10
|
-
consecutive:{value:
|
|
10
|
+
consecutive:{value:1,required:true,validate:RED.validators.number()},
|
|
11
11
|
output:{value:true,required:true},
|
|
12
12
|
outputType:{value:"bool"},
|
|
13
13
|
showState:{value:false}
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
</div>
|
|
56
56
|
<div class="form-row">
|
|
57
57
|
<label for="node-input-consecutive"><i class="fa fa-line-chart"></i> Consecutive</label>
|
|
58
|
-
<input type="
|
|
58
|
+
<input type="number" id="node-input-consecutive">
|
|
59
59
|
</div>
|
|
60
60
|
<div class="form-row">
|
|
61
61
|
<label for="node-input-output"><i class="fa fa-sign-out"></i> Output</label>
|
package/math_hysteresis.html
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script type="text/javascript">
|
|
2
2
|
RED.nodes.registerType('hysteresisEdge',{
|
|
3
|
-
category: '
|
|
3
|
+
category: 'logic',
|
|
4
4
|
color: "#C0DEED",
|
|
5
5
|
defaults: {
|
|
6
6
|
name:{value:""},
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
const raise = $("#node-input-threshold_raise").length ? $("#node-input-threshold_raise").val() : this.threshold_raise;
|
|
12
12
|
return v!=='' && !isNaN(v) && Number(v)<raise;}
|
|
13
13
|
},
|
|
14
|
-
consecutive:{value:
|
|
15
|
-
consecutiveFall:{value:
|
|
14
|
+
consecutive:{value:1,required:true,validate:RED.validators.number()},
|
|
15
|
+
consecutiveFall:{value:1,required:true,validate:RED.validators.number()},
|
|
16
16
|
outputRise:{value:true,required:true},
|
|
17
17
|
outputRiseType:{value:"bool"},
|
|
18
18
|
outputFall:{value:false,required:true},
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
</div>
|
|
72
72
|
<div class="form-row">
|
|
73
73
|
<label for="node-input-consecutive"><i class="fa fa-line-chart"></i> rise Consecutive</label>
|
|
74
|
-
<input type="
|
|
74
|
+
<input type="number" id="node-input-consecutive">
|
|
75
75
|
</div>
|
|
76
76
|
<div class="form-row">
|
|
77
77
|
<label for="node-input-consecutiveFall"><i class="fa fa-line-chart"></i> fall Consecutive</label>
|
|
78
|
-
<input type="
|
|
78
|
+
<input type="number" id="node-input-consecutiveFall">
|
|
79
79
|
</div>
|
|
80
80
|
<div class="form-row">
|
|
81
81
|
<label for="node-input-outputRise"><i class="fa fa-sign-out"></i> rise Output</label>
|
package/math_mean.html
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script type="text/javascript">
|
|
2
2
|
RED.nodes.registerType('mean',{
|
|
3
|
-
category: '
|
|
3
|
+
category: 'logic',
|
|
4
4
|
color: "#C0DEED",
|
|
5
5
|
defaults: {
|
|
6
6
|
name:{value:""},
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
minData:{value:"1", required:true, validate:function(v){
|
|
13
13
|
return v!=='' && !isNaN(v) && Number(v)>0;}
|
|
14
14
|
},
|
|
15
|
-
filter:{value:
|
|
16
|
-
filterVal:{value:
|
|
17
|
-
filterMul:{value:
|
|
15
|
+
filter:{value:0, validate:RED.validators.number()},
|
|
16
|
+
filterVal:{value:0, validate:RED.validators.number()},
|
|
17
|
+
filterMul:{value:10, validate:RED.validators.number()},
|
|
18
18
|
zeroIsZero:{value:false},
|
|
19
19
|
showState:{value:false}
|
|
20
20
|
},
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
</div>
|
|
60
60
|
<div class="form-row">
|
|
61
61
|
<label for="node-input-filter"><i class="fa fa-filter "></i> Filterzeit</label>
|
|
62
|
-
<input type="
|
|
62
|
+
<input type="number" id="node-input-filter">
|
|
63
63
|
</div>
|
|
64
64
|
<div class="form-row">
|
|
65
65
|
<label for="node-input-filterVal"><i class="fa fa-filter "></i> Filter Wert</label>
|
|
66
|
-
<input type="
|
|
66
|
+
<input type="number" id="node-input-filterVal">
|
|
67
67
|
</div>
|
|
68
68
|
<div class="form-row">
|
|
69
69
|
<label for="node-input-filterMul"><i class="fa fa-filter "></i> Filter Wiederholungsfaktor</label>
|
|
70
|
-
<input type="
|
|
70
|
+
<input type="number" id="node-input-filterMul">
|
|
71
71
|
</div>
|
|
72
72
|
<div class="form-row">
|
|
73
73
|
<label for="node-input-zeroIsZero"><i class="fa fa-exclamation-circle"></i> Null ist Null</label>
|
package/math_minus.html
CHANGED
package/math_number.html
CHANGED
package/math_reduce.html
CHANGED
package/math_rising.html
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script type="text/javascript">
|
|
2
2
|
RED.nodes.registerType('raisingEdge',{
|
|
3
|
-
category: '
|
|
3
|
+
category: 'logic',
|
|
4
4
|
color: "#C0DEED",
|
|
5
5
|
defaults: {
|
|
6
6
|
name:{value:""},
|
|
7
7
|
property:{value:"payload",required:true},
|
|
8
8
|
propertyType:{value:"msg"},
|
|
9
|
-
threshold:{value:
|
|
10
|
-
consecutive:{value:
|
|
9
|
+
threshold:{value:1,required:true,validate:RED.validators.number()},
|
|
10
|
+
consecutive:{value:1,required:true,validate:RED.validators.number()},
|
|
11
11
|
output:{value:true,required:true},
|
|
12
12
|
outputType:{value:"bool"},
|
|
13
13
|
showState:{value:false}
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
</div>
|
|
52
52
|
<div class="form-row">
|
|
53
53
|
<label for="node-input-threshold"><i class="fa fa-chevron-up"></i> Threshold</label>
|
|
54
|
-
<input type="
|
|
54
|
+
<input type="number" id="node-input-threshold">
|
|
55
55
|
</div>
|
|
56
56
|
<div class="form-row">
|
|
57
57
|
<label for="node-input-consecutive"><i class="fa fa-line-chart"></i> Consecutive</label>
|
|
58
|
-
<input type="
|
|
58
|
+
<input type="number" id="node-input-consecutive">
|
|
59
59
|
</div>
|
|
60
60
|
<div class="form-row">
|
|
61
61
|
<label for="node-input-output"><i class="fa fa-sign-out"></i> Output</label>
|
package/math_statistics.html
CHANGED
package/package.json
CHANGED