MindFreeze / dalybms

Scripts for interfacing with Daly Smart BMS
MIT License
17 stars 8 forks source link

ttyUSB0 #7

Open Mak158474 opened 7 months ago

Mak158474 commented 7 months ago

Hi, is it possible to be able to change the parth to USB device? I have two same UART devices and I am not able to change the path.

the Issue is that there is possibility to add different path, but the code does not allow anything else that "\dev\ttyUSB0"

thx

MindFreeze commented 7 months ago

Not possible as it is because of this line https://github.com/MindFreeze/dalybms/blob/f566d59eb514674ad45bc55de1d08ae34b8d80ae/config.json#L10 When I wrote this, there was no way to allow devices that might not be connected on start up and most people only have one. I have 2 myself so as a workaround I copied the addon folder to create a second addon with only this line and the "slug" changed to allow for a different device.

Addons have changed since then and it should be possible to do it better now but I already have a working setup and don't have time to mess with it