node-red-contrib-periph-power 1.4.0 → 1.5.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 CHANGED
@@ -23,8 +23,18 @@ npm install node-red-contrib-periph-power
23
23
  | `ina219` | input | Reads voltage, current, power, and shunt voltage from an INA219 power monitor over I²C. |
24
24
  | `ina226-device` | config | I²C bus and address for an INA226 |
25
25
  | `ina226` | input | Reads voltage, current, power, and shunt voltage from an INA226 power monitor over I²C. |
26
+ | `ina260-device` | config | I²C bus and address for an INA260 |
27
+ | `ina260` | input | Reads bus voltage, current, and power from an INA260 power monitor (integrated 2 mΩ shunt) over I²C. |
26
28
  | `ina3221-device` | config | I²C bus and address for an INA3221 |
27
29
  | `periph-ina3221` | input | Reads bus voltage, shunt voltage, current, and power from an INA3221 three-channel power monitor over I²C. |
30
+ | `lc709203f-device` | config | I²C bus and address for a LC709203F |
31
+ | `lc709203f` | input | Reads cell voltage, state of charge and temperature from an LC709203F 1-cell Li-ion fuel gauge over I²C. |
32
+ | `periph-lm25066-device` | config | I²C bus and address for a LM25066 |
33
+ | `periph-lm25066` | input | Reads input and output voltage, input current, input power and MOSFET temperature from an LM25066 hot-swap controller over I²C/PMBus. |
34
+ | `periph-ltc4151-device` | config | I²C bus and address for a LTC4151 |
35
+ | `periph-ltc4151` | input | Reads supply voltage, load current and power from an LTC4151 7–80 V high-side power monitor over I²C. |
36
+ | `periph-max17048-device` | config | I²C bus and address for a MAX17048 |
37
+ | `periph-max17048` | input | Reads cell voltage and state of charge from a MAX17048 (1-cell) or MAX17049 (2-cell) lithium fuel gauge over I²C. |
28
38
 
29
39
  ## Links
30
40
 
