node-red-contrib-periph-gas 1.5.4 → 1.6.1
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 +12 -2
- package/examples/ccs811/demo.json +136 -0
- package/examples/rrh46410/demo.json +136 -0
- package/examples/rrh62000/demo.json +194 -0
- package/examples/scd30/demo.json +194 -0
- package/examples/scd40/demo.json +195 -0
- package/nodes/ccs811/ccs811.html +105 -0
- package/nodes/ccs811/ccs811.js +59 -0
- package/nodes/rrh46410/rrh46410.html +108 -0
- package/nodes/rrh46410/rrh46410.js +61 -0
- package/nodes/rrh62000/rrh62000.html +104 -0
- package/nodes/rrh62000/rrh62000.js +60 -0
- package/nodes/scd30/scd30.html +95 -0
- package/nodes/scd30/scd30.js +65 -0
- package/nodes/scd40/scd40.html +106 -0
- package/nodes/scd40/scd40.js +67 -0
- package/package.json +14 -4
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = function(RED) {
|
|
4
|
+
const { I2CConnection } = require('periph/src/connection/i2c');
|
|
5
|
+
const { RRH62000Full } = require('periph/src/chips/gas/rrh62000');
|
|
6
|
+
|
|
7
|
+
function RRH62000DeviceNode(config) {
|
|
8
|
+
RED.nodes.createNode(this, config);
|
|
9
|
+
const node = this;
|
|
10
|
+
try {
|
|
11
|
+
const connection = new I2CConnection(parseInt(config.bus), 0x69);
|
|
12
|
+
node.connection = connection;
|
|
13
|
+
node.driver = new RRH62000Full(connection);
|
|
14
|
+
node.ready = (async () => {
|
|
15
|
+
await node.driver.init();
|
|
16
|
+
const average = parseInt(config.movingAverage);
|
|
17
|
+
if (!isNaN(average) && average !== 10) await node.driver.setMovingAverage(average);
|
|
18
|
+
const fan = parseInt(config.fanSpeed);
|
|
19
|
+
if (!isNaN(fan) && fan !== 86) await node.driver.setFanSpeed(fan);
|
|
20
|
+
})();
|
|
21
|
+
node.ready.catch((e) => {
|
|
22
|
+
node.error('RRH62000 init failed: ' + e.message);
|
|
23
|
+
});
|
|
24
|
+
} catch (e) {
|
|
25
|
+
node.error('RRH62000 init failed: ' + e.message);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
node.on('close', function() {
|
|
29
|
+
if (node.connection) node.connection.close();
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
RED.nodes.registerType('rrh62000-device', RRH62000DeviceNode);
|
|
33
|
+
|
|
34
|
+
function RRH62000ReadNode(config) {
|
|
35
|
+
RED.nodes.createNode(this, config);
|
|
36
|
+
const node = this;
|
|
37
|
+
const deviceNode = RED.nodes.getNode(config.device) || {};
|
|
38
|
+
let busy = Promise.resolve();
|
|
39
|
+
|
|
40
|
+
node.on('input', function(msg, send, done) {
|
|
41
|
+
if (!deviceNode.driver) {
|
|
42
|
+
node.error('RRH62000 not initialised', msg);
|
|
43
|
+
done();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
// The module allows one access per second; serialise overlapping messages.
|
|
47
|
+
busy = busy.then(async () => {
|
|
48
|
+
try {
|
|
49
|
+
await deviceNode.ready;
|
|
50
|
+
msg.payload = await deviceNode.driver.read();
|
|
51
|
+
send(msg);
|
|
52
|
+
done();
|
|
53
|
+
} catch (e) {
|
|
54
|
+
done(e);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
RED.nodes.registerType('rrh62000', RRH62000ReadNode);
|
|
60
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<!-- Config node: one instance per physical device -->
|
|
2
|
+
<script type="text/javascript">
|
|
3
|
+
RED.nodes.registerType('scd30-device', {
|
|
4
|
+
category: 'config',
|
|
5
|
+
defaults: {
|
|
6
|
+
name: { value: '' },
|
|
7
|
+
bus: { value: '1', required: true, validate: RED.validators.number() },
|
|
8
|
+
interval: { value: '2', validate: RED.validators.number() },
|
|
9
|
+
altitude: { value: '0', validate: RED.validators.number() }
|
|
10
|
+
},
|
|
11
|
+
label: function() {
|
|
12
|
+
return this.name || ('SCD30 @ 0x61 (bus ' + this.bus + ')');
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<script type="text/html" data-template-name="scd30-device">
|
|
18
|
+
<div class="form-row">
|
|
19
|
+
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
20
|
+
<input type="text" id="node-config-input-name" placeholder="SCD30">
|
|
21
|
+
</div>
|
|
22
|
+
<div class="form-row">
|
|
23
|
+
<label for="node-config-input-bus"><i class="fa fa-microchip"></i> I²C bus</label>
|
|
24
|
+
<input type="number" id="node-config-input-bus" min="0" style="width:80px"> (Linux /dev/i2c-N, address 0x61)
|
|
25
|
+
</div>
|
|
26
|
+
<div class="form-row">
|
|
27
|
+
<label for="node-config-input-interval"><i class="fa fa-clock-o"></i> Interval</label>
|
|
28
|
+
<input type="number" id="node-config-input-interval" min="2" max="1800" style="width:80px"> s (2–1800)
|
|
29
|
+
</div>
|
|
30
|
+
<div class="form-row">
|
|
31
|
+
<label for="node-config-input-altitude"><i class="fa fa-area-chart"></i> Altitude</label>
|
|
32
|
+
<input type="number" id="node-config-input-altitude" min="0" max="65535" style="width:80px"> m above sea level
|
|
33
|
+
</div>
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<!-- Read node -->
|
|
37
|
+
<script type="text/javascript">
|
|
38
|
+
RED.nodes.registerType('scd30', {
|
|
39
|
+
category: 'Peripheral',
|
|
40
|
+
color: '#C084FC',
|
|
41
|
+
defaults: {
|
|
42
|
+
name: { value: '' },
|
|
43
|
+
device: { value: '', type: 'scd30-device', required: true }
|
|
44
|
+
},
|
|
45
|
+
inputs: 1,
|
|
46
|
+
outputs: 1,
|
|
47
|
+
icon: 'bridge.svg',
|
|
48
|
+
label: function() { return this.name || 'SCD30'; },
|
|
49
|
+
paletteLabel: 'SCD30'
|
|
50
|
+
});
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<script type="text/html" data-template-name="scd30">
|
|
54
|
+
<div class="form-row">
|
|
55
|
+
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
56
|
+
<input type="text" id="node-input-name" placeholder="SCD30">
|
|
57
|
+
</div>
|
|
58
|
+
<div class="form-row">
|
|
59
|
+
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
60
|
+
<input type="text" id="node-input-device">
|
|
61
|
+
</div>
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<script type="text/html" data-help-name="scd30">
|
|
65
|
+
<p>Reads CO₂, temperature and humidity from a Sensirion SCD30 NDIR CO₂ sensor module over I²C (address 0x61),
|
|
66
|
+
one sample per message.</p>
|
|
67
|
+
<h3>Inputs</h3>
|
|
68
|
+
<dl class="message-properties">
|
|
69
|
+
<dt>payload <span class="property-type">any</span></dt>
|
|
70
|
+
<dd>Any incoming message waits for the next sample (one per measurement interval) and returns it.</dd>
|
|
71
|
+
</dl>
|
|
72
|
+
<h3>Outputs</h3>
|
|
73
|
+
<dl class="message-properties">
|
|
74
|
+
<dt>payload.co2_ppm <span class="property-type">number</span></dt>
|
|
75
|
+
<dd>CO₂ concentration in ppm (0–40 000).</dd>
|
|
76
|
+
<dt>payload.temperature_c <span class="property-type">number</span></dt>
|
|
77
|
+
<dd>Temperature in °C (temperature offset applied).</dd>
|
|
78
|
+
<dt>payload.humidity_rh <span class="property-type">number</span></dt>
|
|
79
|
+
<dd>Relative humidity in %RH.</dd>
|
|
80
|
+
</dl>
|
|
81
|
+
<h3>Configuration</h3>
|
|
82
|
+
<dl class="message-properties">
|
|
83
|
+
<dt>I²C bus <span class="property-type">number</span></dt>
|
|
84
|
+
<dd>Linux bus number N of <code>/dev/i2c-N</code>. The address is fixed at 0x61.</dd>
|
|
85
|
+
<dt>Interval <span class="property-type">number</span></dt>
|
|
86
|
+
<dd>Measurement interval in s, 2–1800 (module default 2); written at deploy when it differs.</dd>
|
|
87
|
+
<dt>Altitude <span class="property-type">number</span></dt>
|
|
88
|
+
<dd>Altitude above sea level in m for the pressure compensation (default 0); written at deploy when it differs.</dd>
|
|
89
|
+
</dl>
|
|
90
|
+
<h3>Details</h3>
|
|
91
|
+
<p>The module stretches the I²C clock for up to about 150 ms; on a Raspberry Pi lower the bus to 50 kHz or use a
|
|
92
|
+
bit-banged bus if reads fail. Interval and altitude are stored in the module's non-volatile memory. A read polls
|
|
93
|
+
the data-ready status and waits at most the interval plus 1 s. Automatic self-calibration stays as it is (module
|
|
94
|
+
default off).</p>
|
|
95
|
+
</script>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = function(RED) {
|
|
4
|
+
const { I2CConnection } = require('periph/src/connection/i2c');
|
|
5
|
+
const { SCD30Full } = require('periph/src/chips/gas/scd30');
|
|
6
|
+
|
|
7
|
+
function SCD30DeviceNode(config) {
|
|
8
|
+
RED.nodes.createNode(this, config);
|
|
9
|
+
const node = this;
|
|
10
|
+
try {
|
|
11
|
+
const connection = new I2CConnection(parseInt(config.bus), 0x61);
|
|
12
|
+
node.connection = connection;
|
|
13
|
+
node.driver = new SCD30Full(connection);
|
|
14
|
+
node.ready = (async () => {
|
|
15
|
+
await node.driver.init();
|
|
16
|
+
// Interval and altitude live in non-volatile memory: write them only when they differ.
|
|
17
|
+
const interval = parseInt(config.interval);
|
|
18
|
+
if (!isNaN(interval) && interval !== await node.driver.getInterval()) {
|
|
19
|
+
await node.driver.setInterval(interval);
|
|
20
|
+
}
|
|
21
|
+
const altitude = parseInt(config.altitude);
|
|
22
|
+
if (!isNaN(altitude) && altitude !== await node.driver.getAltitude()) {
|
|
23
|
+
await node.driver.setAltitude(altitude);
|
|
24
|
+
}
|
|
25
|
+
})();
|
|
26
|
+
node.ready.catch((e) => {
|
|
27
|
+
node.error('SCD30 init failed: ' + e.message);
|
|
28
|
+
});
|
|
29
|
+
} catch (e) {
|
|
30
|
+
node.error('SCD30 init failed: ' + e.message);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
node.on('close', function() {
|
|
34
|
+
if (node.connection) node.connection.close();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
RED.nodes.registerType('scd30-device', SCD30DeviceNode);
|
|
38
|
+
|
|
39
|
+
function SCD30ReadNode(config) {
|
|
40
|
+
RED.nodes.createNode(this, config);
|
|
41
|
+
const node = this;
|
|
42
|
+
const deviceNode = RED.nodes.getNode(config.device) || {};
|
|
43
|
+
let busy = Promise.resolve();
|
|
44
|
+
|
|
45
|
+
node.on('input', function(msg, send, done) {
|
|
46
|
+
if (!deviceNode.driver) {
|
|
47
|
+
node.error('SCD30 not initialised', msg);
|
|
48
|
+
done();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
// One command/response exchange at a time; serialise overlapping messages.
|
|
52
|
+
busy = busy.then(async () => {
|
|
53
|
+
try {
|
|
54
|
+
await deviceNode.ready;
|
|
55
|
+
msg.payload = await deviceNode.driver.read();
|
|
56
|
+
send(msg);
|
|
57
|
+
done();
|
|
58
|
+
} catch (e) {
|
|
59
|
+
done(e);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
RED.nodes.registerType('scd30', SCD30ReadNode);
|
|
65
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<!-- Config node: one instance per physical device -->
|
|
2
|
+
<script type="text/javascript">
|
|
3
|
+
RED.nodes.registerType('scd40-device', {
|
|
4
|
+
category: 'config',
|
|
5
|
+
defaults: {
|
|
6
|
+
name: { value: '' },
|
|
7
|
+
bus: { value: '1', required: true, validate: RED.validators.number() },
|
|
8
|
+
mode: { value: 'periodic' },
|
|
9
|
+
offset: { value: '4', validate: RED.validators.number() },
|
|
10
|
+
altitude: { value: '0', validate: RED.validators.number() }
|
|
11
|
+
},
|
|
12
|
+
label: function() {
|
|
13
|
+
return this.name || ('SCD40 @ 0x62 (bus ' + this.bus + ')');
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<script type="text/html" data-template-name="scd40-device">
|
|
19
|
+
<div class="form-row">
|
|
20
|
+
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
21
|
+
<input type="text" id="node-config-input-name" placeholder="SCD40">
|
|
22
|
+
</div>
|
|
23
|
+
<div class="form-row">
|
|
24
|
+
<label for="node-config-input-bus"><i class="fa fa-microchip"></i> I²C bus</label>
|
|
25
|
+
<input type="number" id="node-config-input-bus" min="0" style="width:80px"> (Linux /dev/i2c-N, address 0x62)
|
|
26
|
+
</div>
|
|
27
|
+
<div class="form-row">
|
|
28
|
+
<label for="node-config-input-mode"><i class="fa fa-clock-o"></i> Mode</label>
|
|
29
|
+
<select id="node-config-input-mode">
|
|
30
|
+
<option value="periodic">Periodic (every 5 s)</option>
|
|
31
|
+
<option value="lowpower">Low power (about every 30 s)</option>
|
|
32
|
+
</select>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="form-row">
|
|
35
|
+
<label for="node-config-input-offset"><i class="fa fa-thermometer-half"></i> Temp. offset</label>
|
|
36
|
+
<input type="number" id="node-config-input-offset" min="0" max="174" step="0.1" style="width:80px"> K (chip default 4)
|
|
37
|
+
</div>
|
|
38
|
+
<div class="form-row">
|
|
39
|
+
<label for="node-config-input-altitude"><i class="fa fa-area-chart"></i> Altitude</label>
|
|
40
|
+
<input type="number" id="node-config-input-altitude" min="0" max="65535" style="width:80px"> m above sea level
|
|
41
|
+
</div>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<!-- Read node -->
|
|
45
|
+
<script type="text/javascript">
|
|
46
|
+
RED.nodes.registerType('scd40', {
|
|
47
|
+
category: 'Peripheral',
|
|
48
|
+
color: '#C084FC',
|
|
49
|
+
defaults: {
|
|
50
|
+
name: { value: '' },
|
|
51
|
+
device: { value: '', type: 'scd40-device', required: true }
|
|
52
|
+
},
|
|
53
|
+
inputs: 1,
|
|
54
|
+
outputs: 1,
|
|
55
|
+
icon: 'bridge.svg',
|
|
56
|
+
label: function() { return this.name || 'SCD40'; },
|
|
57
|
+
paletteLabel: 'SCD40'
|
|
58
|
+
});
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<script type="text/html" data-template-name="scd40">
|
|
62
|
+
<div class="form-row">
|
|
63
|
+
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
64
|
+
<input type="text" id="node-input-name" placeholder="SCD40">
|
|
65
|
+
</div>
|
|
66
|
+
<div class="form-row">
|
|
67
|
+
<label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
|
|
68
|
+
<input type="text" id="node-input-device">
|
|
69
|
+
</div>
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<script type="text/html" data-help-name="scd40">
|
|
73
|
+
<p>Reads CO₂, temperature and humidity from a Sensirion SCD40 photoacoustic CO₂ sensor over I²C (address 0x62),
|
|
74
|
+
one sample per message.</p>
|
|
75
|
+
<h3>Inputs</h3>
|
|
76
|
+
<dl class="message-properties">
|
|
77
|
+
<dt>payload <span class="property-type">any</span></dt>
|
|
78
|
+
<dd>Any incoming message waits for the next sample (every 5 s, or about every 30 s in low-power mode) and
|
|
79
|
+
returns it.</dd>
|
|
80
|
+
</dl>
|
|
81
|
+
<h3>Outputs</h3>
|
|
82
|
+
<dl class="message-properties">
|
|
83
|
+
<dt>payload.co2_ppm <span class="property-type">number</span></dt>
|
|
84
|
+
<dd>CO₂ concentration in ppm (specified 400–2000, output 0–40 000).</dd>
|
|
85
|
+
<dt>payload.temperature_c <span class="property-type">number</span></dt>
|
|
86
|
+
<dd>Temperature in °C (temperature offset applied).</dd>
|
|
87
|
+
<dt>payload.humidity_rh <span class="property-type">number</span></dt>
|
|
88
|
+
<dd>Relative humidity in %RH.</dd>
|
|
89
|
+
</dl>
|
|
90
|
+
<h3>Configuration</h3>
|
|
91
|
+
<dl class="message-properties">
|
|
92
|
+
<dt>I²C bus <span class="property-type">number</span></dt>
|
|
93
|
+
<dd>Linux bus number N of <code>/dev/i2c-N</code>. The address is fixed at 0x62.</dd>
|
|
94
|
+
<dt>Mode <span class="property-type">string</span></dt>
|
|
95
|
+
<dd>Periodic measurement (a sample every 5 s) or low-power periodic measurement (about every 30 s).</dd>
|
|
96
|
+
<dt>Temp. offset <span class="property-type">number</span></dt>
|
|
97
|
+
<dd>Temperature offset in K for self-heating (chip default 4); written at deploy when it differs.</dd>
|
|
98
|
+
<dt>Altitude <span class="property-type">number</span></dt>
|
|
99
|
+
<dd>Altitude above sea level in m for the pressure compensation (default 0); written at deploy when it differs.</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
<h3>Details</h3>
|
|
102
|
+
<p>Offset and altitude are written to the sensor's RAM only (not persisted to the EEPROM), so they are reapplied
|
|
103
|
+
at every deploy. Changing a setting stops and restarts the measurement (500 ms). A read polls the data-ready
|
|
104
|
+
status and waits at most 6 s (35 s in low-power mode). Automatic self-calibration stays as it is (chip default
|
|
105
|
+
on; it needs fresh air at least once a week).</p>
|
|
106
|
+
</script>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = function(RED) {
|
|
4
|
+
const { I2CConnection } = require('periph/src/connection/i2c');
|
|
5
|
+
const { SCD40Full } = require('periph/src/chips/gas/scd40');
|
|
6
|
+
|
|
7
|
+
function SCD40DeviceNode(config) {
|
|
8
|
+
RED.nodes.createNode(this, config);
|
|
9
|
+
const node = this;
|
|
10
|
+
try {
|
|
11
|
+
const connection = new I2CConnection(parseInt(config.bus), 0x62);
|
|
12
|
+
node.connection = connection;
|
|
13
|
+
node.driver = new SCD40Full(connection);
|
|
14
|
+
node.ready = (async () => {
|
|
15
|
+
await node.driver.init();
|
|
16
|
+
// Offset and altitude live in RAM (no EEPROM write); each change costs one
|
|
17
|
+
// stop/restart (500 ms), so write them only when they differ.
|
|
18
|
+
const offset = parseFloat(config.offset);
|
|
19
|
+
if (!isNaN(offset) && Math.abs(offset - await node.driver.getTemperatureOffset()) > 0.01) {
|
|
20
|
+
await node.driver.setTemperatureOffset(offset);
|
|
21
|
+
}
|
|
22
|
+
const altitude = parseInt(config.altitude);
|
|
23
|
+
if (!isNaN(altitude) && altitude !== await node.driver.getAltitude()) {
|
|
24
|
+
await node.driver.setAltitude(altitude);
|
|
25
|
+
}
|
|
26
|
+
if (config.mode === 'lowpower') await node.driver.startLowPowerPeriodic();
|
|
27
|
+
})();
|
|
28
|
+
node.ready.catch((e) => {
|
|
29
|
+
node.error('SCD40 init failed: ' + e.message);
|
|
30
|
+
});
|
|
31
|
+
} catch (e) {
|
|
32
|
+
node.error('SCD40 init failed: ' + e.message);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
node.on('close', function() {
|
|
36
|
+
if (node.connection) node.connection.close();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
RED.nodes.registerType('scd40-device', SCD40DeviceNode);
|
|
40
|
+
|
|
41
|
+
function SCD40ReadNode(config) {
|
|
42
|
+
RED.nodes.createNode(this, config);
|
|
43
|
+
const node = this;
|
|
44
|
+
const deviceNode = RED.nodes.getNode(config.device) || {};
|
|
45
|
+
let busy = Promise.resolve();
|
|
46
|
+
|
|
47
|
+
node.on('input', function(msg, send, done) {
|
|
48
|
+
if (!deviceNode.driver) {
|
|
49
|
+
node.error('SCD40 not initialised', msg);
|
|
50
|
+
done();
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
// One command/response exchange at a time; serialise overlapping messages.
|
|
54
|
+
busy = busy.then(async () => {
|
|
55
|
+
try {
|
|
56
|
+
await deviceNode.ready;
|
|
57
|
+
msg.payload = await deviceNode.driver.read();
|
|
58
|
+
send(msg);
|
|
59
|
+
done();
|
|
60
|
+
} catch (e) {
|
|
61
|
+
done(e);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
RED.nodes.registerType('scd40', SCD40ReadNode);
|
|
67
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-periph-gas",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Node-RED nodes for gas sensor chips: ENS160",
|
|
3
|
+
"version": "1.6.1",
|
|
4
|
+
"description": "Node-RED nodes for gas sensor chips: CCS811, ENS160, RRH46410, RRH62000, SCD30, SCD40",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-red",
|
|
7
7
|
"gas",
|
|
@@ -10,12 +10,22 @@
|
|
|
10
10
|
"sensor",
|
|
11
11
|
"peripheral",
|
|
12
12
|
"node-red-contrib",
|
|
13
|
-
"
|
|
13
|
+
"ccs811",
|
|
14
|
+
"ens160",
|
|
15
|
+
"rrh46410",
|
|
16
|
+
"rrh62000",
|
|
17
|
+
"scd30",
|
|
18
|
+
"scd40"
|
|
14
19
|
],
|
|
15
20
|
"node-red": {
|
|
16
21
|
"version": ">=3.0.0",
|
|
17
22
|
"nodes": {
|
|
18
|
-
"
|
|
23
|
+
"ccs811": "nodes/ccs811/ccs811.js",
|
|
24
|
+
"ens160": "nodes/ens160/ens160.js",
|
|
25
|
+
"rrh46410": "nodes/rrh46410/rrh46410.js",
|
|
26
|
+
"rrh62000": "nodes/rrh62000/rrh62000.js",
|
|
27
|
+
"scd30": "nodes/scd30/scd30.js",
|
|
28
|
+
"scd40": "nodes/scd40/scd40.js"
|
|
19
29
|
}
|
|
20
30
|
},
|
|
21
31
|
"dependencies": {
|