Kees - i want to connect to dbus of victron dbu...
i want to connect to dbus of victron dbus over tcp, but i have no idea how i get the NODE_RED_DBUS_ADDRESS set somewhere that is required as "export". I am looking for which settings.js file embedded node-red uses, but can't find it.. https://github.com/victronenergy/node-red-contrib-victron?tab=readme-ov-file#Installation-and-Usage
6 Replies
you can put it in ~/.signalk/signalk-server
make sure it is right before the last command there, which starts the server
thanks for the super quick reply. should i add NODE_RED_DBUS_ADDRESS=ip:port or process.env.NODE_RED_DBUS_ADDRESS=ip:port in there?
export NODERED…
export NODE_RED_DBUS_ADDRESS=ip:port
Thanks, I putted it like this in the file
export NODE_RED_DBUS_ADDRESS=192.18.4.200:78
export DEBUG=node-red-contrib-victron:*
/usr/lib/node_modules/signalk-server/bin/signalk-server -c /home/pi/.signalk $*
Then restarted signalk, but no success yet with the debug loglooks good. may be able to use
venus.local
, instead of the hardcoded ip. I do.that worked
Apr 24 21:15:36 2024-04-24T19:15:36.788Z node-red-contrib-victron:dbus Connecting to TCP address tcp:host=venus.local,port=78.
Apr 24 21:15:37 2024-04-24T19:15:37.296Z node-red-contrib-victron:dbus Connected to D-Bus.
Thanks a lot hero. I think this can be part of some docs to be honest. I searched myself crazy last hours I thought i would figure out myself, but then after asking you fixed within 10 min. Couldn't find any good clues, tried a lot of things.