@@ -0,0 +1,76 @@
1
+ [
2
+ {
3
+ "id": "tab-ina260-demo",
4
+ "type": "tab",
5
+ "label": "INA260 Power Monitor",
6
+ "disabled": false,
7
+ "info": "Reads voltage, current, and power from an INA260 every second and displays a formatted string in the debug panel."
8
+ },
9
+ {
10
+ "id": "cfg-ina260",
11
+ "type": "ina260-device",
12
+ "name": "INA260",
13
+ "bus": "1",
14
+ "address": "40",
15
+ "rShunt": "0.1",
16
+ "maxCurrent": "2.0"
17
+ },
18
+ {
19
+ "id": "inj-tick",
20
+ "type": "inject",
21
+ "name": "every 1 s",
22
+ "repeat": "1",
23
+ "crontab": "",
24
+ "once": true,
25
+ "onceDelay": 0.1,
26
+ "topic": "",
27
+ "payload": "",
28
+ "payloadType": "date",
29
+ "z": "tab-ina260-demo",
30
+ "x": 120,
31
+ "y": 160,
32
+ "wires": [["read-ina260"]]
33
+ },
34
+ {
35
+ "id": "read-ina260",
36
+ "type": "ina260",
37
+ "name": "INA260",
38
+ "device": "cfg-ina260",
39
+ "z": "tab-ina260-demo",
40
+ "x": 300,
41
+ "y": 160,
42
+ "wires": [["fmt-readings"]]
43
+ },
44
+ {
45
+ "id": "fmt-readings",
46
+ "type": "function",
47
+ "name": "format",
48
+ "func": "const p = msg.payload;\nmsg.payload = p.voltage_v.toFixed(3) + 'V ' + p.current_a.toFixed(4) + 'A ' + p.power_w.toFixed(4) + 'W';\nreturn msg;",
49
+ "outputs": 1,
50
+ "noerr": 0,
51
+ "initialize": "",
52
+ "finalize": "",
53
+ "libs": [],
54
+ "z": "tab-ina260-demo",
55
+ "x": 480,
56
+ "y": 160,
57
+ "wires": [["dbg-readings"]]
58
+ },
59
+ {
60
+ "id": "dbg-readings",
61
+ "type": "debug",
62
+ "name": "",
63
+ "active": true,
64
+ "tosidebar": true,
65
+ "console": false,
66
+ "tostatus": true,
67
+ "complete": "payload",
68
+ "targetType": "msg",
69
+ "statusVal": "payload",
70
+ "statusType": "auto",
71
+ "z": "tab-ina260-demo",
72
+ "x": 650,
73
+ "y": 160,
74
+ "wires": []
75
+ }
76
+ ]
@@ -0,0 +1,107 @@
1
+ [
2
+ {
3
+ "id": "tab-lc709203f-demo",
4
+ "type": "tab",
5
+ "label": "LC709203F Battery Monitor",
6
+ "disabled": false,
7
+ "info": "Battery monitor: every 5 s reads cell voltage, state of charge and temperature from an LC709203F fuel gauge on a 1000 mAh LiPo and shows a formatted string in the debug panel. The host temperature is fed as 25 °C."
8
+ },
9
+ {
10
+ "id": "cfg-lc709203f",
11
+ "type": "lc709203f-device",
12
+ "name": "LC709203F",
13
+ "bus": "1",
14
+ "address": "0B",
15
+ "capacity": "1000",
16
+ "profile": "1"
17
+ },
18
+ {
19
+ "id": "inj-tick",
20
+ "type": "inject",
21
+ "name": "every 5 s",
22
+ "repeat": "5",
23
+ "crontab": "",
24
+ "once": true,
25
+ "onceDelay": 0.1,
26
+ "topic": "",
27
+ "payload": "",
28
+ "payloadType": "date",
29
+ "z": "tab-lc709203f-demo",
30
+ "x": 120,
31
+ "y": 160,
32
+ "wires": [
33
+ [
34
+ "set-temp"
35
+ ]
36
+ ]
37
+ },
38
+ {
39
+ "id": "set-temp",
40
+ "type": "function",
41
+ "name": "host temperature 25 °C",
42
+ "func": "msg.temperature = 25;\nreturn msg;",
43
+ "outputs": 1,
44
+ "noerr": 0,
45
+ "initialize": "",
46
+ "finalize": "",
47
+ "libs": [],
48
+ "z": "tab-lc709203f-demo",
49
+ "x": 320,
50
+ "y": 160,
51
+ "wires": [
52
+ [
53
+ "read-lc709203f"
54
+ ]
55
+ ]
56
+ },
57
+ {
58
+ "id": "read-lc709203f",
59
+ "type": "lc709203f",
60
+ "name": "LC709203F",
61
+ "device": "cfg-lc709203f",
62
+ "z": "tab-lc709203f-demo",
63
+ "x": 530,
64
+ "y": 160,
65
+ "wires": [
66
+ [
67
+ "fmt-readings"
68
+ ]
69
+ ]
70
+ },
71
+ {
72
+ "id": "fmt-readings",
73
+ "type": "function",
74
+ "name": "format",
75
+ "func": "const p = msg.payload;\nmsg.payload = p.voltage_v.toFixed(3) + ' V ' + p.percent.toFixed(1) + ' % ' + p.temperature_c.toFixed(1) + ' °C';\nreturn msg;",
76
+ "outputs": 1,
77
+ "noerr": 0,
78
+ "initialize": "",
79
+ "finalize": "",
80
+ "libs": [],
81
+ "z": "tab-lc709203f-demo",
82
+ "x": 720,
83
+ "y": 160,
84
+ "wires": [
85
+ [
86
+ "dbg"
87
+ ]
88
+ ]
89
+ },
90
+ {
91
+ "id": "dbg",
92
+ "type": "debug",
93
+ "name": "battery",
94
+ "active": true,
95
+ "tosidebar": true,
96
+ "console": false,
97
+ "tostatus": false,
98
+ "complete": "payload",
99
+ "targetType": "msg",
100
+ "statusVal": "",
101
+ "statusType": "auto",
102
+ "z": "tab-lc709203f-demo",
103
+ "x": 900,
104
+ "y": 160,
105
+ "wires": []
106
+ }
107
+ ]
@@ -0,0 +1,88 @@
1
+ [
2
+ {
3
+ "id": "tab-lm25066-demo",
4
+ "type": "tab",
5
+ "label": "LM25066 Hot-swap Rail Monitor",
6
+ "disabled": false,
7
+ "info": "Hot-swap rail monitor: every 1 s reads VIN, VOUT, input current, input power and MOSFET temperature from an LM25066 on a 12 V rail with a 1 mOhm sense resistor, and shows a formatted string in the debug panel. The node never writes the control registers."
8
+ },
9
+ {
10
+ "id": "cfg-lm25066",
11
+ "type": "periph-lm25066-device",
12
+ "name": "LM25066",
13
+ "bus": "1",
14
+ "address": "40",
15
+ "rsense": "1.0",
16
+ "climit": "25"
17
+ },
18
+ {
19
+ "id": "inj-tick",
20
+ "type": "inject",
21
+ "name": "every 1 s",
22
+ "repeat": "1",
23
+ "crontab": "",
24
+ "once": true,
25
+ "onceDelay": 0.1,
26
+ "topic": "",
27
+ "payload": "",
28
+ "payloadType": "date",
29
+ "z": "tab-lm25066-demo",
30
+ "x": 120,
31
+ "y": 160,
32
+ "wires": [
33
+ [
34
+ "read-lm25066"
35
+ ]
36
+ ]
37
+ },
38
+ {
39
+ "id": "read-lm25066",
40
+ "type": "periph-lm25066",
41
+ "name": "LM25066",
42
+ "device": "cfg-lm25066",
43
+ "z": "tab-lm25066-demo",
44
+ "x": 320,
45
+ "y": 160,
46
+ "wires": [
47
+ [
48
+ "fmt-readings"
49
+ ]
50
+ ]
51
+ },
52
+ {
53
+ "id": "fmt-readings",
54
+ "type": "function",
55
+ "name": "format",
56
+ "func": "const p = msg.payload;\nmsg.payload = p.voltage_in_v.toFixed(2) + ' V in ' + p.voltage_out_v.toFixed(2) + ' V out ' + p.current_a.toFixed(3) + ' A ' + p.power_w.toFixed(2) + ' W ' + p.temperature_c.toFixed(1) + ' °C';\nreturn msg;",
57
+ "outputs": 1,
58
+ "noerr": 0,
59
+ "initialize": "",
60
+ "finalize": "",
61
+ "libs": [],
62
+ "z": "tab-lm25066-demo",
63
+ "x": 520,
64
+ "y": 160,
65
+ "wires": [
66
+ [
67
+ "dbg"
68
+ ]
69
+ ]
70
+ },
71
+ {
72
+ "id": "dbg",
73
+ "type": "debug",
74
+ "name": "rail",
75
+ "active": true,
76
+ "tosidebar": true,
77
+ "console": false,
78
+ "tostatus": false,
79
+ "complete": "payload",
80
+ "targetType": "msg",
81
+ "statusVal": "",
82
+ "statusType": "auto",
83
+ "z": "tab-lm25066-demo",
84
+ "x": 700,
85
+ "y": 160,
86
+ "wires": []
87
+ }
88
+ ]
@@ -0,0 +1,88 @@
1
+ [
2
+ {
3
+ "id": "tab-ltc4151-demo",
4
+ "type": "tab",
5
+ "label": "LTC4151 High-side Supply Monitor",
6
+ "disabled": false,
7
+ "info": "High-side supply monitor: every 1 s reads the supply voltage, load current and power from an LTC4151 on a 48 V rail with a 20 mOhm sense resistor and shows a formatted string in the debug panel. Adjust the sense resistor in the device config node to match your hardware. The node only reads the continuous scan and never writes the chip."
8
+ },
9
+ {
10
+ "id": "cfg-ltc4151",
11
+ "type": "periph-ltc4151-device",
12
+ "name": "LTC4151",
13
+ "bus": "1",
14
+ "address": "6A",
15
+ "rsense": "20"
16
+ },
17
+ {
18
+ "id": "inj-tick",
19
+ "type": "inject",
20
+ "name": "every 1 s",
21
+ "repeat": "1",
22
+ "crontab": "",
23
+ "once": true,
24
+ "onceDelay": 0.1,
25
+ "topic": "",
26
+ "payload": "",
27
+ "payloadType": "date",
28
+ "z": "tab-ltc4151-demo",
29
+ "x": 120,
30
+ "y": 160,
31
+ "wires": [
32
+ [
33
+ "read-ltc4151"
34
+ ]
35
+ ]
36
+ },
37
+ {
38
+ "id": "read-ltc4151",
39
+ "type": "periph-ltc4151",
40
+ "name": "LTC4151",
41
+ "device": "cfg-ltc4151",
42
+ "z": "tab-ltc4151-demo",
43
+ "x": 320,
44
+ "y": 160,
45
+ "wires": [
46
+ [
47
+ "fmt-readings"
48
+ ]
49
+ ],
50
+ "adin": false
51
+ },
52
+ {
53
+ "id": "fmt-readings",
54
+ "type": "function",
55
+ "name": "format",
56
+ "func": "const p = msg.payload;\nmsg.payload = p.voltage.toFixed(2) + ' V ' + p.current.toFixed(3) + ' A ' + p.power.toFixed(2) + ' W';\nreturn msg;",
57
+ "outputs": 1,
58
+ "noerr": 0,
59
+ "initialize": "",
60
+ "finalize": "",
61
+ "libs": [],
62
+ "z": "tab-ltc4151-demo",
63
+ "x": 520,
64
+ "y": 160,
65
+ "wires": [
66
+ [
67
+ "dbg"
68
+ ]
69
+ ]
70
+ },
71
+ {
72
+ "id": "dbg",
73
+ "type": "debug",
74
+ "name": "rail",
75
+ "active": true,
76
+ "tosidebar": true,
77
+ "console": false,
78
+ "tostatus": false,
79
+ "complete": "payload",
80
+ "targetType": "msg",
81
+ "statusVal": "",
82
+ "statusType": "auto",
83
+ "z": "tab-ltc4151-demo",
84
+ "x": 700,
85
+ "y": 160,
86
+ "wires": []
87
+ }
88
+ ]
@@ -0,0 +1,88 @@
1
+ [
2
+ {
3
+ "id": "tab-max17048-demo",
4
+ "type": "tab",
5
+ "label": "MAX17048 Battery Fuel Gauge",
6
+ "disabled": false,
7
+ "info": "Battery fuel gauge: every 5 s reads the cell voltage and state of charge from a MAX17048 on a single Li-ion/LiPo cell and shows a formatted string such as \"3.87 V / 74.3 %\" in the debug panel. The node only reads and never writes the chip."
8
+ },
9
+ {
10
+ "id": "cfg-max17048",
11
+ "type": "periph-max17048-device",
12
+ "name": "MAX17048",
13
+ "bus": "1",
14
+ "address": "36",
15
+ "cells": "1"
16
+ },
17
+ {
18
+ "id": "inj-tick",
19
+ "type": "inject",
20
+ "name": "every 5 s",
21
+ "repeat": "5",
22
+ "crontab": "",
23
+ "once": true,
24
+ "onceDelay": 0.1,
25
+ "topic": "",
26
+ "payload": "",
27
+ "payloadType": "date",
28
+ "z": "tab-max17048-demo",
29
+ "x": 120,
30
+ "y": 160,
31
+ "wires": [
32
+ [
33
+ "read-max17048"
34
+ ]
35
+ ]
36
+ },
37
+ {
38
+ "id": "read-max17048",
39
+ "type": "periph-max17048",
40
+ "name": "MAX17048",
41
+ "device": "cfg-max17048",
42
+ "z": "tab-max17048-demo",
43
+ "x": 320,
44
+ "y": 160,
45
+ "wires": [
46
+ [
47
+ "fmt-readings"
48
+ ]
49
+ ],
50
+ "rate": false
51
+ },
52
+ {
53
+ "id": "fmt-readings",
54
+ "type": "function",
55
+ "name": "format",
56
+ "func": "const p = msg.payload;\nmsg.payload = p.voltage.toFixed(2) + ' V / ' + p.percent.toFixed(1) + ' %';\nreturn msg;",
57
+ "outputs": 1,
58
+ "noerr": 0,
59
+ "initialize": "",
60
+ "finalize": "",
61
+ "libs": [],
62
+ "z": "tab-max17048-demo",
63
+ "x": 520,
64
+ "y": 160,
65
+ "wires": [
66
+ [
67
+ "dbg"
68
+ ]
69
+ ]
70
+ },
71
+ {
72
+ "id": "dbg",
73
+ "type": "debug",
74
+ "name": "battery",
75
+ "active": true,
76
+ "tosidebar": true,
77
+ "console": false,
78
+ "tostatus": false,
79
+ "complete": "payload",
80
+ "targetType": "msg",
81
+ "statusVal": "",
82
+ "statusType": "auto",
83
+ "z": "tab-max17048-demo",
84
+ "x": 700,
85
+ "y": 160,
86
+ "wires": []
87
+ }
88
+ ]
@@ -0,0 +1,77 @@
1
+ <!-- Config node: one instance per physical device -->
2
+ <script type="text/javascript">
3
+ RED.nodes.registerType('ina260-device', {
4
+ category: 'config',
5
+ defaults: {
6
+ name: { value: '' },
7
+ bus: { value: '1', required: true, validate: RED.validators.number() },
8
+ address: { value: '40', required: true }
9
+ },
10
+ label: function() {
11
+ return this.name || ('INA260 @ 0x' + this.address + ' (bus ' + this.bus + ')');
12
+ }
13
+ });
14
+ </script>
15
+
16
+ <script type="text/html" data-template-name="ina260-device">
17
+ <div class="form-row">
18
+ <label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
19
+ <input type="text" id="node-config-input-name" placeholder="INA260">
20
+ </div>
21
+ <div class="form-row">
22
+ <label for="node-config-input-bus"><i class="fa fa-microchip"></i> I²C bus</label>
23
+ <input type="number" id="node-config-input-bus" min="0" style="width:80px"> &nbsp;(Linux /dev/i2c-N)
24
+ </div>
25
+ <div class="form-row">
26
+ <label for="node-config-input-address">Address (hex)</label>
27
+ <input type="text" id="node-config-input-address" placeholder="40" style="width:80px"> &nbsp;default: 40 (0x40)
28
+ </div>
29
+ </script>
30
+
31
+ <!-- Read node: trigger → measurements -->
32
+ <script type="text/javascript">
33
+ RED.nodes.registerType('ina260', {
34
+ category: 'Peripheral',
35
+ color: '#C084FC',
36
+ defaults: {
37
+ name: { value: '' },
38
+ device: { value: '', type: 'ina260-device', required: true }
39
+ },
40
+ inputs: 1,
41
+ outputs: 1,
42
+ icon: 'font-awesome/fa-bolt',
43
+ label: function() { return this.name || 'INA260'; },
44
+ paletteLabel: 'INA260'
45
+ });
46
+ </script>
47
+
48
+ <script type="text/html" data-template-name="ina260">
49
+ <div class="form-row">
50
+ <label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
51
+ <input type="text" id="node-input-device">
52
+ </div>
53
+ <div class="form-row">
54
+ <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
55
+ <input type="text" id="node-input-name" placeholder="INA260">
56
+ </div>
57
+ </script>
58
+
59
+ <script type="text/html" data-help-name="ina260">
60
+ <p>Reads bus voltage, current, and power from an INA260 power monitor (integrated 2&nbsp;mΩ shunt) over I²C.</p>
61
+ <p>Any input message triggers one reading. The device is configured via an <b>ina260-device</b> config node.</p>
62
+
63
+ <h3>Output</h3>
64
+ <dl class="message-properties">
65
+ <dt>payload.voltage_v <span class="property-type">number</span></dt>
66
+ <dd>Bus voltage in volts.</dd>
67
+ <dt>payload.current_a <span class="property-type">number</span></dt>
68
+ <dd>Current in amperes (signed; positive flows IN+ to IN−).</dd>
69
+ <dt>payload.power_w <span class="property-type">number</span></dt>
70
+ <dd>Power in watts.</dd>
71
+ </dl>
72
+
73
+ <h3>Details</h3>
74
+ <p>Configure the I²C bus number and address (default <code>0x40</code>, range <code>0x40</code>–<code>0x4F</code>)
75
+ in the device config node. The INA260 needs no calibration: the shunt is integrated and the registers have
76
+ fixed LSBs.</p>
77
+ </script>
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ module.exports = function(RED) {
4
+ const { I2CConnection } = require('periph/src/connection/i2c');
5
+ const { INA260Full } = require('periph/src/chips/power/ina260');
6
+
7
+ function INA260DeviceNode(config) {
8
+ RED.nodes.createNode(this, config);
9
+ const node = this;
10
+ try {
11
+ const connection = new I2CConnection(parseInt(config.bus), parseInt(config.address, 16));
12
+ node.driver = new INA260Full(connection);
13
+ node.connection = connection;
14
+ } catch (e) {
15
+ node.error('INA260 init failed: ' + e.message);
16
+ }
17
+ node.on('close', function() {
18
+ if (node.connection) node.connection.close();
19
+ });
20
+ }
21
+ RED.nodes.registerType('ina260-device', INA260DeviceNode);
22
+
23
+ function INA260ReadNode(config) {
24
+ RED.nodes.createNode(this, config);
25
+ const node = this;
26
+ node.device = RED.nodes.getNode(config.device);
27
+
28
+ node.on('input', async function(msg, send, done) {
29
+ if (!node.device || !node.device.driver) {
30
+ node.error('No INA260 device configured', msg);
31
+ done();
32
+ return;
33
+ }
34
+ try {
35
+ const d = node.device.driver;
36
+ msg.payload = {
37
+ voltage_v: await d.voltage(),
38
+ current_a: await d.current(),
39
+ power_w: await d.power()
40
+ };
41
+ send(msg);
42
+ done();
43
+ } catch (e) {
44
+ done(e);
45
+ }
46
+ });
47
+ }
48
+ RED.nodes.registerType('ina260', INA260ReadNode);
49
+ };
@@ -0,0 +1,96 @@
1
+ <!-- Config node: one instance per physical device -->
2
+ <script type="text/javascript">
3
+ RED.nodes.registerType('lc709203f-device', {
4
+ category: 'config',
5
+ defaults: {
6
+ name: { value: '' },
7
+ bus: { value: '1', required: true, validate: RED.validators.number() },
8
+ address: { value: '0B', required: true },
9
+ capacity: { value: '1000', required: true, validate: RED.validators.number() },
10
+ profile: { value: '1', required: true }
11
+ },
12
+ label: function() {
13
+ return this.name || ('LC709203F @ 0x' + this.address + ' (bus ' + this.bus + ')');
14
+ }
15
+ });
16
+ </script>
17
+
18
+ <script type="text/html" data-template-name="lc709203f-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="LC709203F">
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"> &nbsp;(Linux /dev/i2c-N)
26
+ </div>
27
+ <div class="form-row">
28
+ <label for="node-config-input-address">Address (hex)</label>
29
+ <input type="text" id="node-config-input-address" placeholder="0B" style="width:80px"> &nbsp;fixed: 0B (0x0B)
30
+ </div>
31
+ <div class="form-row">
32
+ <label for="node-config-input-capacity">Capacity (mAh)</label>
33
+ <input type="number" id="node-config-input-capacity" min="100" max="3000" style="width:100px">
34
+ </div>
35
+ <div class="form-row">
36
+ <label for="node-config-input-profile">Battery profile</label>
37
+ <select id="node-config-input-profile" style="width:100px">
38
+ <option value="0">0</option>
39
+ <option value="1">1 (3.7 V / 4.2 V)</option>
40
+ </select>
41
+ </div>
42
+ </script>
43
+
44
+ <!-- Read node: trigger → measurements -->
45
+ <script type="text/javascript">
46
+ RED.nodes.registerType('lc709203f', {
47
+ category: 'Peripheral',
48
+ color: '#C084FC',
49
+ defaults: {
50
+ name: { value: '' },
51
+ device: { value: '', type: 'lc709203f-device', required: true }
52
+ },
53
+ inputs: 1,
54
+ outputs: 1,
55
+ icon: 'font-awesome/fa-battery-half',
56
+ label: function() { return this.name || 'LC709203F'; },
57
+ paletteLabel: 'LC709203F'
58
+ });
59
+ </script>
60
+
61
+ <script type="text/html" data-template-name="lc709203f">
62
+ <div class="form-row">
63
+ <label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
64
+ <input type="text" id="node-input-device">
65
+ </div>
66
+ <div class="form-row">
67
+ <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
68
+ <input type="text" id="node-input-name" placeholder="LC709203F">
69
+ </div>
70
+ </script>
71
+
72
+ <script type="text/html" data-help-name="lc709203f">
73
+ <p>Reads cell voltage, state of charge and temperature from an LC709203F 1-cell Li-ion fuel gauge over I²C.</p>
74
+ <p>Any input message triggers one reading. The device is configured via an <b>lc709203f-device</b> config node.</p>
75
+
76
+ <h3>Input</h3>
77
+ <dl class="message-properties">
78
+ <dt class="optional">temperature <span class="property-type">number</span></dt>
79
+ <dd>Host-supplied cell temperature in °C (I²C temperature mode); written to the gauge before the reading.</dd>
80
+ </dl>
81
+
82
+ <h3>Output</h3>
83
+ <dl class="message-properties">
84
+ <dt>payload.voltage_v <span class="property-type">number</span></dt>
85
+ <dd>Cell voltage in volts.</dd>
86
+ <dt>payload.percent <span class="property-type">number</span></dt>
87
+ <dd>State of charge in % (0.1 % resolution).</dd>
88
+ <dt>payload.temperature_c <span class="property-type">number</span></dt>
89
+ <dd>Cell temperature in °C.</dd>
90
+ </dl>
91
+
92
+ <h3>Details</h3>
93
+ <p>The address is fixed at <code>0x0B</code>. The design capacity (100–3000&nbsp;mAh) selects the APA value and the
94
+ battery profile selects the data file (profile 1 = 3.7&nbsp;V / 4.2&nbsp;V on <code>-01</code>/<code>-03</code> parts).
95
+ Every transfer is protected by a CRC-8 that the driver checks. The chip stretches the I²C clock.</p>
96
+ </script>
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ module.exports = function(RED) {
4
+ const { I2CConnection } = require('periph/src/connection/i2c');
5
+ const { LC709203FFull } = require('periph/src/chips/power/lc709203f');
6
+
7
+ function LC709203FDeviceNode(config) {
8
+ RED.nodes.createNode(this, config);
9
+ const node = this;
10
+ try {
11
+ const connection = new I2CConnection(parseInt(config.bus), parseInt(config.address, 16));
12
+ node.driver = new LC709203FFull(connection, parseInt(config.capacity), parseInt(config.profile));
13
+ node.connection = connection;
14
+ } catch (e) {
15
+ node.error('LC709203F init failed: ' + e.message);
16
+ }
17
+ node.on('close', function() {
18
+ if (node.connection) node.connection.close();
19
+ });
20
+ }
21
+ RED.nodes.registerType('lc709203f-device', LC709203FDeviceNode);
22
+
23
+ function LC709203FReadNode(config) {
24
+ RED.nodes.createNode(this, config);
25
+ const node = this;
26
+ node.device = RED.nodes.getNode(config.device);
27
+
28
+ node.on('input', async function(msg, send, done) {
29
+ if (!node.device || !node.device.driver) {
30
+ node.error('No LC709203F device configured', msg);
31
+ done();
32
+ return;
33
+ }
34
+ try {
35
+ const d = node.device.driver;
36
+ if (typeof msg.temperature === 'number') {
37
+ await d.setTemperature(msg.temperature);
38
+ }
39
+ msg.payload = {
40
+ voltage_v: await d.voltage(),
41
+ percent: await d.percent(),
42
+ temperature_c: await d.temperature()
43
+ };
44
+ send(msg);
45
+ done();
46
+ } catch (e) {
47
+ done(e);
48
+ }
49
+ });
50
+ }
51
+ RED.nodes.registerType('lc709203f', LC709203FReadNode);
52
+ };
@@ -0,0 +1,97 @@
1
+ <!-- Config node: one instance per physical device -->
2
+ <script type="text/javascript">
3
+ RED.nodes.registerType('periph-lm25066-device', {
4
+ category: 'config',
5
+ defaults: {
6
+ name: { value: '' },
7
+ bus: { value: '1', required: true, validate: RED.validators.number() },
8
+ address: { value: '40', required: true },
9
+ rsense: { value: '1.0', required: true, validate: RED.validators.number() },
10
+ climit: { value: '25', required: true }
11
+ },
12
+ label: function() {
13
+ return this.name || ('LM25066 @ 0x' + this.address + ' (bus ' + this.bus + ')');
14
+ }
15
+ });
16
+ </script>
17
+
18
+ <script type="text/html" data-template-name="periph-lm25066-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="LM25066">
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"> &nbsp;(Linux /dev/i2c-N)
26
+ </div>
27
+ <div class="form-row">
28
+ <label for="node-config-input-address">Address (hex)</label>
29
+ <input type="text" id="node-config-input-address" placeholder="40" style="width:80px"> &nbsp;10-17, 40-47 or 50-5A (ADR0/1/2 pins)
30
+ </div>
31
+ <div class="form-row">
32
+ <label for="node-config-input-rsense">Sense resistor (mΩ)</label>
33
+ <input type="number" id="node-config-input-rsense" min="0.01" step="0.01" style="width:100px">
34
+ </div>
35
+ <div class="form-row">
36
+ <label for="node-config-input-climit">Current-limit pin</label>
37
+ <select id="node-config-input-climit" style="width:140px">
38
+ <option value="25">GND (25 mV)</option>
39
+ <option value="46">VDD (46 mV)</option>
40
+ </select>
41
+ </div>
42
+ </script>
43
+
44
+ <!-- Read node: trigger → measurements -->
45
+ <script type="text/javascript">
46
+ RED.nodes.registerType('periph-lm25066', {
47
+ category: 'Peripheral',
48
+ color: '#C084FC',
49
+ defaults: {
50
+ name: { value: '' },
51
+ device: { value: '', type: 'periph-lm25066-device', required: true }
52
+ },
53
+ inputs: 1,
54
+ outputs: 1,
55
+ icon: 'font-awesome/fa-bolt',
56
+ label: function() { return this.name || 'LM25066'; },
57
+ paletteLabel: 'LM25066'
58
+ });
59
+ </script>
60
+
61
+ <script type="text/html" data-template-name="periph-lm25066">
62
+ <div class="form-row">
63
+ <label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
64
+ <input type="text" id="node-input-device">
65
+ </div>
66
+ <div class="form-row">
67
+ <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
68
+ <input type="text" id="node-input-name" placeholder="LM25066">
69
+ </div>
70
+ </script>
71
+
72
+ <script type="text/html" data-help-name="periph-lm25066">
73
+ <p>Reads input and output voltage, input current, input power and MOSFET temperature from an LM25066 hot-swap controller over I²C/PMBus.</p>
74
+ <p>Any input message triggers one reading. The device is configured via a <b>periph-lm25066-device</b> config node. The node never writes the control registers (OPERATION, GATE_MASK, DEVICE_SETUP).</p>
75
+
76
+ <h3>Input</h3>
77
+ <p>Any message.</p>
78
+
79
+ <h3>Output</h3>
80
+ <dl class="message-properties">
81
+ <dt>payload.voltage_in_v <span class="property-type">number</span></dt>
82
+ <dd>Input voltage VIN in volts.</dd>
83
+ <dt>payload.voltage_out_v <span class="property-type">number</span></dt>
84
+ <dd>Output voltage VOUT in volts.</dd>
85
+ <dt>payload.current_a <span class="property-type">number</span></dt>
86
+ <dd>Input current in amperes.</dd>
87
+ <dt>payload.power_w <span class="property-type">number</span></dt>
88
+ <dd>Input power in watts.</dd>
89
+ <dt>payload.temperature_c <span class="property-type">number</span></dt>
90
+ <dd>External MOSFET temperature in °C.</dd>
91
+ </dl>
92
+
93
+ <h3>Details</h3>
94
+ <p>The address (<code>0x10</code>–<code>0x17</code>, <code>0x40</code>–<code>0x47</code>, <code>0x50</code>–<code>0x5A</code>) is selected by the
95
+ three-state ADR0/ADR1/ADR2 pins. The current and power conversion depends on the sense resistor value and the CL pin
96
+ (GND = 25&nbsp;mV, VDD = 46&nbsp;mV); a wrong setting scales the readings.</p>
97
+ </script>
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ module.exports = function(RED) {
4
+ const { I2CConnection } = require('periph/src/connection/i2c');
5
+ const { LM25066Minimal } = require('periph/src/chips/power/lm25066');
6
+
7
+ function LM25066DeviceNode(config) {
8
+ RED.nodes.createNode(this, config);
9
+ const node = this;
10
+ try {
11
+ const connection = new I2CConnection(parseInt(config.bus), parseInt(config.address, 16));
12
+ node.driver = new LM25066Minimal(connection, parseFloat(config.rsense), config.climit === '46');
13
+ node.connection = connection;
14
+ } catch (e) {
15
+ node.error('LM25066 init failed: ' + e.message);
16
+ }
17
+ node.on('close', function() {
18
+ if (node.connection) node.connection.close();
19
+ });
20
+ }
21
+ RED.nodes.registerType('periph-lm25066-device', LM25066DeviceNode);
22
+
23
+ function LM25066ReadNode(config) {
24
+ RED.nodes.createNode(this, config);
25
+ const node = this;
26
+ node.device = RED.nodes.getNode(config.device);
27
+
28
+ node.on('input', async function(msg, send, done) {
29
+ if (!node.device || !node.device.driver) {
30
+ node.error('No LM25066 device configured', msg);
31
+ done();
32
+ return;
33
+ }
34
+ try {
35
+ const d = node.device.driver;
36
+ msg.payload = {
37
+ voltage_in_v: await d.voltageIn(),
38
+ voltage_out_v: await d.voltageOut(),
39
+ current_a: await d.current(),
40
+ power_w: await d.power(),
41
+ temperature_c: await d.temperature()
42
+ };
43
+ send(msg);
44
+ done();
45
+ } catch (e) {
46
+ done(e);
47
+ }
48
+ });
49
+ }
50
+ RED.nodes.registerType('periph-lm25066', LM25066ReadNode);
51
+ };
@@ -0,0 +1,89 @@
1
+ <!-- Config node: one instance per physical device -->
2
+ <script type="text/javascript">
3
+ RED.nodes.registerType('periph-ltc4151-device', {
4
+ category: 'config',
5
+ defaults: {
6
+ name: { value: '' },
7
+ bus: { value: '1', required: true, validate: RED.validators.number() },
8
+ address: { value: '6A', required: true },
9
+ rsense: { value: '20', required: true, validate: RED.validators.number() }
10
+ },
11
+ label: function() {
12
+ return this.name || ('LTC4151 @ 0x' + this.address + ' (bus ' + this.bus + ')');
13
+ }
14
+ });
15
+ </script>
16
+
17
+ <script type="text/html" data-template-name="periph-ltc4151-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="LTC4151">
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"> &nbsp;(Linux /dev/i2c-N)
25
+ </div>
26
+ <div class="form-row">
27
+ <label for="node-config-input-address">Address (hex)</label>
28
+ <input type="text" id="node-config-input-address" placeholder="6A" style="width:80px"> &nbsp;67–6F (ADR1/ADR0 pins)
29
+ </div>
30
+ <div class="form-row">
31
+ <label for="node-config-input-rsense">Sense resistor (mΩ)</label>
32
+ <input type="number" id="node-config-input-rsense" min="0.01" step="0.01" style="width:100px">
33
+ </div>
34
+ </script>
35
+
36
+ <!-- Read node: trigger → measurements -->
37
+ <script type="text/javascript">
38
+ RED.nodes.registerType('periph-ltc4151', {
39
+ category: 'Peripheral',
40
+ color: '#C084FC',
41
+ defaults: {
42
+ name: { value: '' },
43
+ device: { value: '', type: 'periph-ltc4151-device', required: true },
44
+ adin: { value: false }
45
+ },
46
+ inputs: 1,
47
+ outputs: 1,
48
+ icon: 'font-awesome/fa-bolt',
49
+ label: function() { return this.name || 'LTC4151'; },
50
+ paletteLabel: 'LTC4151'
51
+ });
52
+ </script>
53
+
54
+ <script type="text/html" data-template-name="periph-ltc4151">
55
+ <div class="form-row">
56
+ <label for="node-input-device"><i class="fa fa-microchip"></i> Device</label>
57
+ <input type="text" id="node-input-device">
58
+ </div>
59
+ <div class="form-row">
60
+ <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
61
+ <input type="text" id="node-input-name" placeholder="LTC4151">
62
+ </div>
63
+ <div class="form-row">
64
+ <label for="node-input-adin"><i class="fa fa-plug"></i> ADIN</label>
65
+ <input type="checkbox" id="node-input-adin" style="width:auto"> &nbsp;also output the ADIN pin voltage
66
+ </div>
67
+ </script>
68
+
69
+ <script type="text/html" data-help-name="periph-ltc4151">
70
+ <p>Reads supply voltage, load current and power from an LTC4151 7&ndash;80&nbsp;V high-side power monitor over I²C.</p>
71
+ <p>Any input message triggers one reading. The device is configured via a <b>periph-ltc4151-device</b> config node.</p>
72
+
73
+ <h3>Output</h3>
74
+ <dl class="message-properties">
75
+ <dt>payload.voltage <span class="property-type">number</span></dt>
76
+ <dd>Supply voltage at VIN in volts.</dd>
77
+ <dt>payload.current <span class="property-type">number</span></dt>
78
+ <dd>Load current in amperes (sense voltage divided by the sense resistor).</dd>
79
+ <dt>payload.power <span class="property-type">number</span></dt>
80
+ <dd>Load power in watts.</dd>
81
+ <dt>payload.adin <span class="property-type">number</span></dt>
82
+ <dd>ADIN pin voltage in volts (only when the <b>ADIN</b> option is enabled).</dd>
83
+ </dl>
84
+
85
+ <h3>Details</h3>
86
+ <p>Configure the I²C bus number, the address (<code>0x67</code>&ndash;<code>0x6F</code>, default <code>0x6A</code> with
87
+ both address pins open) and the sense resistor value in milliohms (default 20) in the device config node.
88
+ The node uses the continuous scan mode (about 7.5&nbsp;Hz) and never writes the chip.</p>
89
+ </script>
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ module.exports = function(RED) {
4
+ const { I2CConnection } = require('periph/src/connection/i2c');
5
+ const { LTC4151Full } = require('periph/src/chips/power/ltc4151');
6
+
7
+ function LTC4151DeviceNode(config) {
8
+ RED.nodes.createNode(this, config);
9
+ const node = this;
10
+ try {
11
+ const connection = new I2CConnection(parseInt(config.bus), parseInt(config.address, 16));
12
+ node.driver = new LTC4151Full(connection, parseFloat(config.rsense) / 1000);
13
+ node.connection = connection;
14
+ } catch (e) {
15
+ node.error('LTC4151 init failed: ' + e.message);
16
+ }
17
+ node.on('close', function() {
18
+ if (node.connection) node.connection.close();
19
+ });
20
+ }
21
+ RED.nodes.registerType('periph-ltc4151-device', LTC4151DeviceNode);
22
+
23
+ function LTC4151ReadNode(config) {
24
+ RED.nodes.createNode(this, config);
25
+ const node = this;
26
+ node.device = RED.nodes.getNode(config.device);
27
+
28
+ node.on('input', async function(msg, send, done) {
29
+ if (!node.device || !node.device.driver) {
30
+ node.error('No LTC4151 device configured', msg);
31
+ done();
32
+ return;
33
+ }
34
+ try {
35
+ const d = node.device.driver;
36
+ const r = await d.readAll();
37
+ msg.payload = {
38
+ voltage: r.vin,
39
+ current: r.current,
40
+ power: r.power
41
+ };
42
+ if (config.adin) msg.payload.adin = r.adin;
43
+ send(msg);
44
+ done();
45
+ } catch (e) {
46
+ done(e);
47
+ }
48
+ });
49
+ }
50
+ RED.nodes.registerType('periph-ltc4151', LTC4151ReadNode);
51
+ };
@@ -0,0 +1,89 @@
1
+ <!-- Config node: one instance per physical device -->
2
+ <script type="text/javascript">
3
+ RED.nodes.registerType('periph-max17048-device', {
4
+ category: 'config',
5
+ defaults: {
6
+ name: { value: '' },
7
+ bus: { value: '1', required: true, validate: RED.validators.number() },
8
+ address: { value: '36', required: true },
9
+ cells: { value: '1', required: true }
10
+ },
11
+ label: function() {
12
+ return this.name || ('MAX17048 @ 0x' + this.address + ' (bus ' + this.bus + ')');
13
+ }
14
+ });
15
+ </script>
16
+
17
+ <script type="text/html" data-template-name="periph-max17048-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="MAX17048">
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"> &nbsp;(Linux /dev/i2c-N)
25
+ </div>
26
+ <div class="form-row">
27
+ <label for="node-config-input-address">Address (hex)</label>
28
+ <input type="text" id="node-config-input-address" placeholder="36" style="width:80px"> &nbsp;fixed: 36 (0x36)
29
+ </div>
30
+ <div class="form-row">
31
+ <label for="node-config-input-cells">Cells</label>
32
+ <select id="node-config-input-cells" style="width:160px">
33
+ <option value="1">1 (MAX17048)</option>
34
+ <option value="2">2 (MAX17049)</option>
35
+ </select>
36
+ </div>
37
+ </script>
38
+
39
+ <!-- Read node: trigger → measurements -->
40
+ <script type="text/javascript">
41
+ RED.nodes.registerType('periph-max17048', {
42
+ category: 'Peripheral',
43
+ color: '#C084FC',
44
+ defaults: {
45
+ name: { value: '' },
46
+ device: { value: '', type: 'periph-max17048-device', required: true },
47
+ rate: { value: false }
48
+ },
49
+ inputs: 1,
50
+ outputs: 1,
51
+ icon: 'font-awesome/fa-battery-half',
52
+ label: function() { return this.name || 'MAX17048'; },
53
+ paletteLabel: 'MAX17048'
54
+ });
55
+ </script>
56
+
57
+ <script type="text/html" data-template-name="periph-max17048">
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
+ <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="MAX17048">
65
+ </div>
66
+ <div class="form-row">
67
+ <label for="node-input-rate"><i class="fa fa-line-chart"></i> Rate</label>
68
+ <input type="checkbox" id="node-input-rate" style="width:auto"> &nbsp;also output the charge/discharge rate
69
+ </div>
70
+ </script>
71
+
72
+ <script type="text/html" data-help-name="periph-max17048">
73
+ <p>Reads cell voltage and state of charge from a MAX17048 (1-cell) or MAX17049 (2-cell) lithium fuel gauge over I²C.</p>
74
+ <p>Any input message triggers one reading. The device is configured via a <b>periph-max17048-device</b> config node.</p>
75
+
76
+ <h3>Output</h3>
77
+ <dl class="message-properties">
78
+ <dt>payload.voltage <span class="property-type">number</span></dt>
79
+ <dd>Cell voltage in volts (pack voltage for the 2-cell part).</dd>
80
+ <dt>payload.percent <span class="property-type">number</span></dt>
81
+ <dd>State of charge in % (0&ndash;100).</dd>
82
+ <dt>payload.charge_rate <span class="property-type">number</span></dt>
83
+ <dd>Approximate charge (positive) or discharge rate in %/h (only when the <b>Rate</b> option is enabled).</dd>
84
+ </dl>
85
+
86
+ <h3>Details</h3>
87
+ <p>The address is fixed at <code>0x36</code> (shared with the AS5600). The first state-of-charge value is valid
88
+ about 1&nbsp;s after power-up. The node only reads; it never writes the chip.</p>
89
+ </script>
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ module.exports = function(RED) {
4
+ const { I2CConnection } = require('periph/src/connection/i2c');
5
+ const { MAX17048Full } = require('periph/src/chips/power/max17048');
6
+
7
+ function MAX17048DeviceNode(config) {
8
+ RED.nodes.createNode(this, config);
9
+ const node = this;
10
+ try {
11
+ const connection = new I2CConnection(parseInt(config.bus), parseInt(config.address, 16));
12
+ node.driver = new MAX17048Full(connection, parseInt(config.cells));
13
+ node.connection = connection;
14
+ } catch (e) {
15
+ node.error('MAX17048 init failed: ' + e.message);
16
+ }
17
+ node.on('close', function() {
18
+ if (node.connection) node.connection.close();
19
+ });
20
+ }
21
+ RED.nodes.registerType('periph-max17048-device', MAX17048DeviceNode);
22
+
23
+ function MAX17048ReadNode(config) {
24
+ RED.nodes.createNode(this, config);
25
+ const node = this;
26
+ node.device = RED.nodes.getNode(config.device);
27
+
28
+ node.on('input', async function(msg, send, done) {
29
+ if (!node.device || !node.device.driver) {
30
+ node.error('No MAX17048 device configured', msg);
31
+ done();
32
+ return;
33
+ }
34
+ try {
35
+ const d = node.device.driver;
36
+ msg.payload = {
37
+ voltage: await d.voltage(),
38
+ percent: await d.percent()
39
+ };
40
+ if (config.rate) msg.payload.charge_rate = await d.chargeRate();
41
+ send(msg);
42
+ done();
43
+ } catch (e) {
44
+ done(e);
45
+ }
46
+ });
47
+ }
48
+ RED.nodes.registerType('periph-max17048', MAX17048ReadNode);
49
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-periph-power",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "Node-RED nodes for power monitor chips",
5
5
  "keywords": [
6
6
  "node-red",
@@ -14,10 +14,15 @@
14
14
  "node-red": {
15
15
  "nodes": {
16
16
  "ina226": "nodes/ina226/ina226.js",
17
+ "ina260": "nodes/ina260/ina260.js",
17
18
  "ina219": "nodes/ina219/ina219.js",
18
19
  "ina3221": "nodes/ina3221/ina3221.js",
19
20
  "ade7953": "nodes/ade7953/ade7953.js",
20
- "axp2101": "nodes/axp2101/axp2101.js"
21
+ "axp2101": "nodes/axp2101/axp2101.js",
22
+ "lc709203f": "nodes/lc709203f/lc709203f.js",
23
+ "periph-lm25066": "nodes/lm25066/lm25066.js",
24
+ "periph-ltc4151": "nodes/ltc4151/ltc4151.js",
25
+ "periph-max17048": "nodes/max17048/max17048.js"
21
26
  }
22
27
  },
23
28
  "dependencies": {