Ed - When some new installed module's documenta...
When some new installed module's documentation states to copy some file to
~/.node-red
, what would be the equivalent folder in a "Signal K" install?10 Replies
~/.signalk/red
Thank you, but already tried that. Also restarted SK and started fresh browser-session after that. Might you want to try, it is module "victron-modbus" and the file it needs to fetch a list of attributes is "attributes.csv" from https://github.com/victronenergy/dbus_modbustcp/blob/master/attributes.csv
looking at the code for that module, it should work
is there a reason you are using that instead of the official victron palette?
Not sure yet what I need. I’ve build a LiFePO4 battery with a JK BMS. There is a driver (open source) for VenusOS. I’m hoping to create some automation for this setup, like switching charger off if temp of alternator gets to high. Even create switches in KIP for it.
the venus plugin can do all that, you don't need the victron palette in node-red
did you install and configure the signalk-venus-plugin ?
Ahhh, that looks promising! Will definitely check that out, will make it so much cleaner for doing what I have in mind. Thanks!
And indeed @Scott Bender that enabled me to see a lot of new paths coming into Signal K. Nice.
But how can I 'set' a value? For instance "electrical.batteries.house.bms.allowToCharge" has a value of "1" but how can I use Node-Red to send a "0"?
I've tried to do this with the Victron palette "victronenergy/node-red-contrib-victron" but shows error:
There are no battery monitor services available. Please check that a battery monitor is connected or try a different node.
And it doesn't matter which node I choose; also fails for "relais" etc.
I wondered how these nodes should know where to connect to...
I've enabled dbus over tcp and do get data in whith "telnet ip.ip.ip.ip 78" so that part is fine.
But I can't find or think of any config for the palette to know that address.
The documentation states:
set the environment variable NODE_RED_DBUS_ADDRESS to connect via TCP. The variable should be a string with an ip and port separated by a colon, e.g. export NODE_RED_DBUS_ADDRESS=192.168.1.1:78
and I did that in /etc/environments
You can use send-put for some of the paths. Allow to charge is not one of them, I can add that later today.
You can put that evironment variable in ~/.signalk/signalk-server
Great!
Will try Thursday.
While at it, can you also add the same for “allow to discharge” as well?
Yep
That its done, v1.42.0 of the plugin
I don’t have any way to test it, so let me know…
Tested it but doesn't work. Node generated:
"put error 502 Did not receive change confirmation"
Could be that the driver in VenusOS for the BMS doesn't accept set/put commands, only readable. Too bad.