@mschaeffler/node-red-logic 4.2.0 → 4.3.0

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.
@@ -1,5 +1,5 @@
1
1
  <script type="text/javascript">
2
- RED.nodes.registerType('kalman',{
2
+ RED.nodes.registerType('filter',{
3
3
  category: 'logic',
4
4
  color: "#C0DEED",
5
5
  defaults: {
@@ -28,7 +28,7 @@
28
28
  outputs:1,
29
29
  icon:"font-awesome/fa-area-chart",
30
30
  label: function() {
31
- return this.name||this.topic||"kalman";
31
+ return this.name||this.topic||"filter";
32
32
  },
33
33
  labelStyle: function() {
34
34
  return this.name?"node_label_italic":"";
@@ -63,7 +63,7 @@
63
63
  });
64
64
  </script>
65
65
 
66
- <script type="text/html" data-template-name="kalman">
66
+ <script type="text/html" data-template-name="filter">
67
67
  <div class="form-row">
68
68
  <label for="node-input-name"><i class="fa fa-tag"></i> name</label>
69
69
  <input type="text" id="node-input-name" placeholder="Name">
@@ -144,7 +144,7 @@
144
144
  </div>
145
145
  </script>
146
146
 
147
- <script type="text/html" data-help-name="kalman">
147
+ <script type="text/html" data-help-name="filter">
148
148
 
149
149
  <p>Filter the values of one or more data streams wuth an adaptive Kalman filter.</p>
150
150
  <p>If the msg property <code>invalid</code> is present in the message, all nodes ignore the message.</p>
@@ -1,7 +1,7 @@
1
1
  module.exports = function(RED) {
2
2
  var tools = require('./tools.js');
3
3
 
4
- function KalmanNode(config) {
4
+ function FilterNode(config) {
5
5
  RED.nodes.createNode(this,config);
6
6
  //this.config = config;
7
7
  var node = this;
@@ -219,5 +219,5 @@ module.exports = function(RED) {
219
219
  });
220
220
  }
221
221
 
222
- RED.nodes.registerType("kalman",KalmanNode);
222
+ RED.nodes.registerType("filter",FilterNode);
223
223
  }
package/math_mean.html CHANGED
@@ -99,7 +99,7 @@
99
99
  </div>
100
100
  <div class="form-row">
101
101
  <label for="node-input-decimals"><i class="fa fa-sort-numeric-asc"></i> Nachkommastellen</label>
102
- <input type="text" id="node-input-decimals">
102
+ <input type="number" id="node-input-decimals">
103
103
  </div>
104
104
  <div class="form-row">
105
105
  <label for="node-input-zeroIsZero"><i class="fa fa-exclamation-circle"></i> Null ist Null</label>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mschaeffler/node-red-logic",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "nodes for simple operations.",
5
5
  "license": "LGPL-2.1",
6
6
  "homepage": "https://github.com/m-schaeffler/node-red-my-nodes/tree/main/node-red-logic",
@@ -33,7 +33,7 @@
33
33
  "threePoint": "math_3point.js",
34
34
  "statistics": "math_statistics.js",
35
35
  "mean": "math_mean.js",
36
- "kalman": "math_kalman.js"
36
+ "filter": "math_filter.js"
37
37
  }
38
38
  },
39
39
  "author": {
@@ -41,6 +41,6 @@
41
41
  "url": "https://github.com/m-schaeffler"
42
42
  },
43
43
  "scripts": {
44
- "test": "mocha \"test/math_kalman_spec.js\""
44
+ "test": "mocha \"test/math_filter_spec.js\""
45
45
  }
46
46
  }