node-red-contrib-victron-vedirect-usb 0.0.2 → 0.0.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 CHANGED
@@ -1,6 +1,8 @@
1
1
  This node uses a [VE.Direct USB connection](https://www.victronenergy.com/accessories/ve-direct-to-usb-interface)
2
2
  to grab the communication on the serial port and translates it into usable data.
3
3
 
4
+ ![Example flow](img/example-flow.png)
5
+
4
6
  A typical use case would be to run Node-RED on a Raspberry Pi and
5
7
  connect to the VE.Direct port of a Victron Energy device. E.g. a
6
8
  SmartShunt, BMV, Inverter or MPPT.
@@ -12,6 +14,10 @@ get read from the serial port. It only outputs on 'inject', so it is needed to
12
14
  trigger output via an _inject_ node to the node. Typically you would configure
13
15
  that to repeat on an interval of a few seconds.
14
16
 
17
+ Note that, when using this from a GX device, it requires you to disable `serial-starter`
18
+ from using the VE.Direct usb cable. The way to accomplish this is described
19
+ [here](https://github.com/victronenergy/venus/wiki/howto-add-a-driver-to-Venus#howto-make-serial-starter-ignore-certain-usb-types).
20
+
15
21
  # Configuration
16
22
 
17
23
  Select the port to use from the dropdown. The dropdown is generated on the fly,
@@ -42,7 +48,8 @@ The above example is abbreviated. It typically consists of more labels.
42
48
 
43
49
  # Status
44
50
 
45
- The node shows a green dot when functional. It shows a
51
+ The node shows a green dot with the connected product when functional. It will
52
+ show a red dot with the error message when something went wrong.
46
53
 
47
54
  # License
48
55
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-victron-vedirect-usb",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Access the Victron equipment with a USB VE.Direct cable",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,6 +12,10 @@ class VEDirect extends EventEmitter {
12
12
  baudRate: 19200,
13
13
  dataBits: 8,
14
14
  parity: 'none'
15
+ }, false)
16
+
17
+ this.serial.on('error', function(err) {
18
+ console.log(err)
15
19
  })
16
20
 
17
21
  this.rl = new DelimiterParser({