@mschaeffler/node-red-logic 4.3.1 → 4.3.3

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('filter',{
2
+ RED.nodes.registerType('lowpass',{
3
3
  category: 'logic',
4
4
  color: "#C0DEED",
5
5
  defaults: {
@@ -18,9 +18,9 @@
18
18
  },
19
19
  inputs:1,
20
20
  outputs:1,
21
- icon:"font-awesome/fa-area-chart",
21
+ icon:"smooth.png",
22
22
  label: function() {
23
- return this.name||this.topic||"filter";
23
+ return this.name||this.topic||"lowPass";
24
24
  },
25
25
  labelStyle: function() {
26
26
  return this.name?"node_label_italic":"";
@@ -38,7 +38,7 @@
38
38
  });
39
39
  </script>
40
40
 
41
- <script type="text/html" data-template-name="filter">
41
+ <script type="text/html" data-template-name="lowpass">
42
42
  <div class="form-row">
43
43
  <label for="node-input-name"><i class="fa fa-tag"></i> name</label>
44
44
  <input type="text" id="node-input-name" placeholder="Name">
@@ -88,7 +88,7 @@
88
88
  </div>
89
89
  </script>
90
90
 
91
- <script type="text/html" data-help-name="filter">
91
+ <script type="text/html" data-help-name="lowpass">
92
92
 
93
93
  <p>Filter the values of one or more data streams wuth an adaptive Kalman filter.</p>
94
94
  <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 FilterNode(config) {
4
+ function LowPassNode(config) {
5
5
  RED.nodes.createNode(this,config);
6
6
  //this.config = config;
7
7
  var node = this;
@@ -147,5 +147,5 @@ module.exports = function(RED) {
147
147
  });
148
148
  }
149
149
 
150
- RED.nodes.registerType("filter",FilterNode);
150
+ RED.nodes.registerType("lowpass",LowPassNode);
151
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mschaeffler/node-red-logic",
3
- "version": "4.3.1",
3
+ "version": "4.3.3",
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
- "filter": "math_filter.js"
36
+ "lowpass": "math_lowpass.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_filter_spec.js\""
44
+ "test": "mocha \"test/math_lowpass_spec.js\""
45
45
  }
46
46
  }