question

acs avatar image
acs asked

External/existing Node-Red connectivity to Venus OS

Is it possible, will it be possible to connect an external/existing Node-Red setup to Venus OS instead of using the internal Node-Red that will be available in a future release of Venus OS?

Venus OSNode-RED
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

3 Answers
mvader (Victron Energy) avatar image
mvader (Victron Energy) answered ยท

Hi @acs; yes its probably possible. You'll have to find out yourself how; or try and hope that someone here on community can help you.

Sorry for not being able to help more; but when using node-red within Venus OS we already give no support; and for this we can give even less support.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

wkirby avatar image
wkirby answered ยท

Yes it is possible. I have done this in the past.
Install a MODBUS-TCP node set on your external setup. Something like this: https://flows.nodered.org/node/node-red-contrib-modbustcp

Then enable MODBUS-TCP service on the Venus device and then you will be able to read the registers as defined in the register list.

Get the TCP register list from the whitepapers section: https://www.victronenergy.com/support-and-downloads/whitepapers


3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

acs avatar image acs commented ยท

I am actually more interested to know wether the functionality here https://github.com/victronenergy/node-red-contrib-victron will be available on an external Node-Red installation as well. It looks like it is if I understand the following correctly https://github.com/victronenergy/node-red-contrib-victron#Installation-and-Usage.

0 Likes 0 ยท
betz avatar image betz acs commented ยท

i was looking for that today. The node red setup needs to be running on the venus device itself, as it is using the dbus messages. So i went looking into how to read dbus remotely. This is what i found: https://serverfault.com/questions/414350/access-d-bus-remotely-using-socat/423290#423290 Untested still.

0 Likes 0 ยท
betz avatar image betz acs commented ยท

woop. after a lot of trial and error i got it working. I got the system dbus of a CCGX locally:

on the CCGX:

$ socat TCP-LISTEN:7272,reuseaddr,fork UNIX-CONNECT:/var/run/dbus/system_bus_socket

locally:

$ socat TCP:192.168.9.104:7272 ABSTRACT-LISTEN:/tmp/victron_dbus

then monitor that local dbus socket:

$ sudo dbus-monitor --address unix:abstract=/tmp/victron_dbus


Hope it helps someone

0 Likes 0 ยท
Stefanie (Victron Energy Staff) avatar image
Stefanie (Victron Energy Staff) answered ยท

I have the node-red-contrib-victron nodes installed on an external Node-Red installation. As far as I can tell it's working limited. Limited for me because my installation lacks of physical devices yet (running in demo mode until I set it up on my boat in 2 weeks). But having access to the demo ESS settings and Ess Control node. The other demo devices I can't access.

3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

acs avatar image acs commented ยท

Thank you for sharing. Hopefully I will be able to start testing this weekend with physical devices.

0 Likes 0 ยท
Rene Mullie avatar image Rene Mullie commented ยท

Stefanie, Ive been following the NodeRed threads and was wondering how your setup came out? Want to do some ESS related stuff as well...

0 Likes 0 ยท
Stefanie (Victron Energy Staff) avatar image Stefanie (Victron Energy Staff) โ™ฆโ™ฆ Rene Mullie commented ยท

Hi Rene,

lot of time has passed since then and lot of things have changed ;-)

I'm not into ESS. So can't answer those specific questions about it. But as you probably noticed, Node-Red (and Signalk) are now integrated into VenuOS Large Image firmware. Almost everything is possible now. There is nothing I can think of which it can't if there is appropriate data available.

If you haven't, take a look here: Venus OS Large: Node-RED and Signal K.
This will give you a glimpse of what it can do for you.

0 Likes 0 ยท