node-red-contrib-periph-pressure 1.5.1 → 1.5.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.
- package/README.md +15 -11
- package/examples/bmp085/demo.json +1 -1
- package/examples/bmp180/demo.json +1 -1
- package/examples/bmp280/demo.json +1 -1
- package/examples/bmp384/demo.json +1 -1
- package/examples/bmp581/demo.json +1 -1
- package/examples/lps22df/demo.json +1 -1
- package/examples/lps22hb/demo.json +1 -1
- package/examples/lps28dfw/demo.json +2 -2
- package/examples/lps33hw/demo.json +1 -1
- package/examples/mpl115a2/demo.json +2 -2
- package/nodes/bmp085/bmp085.html +3 -3
- package/nodes/bmp085/bmp085.js +1 -1
- package/nodes/bmp180/bmp180.html +3 -3
- package/nodes/bmp180/bmp180.js +1 -1
- package/nodes/bmp280/bmp280.html +3 -3
- package/nodes/bmp280/bmp280.js +1 -1
- package/nodes/bmp384/bmp384.html +3 -3
- package/nodes/bmp384/bmp384.js +1 -1
- package/nodes/bmp581/bmp581.html +3 -3
- package/nodes/bmp581/bmp581.js +1 -1
- package/nodes/lps22df/lps22df.html +3 -3
- package/nodes/lps22df/lps22df.js +1 -1
- package/nodes/lps22hb/lps22hb.html +3 -3
- package/nodes/lps22hb/lps22hb.js +1 -1
- package/nodes/lps28dfw/lps28dfw.html +3 -3
- package/nodes/lps28dfw/lps28dfw.js +1 -1
- package/nodes/lps33hw/lps33hw.html +3 -3
- package/nodes/lps33hw/lps33hw.js +1 -1
- package/nodes/mpl115a2/mpl115a2.html +3 -3
- package/nodes/mpl115a2/mpl115a2.js +1 -1
- package/package.json +15 -3
- package/index.js +0 -11
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# node-red-contrib-periph-pressure
|
|
2
2
|
|
|
3
|
-
Node-RED nodes for pressure sensor chips — part of the [Periph](https://github.com/tuhde/Periph) library.
|
|
3
|
+
Node-RED nodes for pressure sensor chips: BMP085, BMP180, BMP280, BMP384, BMP581, LPS22DF, LPS22HB, LPS28DFW, LPS33HW, MPL115A2 — part of the [Periph](https://github.com/tuhde/Periph) library.
|
|
4
|
+
|
|
5
|
+
**Supported chips (10):** BMP085, BMP180, BMP280, BMP384, BMP581, LPS22DF, LPS22HB, LPS28DFW, LPS33HW, MPL115A2.
|
|
6
|
+
|
|
7
|
+
Each chip has a sensor/actuator node plus a shared `-device` config node that holds the bus settings. Importable example flows are in [`examples/`](https://github.com/tuhde/Periph/tree/main/nodejs/packages/node-red-contrib-periph-pressure/examples).
|
|
4
8
|
|
|
5
9
|
## Install
|
|
6
10
|
|
|
@@ -17,25 +21,25 @@ npm install node-red-contrib-periph-pressure
|
|
|
17
21
|
| Node | Kind | Description |
|
|
18
22
|
|------|------|-------------|
|
|
19
23
|
| `bmp085-device` | config | Bus configuration for a BMP085 |
|
|
20
|
-
| `
|
|
24
|
+
| `bmp085` | input | Reads temperature and pressure from a BMP085 barometric pressure sensor over I²C. |
|
|
21
25
|
| `bmp180-device` | config | Bus configuration for a BMP180 |
|
|
22
|
-
| `
|
|
26
|
+
| `bmp180` | input | Reads temperature and pressure from a BMP180 barometric pressure sensor over I²C. |
|
|
23
27
|
| `bmp280-device` | config | Bus configuration for a BMP280 |
|
|
24
|
-
| `
|
|
28
|
+
| `bmp280` | input | Reads temperature, pressure, and altitude from a BMP280 barometric pressure sensor. |
|
|
25
29
|
| `bmp384-device` | config | Bus configuration for a BMP384 |
|
|
26
|
-
| `
|
|
30
|
+
| `bmp384` | input | Reads temperature, pressure, and altitude from a BMP384 barometric pressure sensor. |
|
|
27
31
|
| `bmp581-device` | config | Bus configuration for a BMP581 |
|
|
28
|
-
| `
|
|
32
|
+
| `bmp581` | input | Reads pressure, temperature, and altitude from a BMP581 barometric pressure sensor. |
|
|
29
33
|
| `lps22df-device` | config | Bus configuration for a LPS22DF |
|
|
30
|
-
| `
|
|
34
|
+
| `lps22df` | input | Reads pressure, temperature, and altitude from an LPS22DF absolute pressure sensor. |
|
|
31
35
|
| `lps22hb-device` | config | Bus configuration for a LPS22HB |
|
|
32
|
-
| `
|
|
36
|
+
| `lps22hb` | input | Reads pressure and temperature from an LPS22HB MEMS nano absolute pressure sensor. |
|
|
33
37
|
| `lps28dfw-device` | config | Bus configuration for a LPS28DFW |
|
|
34
|
-
| `
|
|
38
|
+
| `lps28dfw` | input | Reads pressure, temperature, and altitude from an LPS28DFW dual full-scale digital barometer. |
|
|
35
39
|
| `lps33hw-device` | config | Bus configuration for a LPS33HW |
|
|
36
|
-
| `
|
|
40
|
+
| `lps33hw` | input | Reads pressure and temperature from an LPS33HW water-resistant MEMS absolute pressure sensor. |
|
|
37
41
|
| `mpl115a2-device` | config | Bus configuration for a MPL115A2 |
|
|
38
|
-
| `
|
|
42
|
+
| `mpl115a2` | input | Reads the barometric pressure (50–115 kPa) and an approximate temperature from an NXP MPL115A2 over I²C (address 0x60). |
|
|
39
43
|
|
|
40
44
|
## Links
|
|
41
45
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"id": "lps28dfw-read-1",
|
|
16
|
-
"type": "
|
|
16
|
+
"type": "lps28dfw",
|
|
17
17
|
"name": "LPS28DFW Weather",
|
|
18
18
|
"device": "lps28dfw-device-1",
|
|
19
19
|
"seaLevelHpa": "1013.25",
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"type": "tab",
|
|
66
66
|
"label": "LPS28DFW weather",
|
|
67
67
|
"disabled": false,
|
|
68
|
-
"info": "An inject node fires every 5 seconds, triggering the
|
|
68
|
+
"info": "An inject node fires every 5 seconds, triggering the lps28dfw node which reads pressure and temperature from the LPS28DFW dual full-scale digital barometer. The node also computes an estimated altitude from the barometric formula using a configurable sea-level reference (default 1013.25 hPa). The debug tab displays pressure (hPa), temperature (°C), and altitude (m). Adjust the lps28dfw-device config node to switch between Mode 1 (0–1260 hPa) and Mode 2 (0–4060 hPa) full-scale, change the averaging depth (4 to 512 samples), set the output data rate, and enable/disable the IIR low-pass filter."
|
|
69
69
|
}
|
|
70
70
|
]
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "tab",
|
|
5
5
|
"label": "MPL115A2 demo",
|
|
6
6
|
"disabled": false,
|
|
7
|
-
"info": "Barometer: an inject node triggers a conversion every 5 s; the
|
|
7
|
+
"info": "Barometer: an inject node triggers a conversion every 5 s; the mpl115a2 node outputs { pressure_pa, temperature_c }; a function node converts the pressure to hPa for the debug sidebar."
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"id": "mpl115a2-device-1",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"id": "mpl115a2-read-1",
|
|
17
|
-
"type": "
|
|
17
|
+
"type": "mpl115a2",
|
|
18
18
|
"z": "mpl115a2-tab",
|
|
19
19
|
"name": "MPL115A2",
|
|
20
20
|
"device": "mpl115a2-device-1",
|
package/nodes/bmp085/bmp085.html
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
<!-- Read node: trigger → measurements -->
|
|
37
37
|
<script type="text/javascript">
|
|
38
|
-
RED.nodes.registerType('
|
|
38
|
+
RED.nodes.registerType('bmp085', {
|
|
39
39
|
category: 'Peripheral',
|
|
40
40
|
color: '#C084FC',
|
|
41
41
|
defaults: {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
});
|
|
52
52
|
</script>
|
|
53
53
|
|
|
54
|
-
<script type="text/html" data-template-name="
|
|
54
|
+
<script type="text/html" data-template-name="bmp085">
|
|
55
55
|
<div class="form-row">
|
|
56
56
|
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
57
57
|
<input type="text" id="node-input-device">
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
</div>
|
|
67
67
|
</script>
|
|
68
68
|
|
|
69
|
-
<script type="text/html" data-help-name="
|
|
69
|
+
<script type="text/html" data-help-name="bmp085">
|
|
70
70
|
<p>Reads temperature and pressure from a BMP085 barometric pressure sensor over I²C.</p>
|
|
71
71
|
<p>Any input message triggers a measurement. The device is configured via a <b>bmp085-device</b> config node.</p>
|
|
72
72
|
|
package/nodes/bmp085/bmp085.js
CHANGED
package/nodes/bmp180/bmp180.html
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
<!-- Read node: trigger → measurements -->
|
|
37
37
|
<script type="text/javascript">
|
|
38
|
-
RED.nodes.registerType('
|
|
38
|
+
RED.nodes.registerType('bmp180', {
|
|
39
39
|
category: 'Peripheral',
|
|
40
40
|
color: '#C084FC',
|
|
41
41
|
defaults: {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
});
|
|
52
52
|
</script>
|
|
53
53
|
|
|
54
|
-
<script type="text/html" data-template-name="
|
|
54
|
+
<script type="text/html" data-template-name="bmp180">
|
|
55
55
|
<div class="form-row">
|
|
56
56
|
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
57
57
|
<input type="text" id="node-input-device">
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
</div>
|
|
67
67
|
</script>
|
|
68
68
|
|
|
69
|
-
<script type="text/html" data-help-name="
|
|
69
|
+
<script type="text/html" data-help-name="bmp180">
|
|
70
70
|
<p>Reads temperature and pressure from a BMP180 barometric pressure sensor over I²C.</p>
|
|
71
71
|
<p>Any input message triggers a measurement. The device is configured via a <b>bmp180-device</b> config node.</p>
|
|
72
72
|
|
package/nodes/bmp180/bmp180.js
CHANGED
package/nodes/bmp280/bmp280.html
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
<!-- Read node: trigger → measurements -->
|
|
92
92
|
<script type="text/javascript">
|
|
93
|
-
RED.nodes.registerType('
|
|
93
|
+
RED.nodes.registerType('bmp280', {
|
|
94
94
|
category: 'Peripheral',
|
|
95
95
|
color: '#C084FC',
|
|
96
96
|
defaults: {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
});
|
|
107
107
|
</script>
|
|
108
108
|
|
|
109
|
-
<script type="text/html" data-template-name="
|
|
109
|
+
<script type="text/html" data-template-name="bmp280">
|
|
110
110
|
<div class="form-row">
|
|
111
111
|
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
112
112
|
<input type="text" id="node-input-device">
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
</div>
|
|
122
122
|
</script>
|
|
123
123
|
|
|
124
|
-
<script type="text/html" data-help-name="
|
|
124
|
+
<script type="text/html" data-help-name="bmp280">
|
|
125
125
|
<p>Reads temperature, pressure, and altitude from a BMP280 barometric pressure sensor.</p>
|
|
126
126
|
<p>Any input message triggers a measurement. The device is configured via a <b>bmp280-device</b> config node.</p>
|
|
127
127
|
|
package/nodes/bmp280/bmp280.js
CHANGED
package/nodes/bmp384/bmp384.html
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
<!-- Read node: trigger → measurements -->
|
|
92
92
|
<script type="text/javascript">
|
|
93
|
-
RED.nodes.registerType('
|
|
93
|
+
RED.nodes.registerType('bmp384', {
|
|
94
94
|
category: 'Peripheral',
|
|
95
95
|
color: '#C084FC',
|
|
96
96
|
defaults: {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
});
|
|
107
107
|
</script>
|
|
108
108
|
|
|
109
|
-
<script type="text/html" data-template-name="
|
|
109
|
+
<script type="text/html" data-template-name="bmp384">
|
|
110
110
|
<div class="form-row">
|
|
111
111
|
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
112
112
|
<input type="text" id="node-input-device">
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
</div>
|
|
122
122
|
</script>
|
|
123
123
|
|
|
124
|
-
<script type="text/html" data-help-name="
|
|
124
|
+
<script type="text/html" data-help-name="bmp384">
|
|
125
125
|
<p>Reads temperature, pressure, and altitude from a BMP384 barometric pressure sensor.</p>
|
|
126
126
|
<p>Any input message triggers a measurement. The device is configured via a <b>bmp384-device</b> config node.</p>
|
|
127
127
|
|
package/nodes/bmp384/bmp384.js
CHANGED
package/nodes/bmp581/bmp581.html
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
|
|
84
84
|
<!-- Read node: trigger → measurements -->
|
|
85
85
|
<script type="text/javascript">
|
|
86
|
-
RED.nodes.registerType('
|
|
86
|
+
RED.nodes.registerType('bmp581', {
|
|
87
87
|
category: 'Peripheral',
|
|
88
88
|
color: '#C084FC',
|
|
89
89
|
defaults: {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
});
|
|
100
100
|
</script>
|
|
101
101
|
|
|
102
|
-
<script type="text/html" data-template-name="
|
|
102
|
+
<script type="text/html" data-template-name="bmp581">
|
|
103
103
|
<div class="form-row">
|
|
104
104
|
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
105
105
|
<input type="text" id="node-input-device">
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</div>
|
|
115
115
|
</script>
|
|
116
116
|
|
|
117
|
-
<script type="text/html" data-help-name="
|
|
117
|
+
<script type="text/html" data-help-name="bmp581">
|
|
118
118
|
<p>Reads pressure, temperature, and altitude from a BMP581 barometric pressure sensor.</p>
|
|
119
119
|
<p>Any input message triggers a measurement. The device is configured via a <b>bmp581-device</b> config node.</p>
|
|
120
120
|
|
package/nodes/bmp581/bmp581.js
CHANGED
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
|
|
80
80
|
<!--Read node: trigger -> measurements -->
|
|
81
81
|
<script type="text/javascript">
|
|
82
|
-
RED.nodes.registerType('
|
|
82
|
+
RED.nodes.registerType('lps22df', {
|
|
83
83
|
category: 'Peripheral',
|
|
84
84
|
color: '#C084FC',
|
|
85
85
|
defaults: {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
});
|
|
96
96
|
</script>
|
|
97
97
|
|
|
98
|
-
<script type="text/html" data-template-name="
|
|
98
|
+
<script type="text/html" data-template-name="lps22df">
|
|
99
99
|
<div class="form-row">
|
|
100
100
|
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
101
101
|
<input type="text" id="node-input-device">
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
</div>
|
|
111
111
|
</script>
|
|
112
112
|
|
|
113
|
-
<script type="text/html" data-help-name="
|
|
113
|
+
<script type="text/html" data-help-name="lps22df">
|
|
114
114
|
<p>Reads pressure, temperature, and altitude from an LPS22DF absolute pressure sensor.</p>
|
|
115
115
|
<p>Any input message triggers a measurement. The device is configured via an <b>lps22df-device</b> config node.</p>
|
|
116
116
|
|
package/nodes/lps22df/lps22df.js
CHANGED
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
|
|
86
86
|
<!-- Read node: trigger → measurements -->
|
|
87
87
|
<script type="text/javascript">
|
|
88
|
-
RED.nodes.registerType('
|
|
88
|
+
RED.nodes.registerType('lps22hb', {
|
|
89
89
|
category: 'Peripheral',
|
|
90
90
|
color: '#C084FC',
|
|
91
91
|
defaults: {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
});
|
|
101
101
|
</script>
|
|
102
102
|
|
|
103
|
-
<script type="text/html" data-template-name="
|
|
103
|
+
<script type="text/html" data-template-name="lps22hb">
|
|
104
104
|
<div class="form-row">
|
|
105
105
|
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
106
106
|
<input type="text" id="node-input-device">
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
</div>
|
|
112
112
|
</script>
|
|
113
113
|
|
|
114
|
-
<script type="text/html" data-help-name="
|
|
114
|
+
<script type="text/html" data-help-name="lps22hb">
|
|
115
115
|
<p>Reads pressure and temperature from an LPS22HB MEMS nano absolute pressure sensor.</p>
|
|
116
116
|
<p>Any input message triggers a measurement. The device is configured via a <b>lps22hb-device</b> config node.</p>
|
|
117
117
|
|
package/nodes/lps22hb/lps22hb.js
CHANGED
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
|
|
86
86
|
<!-- Read node: trigger → measurements -->
|
|
87
87
|
<script type="text/javascript">
|
|
88
|
-
RED.nodes.registerType('
|
|
88
|
+
RED.nodes.registerType('lps28dfw', {
|
|
89
89
|
category: 'Peripheral',
|
|
90
90
|
color: '#C084FC',
|
|
91
91
|
defaults: {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
});
|
|
102
102
|
</script>
|
|
103
103
|
|
|
104
|
-
<script type="text/html" data-template-name="
|
|
104
|
+
<script type="text/html" data-template-name="lps28dfw">
|
|
105
105
|
<div class="form-row">
|
|
106
106
|
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
107
107
|
<input type="text" id="node-input-device">
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
</script>
|
|
118
118
|
|
|
119
|
-
<script type="text/html" data-help-name="
|
|
119
|
+
<script type="text/html" data-help-name="lps28dfw">
|
|
120
120
|
<p>Reads pressure, temperature, and altitude from an LPS28DFW dual full-scale digital barometer.</p>
|
|
121
121
|
<p>Any input message triggers a measurement. The device is configured via an <b>lps28dfw-device</b> config node.</p>
|
|
122
122
|
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
|
|
86
86
|
<!-- Read node: trigger → measurements -->
|
|
87
87
|
<script type="text/javascript">
|
|
88
|
-
RED.nodes.registerType('
|
|
88
|
+
RED.nodes.registerType('lps33hw', {
|
|
89
89
|
category: 'Peripheral',
|
|
90
90
|
color: '#C084FC',
|
|
91
91
|
defaults: {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
});
|
|
101
101
|
</script>
|
|
102
102
|
|
|
103
|
-
<script type="text/html" data-template-name="
|
|
103
|
+
<script type="text/html" data-template-name="lps33hw">
|
|
104
104
|
<div class="form-row">
|
|
105
105
|
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
106
106
|
<input type="text" id="node-input-device">
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
</div>
|
|
112
112
|
</script>
|
|
113
113
|
|
|
114
|
-
<script type="text/html" data-help-name="
|
|
114
|
+
<script type="text/html" data-help-name="lps33hw">
|
|
115
115
|
<p>Reads pressure and temperature from an LPS33HW water-resistant MEMS absolute pressure sensor.</p>
|
|
116
116
|
<p>Any input message triggers a measurement. The device is configured via a <b>lps33hw-device</b> config node.</p>
|
|
117
117
|
|
package/nodes/lps33hw/lps33hw.js
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
<!-- Read node: trigger → measurements -->
|
|
27
27
|
<script type="text/javascript">
|
|
28
|
-
RED.nodes.registerType('
|
|
28
|
+
RED.nodes.registerType('mpl115a2', {
|
|
29
29
|
category: 'Peripheral',
|
|
30
30
|
color: '#C084FC',
|
|
31
31
|
defaults: {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
});
|
|
41
41
|
</script>
|
|
42
42
|
|
|
43
|
-
<script type="text/html" data-template-name="
|
|
43
|
+
<script type="text/html" data-template-name="mpl115a2">
|
|
44
44
|
<div class="form-row">
|
|
45
45
|
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
46
46
|
<input type="text" id="node-input-device">
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
</div>
|
|
52
52
|
</script>
|
|
53
53
|
|
|
54
|
-
<script type="text/html" data-help-name="
|
|
54
|
+
<script type="text/html" data-help-name="mpl115a2">
|
|
55
55
|
<p>Reads the barometric pressure (50–115 kPa) and an approximate temperature from an NXP MPL115A2 over I²C (address 0x60).</p>
|
|
56
56
|
<p>Any input message triggers one conversion (about 5 ms). The device is configured via an <b>mpl115a2-device</b> config node.</p>
|
|
57
57
|
|
package/package.json
CHANGED
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-periph-pressure",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "Node-RED nodes for pressure sensor chips",
|
|
3
|
+
"version": "1.5.3",
|
|
4
|
+
"description": "Node-RED nodes for pressure sensor chips: BMP085, BMP180, BMP280, BMP384, BMP581, LPS22DF, LPS22HB, LPS28DFW, LPS33HW, MPL115A2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-red",
|
|
7
7
|
"pressure",
|
|
8
8
|
"i2c",
|
|
9
9
|
"spi",
|
|
10
10
|
"sensor",
|
|
11
|
-
"peripheral"
|
|
11
|
+
"peripheral",
|
|
12
|
+
"node-red-contrib",
|
|
13
|
+
"bmp085",
|
|
14
|
+
"bmp180",
|
|
15
|
+
"bmp280",
|
|
16
|
+
"bmp384",
|
|
17
|
+
"bmp581",
|
|
18
|
+
"lps22df",
|
|
19
|
+
"lps22hb",
|
|
20
|
+
"lps28dfw",
|
|
21
|
+
"lps33hw",
|
|
22
|
+
"mpl115a2"
|
|
12
23
|
],
|
|
13
24
|
"node-red": {
|
|
25
|
+
"version": ">=3.0.0",
|
|
14
26
|
"nodes": {
|
|
15
27
|
"bmp085": "nodes/bmp085/bmp085.js",
|
|
16
28
|
"bmp180": "nodes/bmp180/bmp180.js",
|
package/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
module.exports = function(RED) {
|
|
5
|
-
const nodesDir = path.join(__dirname, 'nodes');
|
|
6
|
-
if (!fs.existsSync(nodesDir)) return;
|
|
7
|
-
fs.readdirSync(nodesDir).forEach(function(chip) {
|
|
8
|
-
const nodeFile = path.join(nodesDir, chip, chip + '.js');
|
|
9
|
-
if (fs.existsSync(nodeFile)) require(nodeFile)(RED);
|
|
10
|
-
});
|
|
11
|
-
};
|