dbus-serialbattery
dbus-serialbattery copied to clipboard
Installing this driver destroys a already installed one
1.: Thank you for this very helpful driver!
Describe the bug Installing this driver destroys a already installed one.
To Reproduce Steps to reproduce the behavior:
- working dbus-mqtt-devices driver
- installing this driver
- reboot
- dbus-mqtt-devices driver doesn't work anymore
Expected behavior Installing this driver should not influence other drivers.
Solution Reinstalling dbus-mqtt-devices helped
What could I find
Your installation script replaced a already existing entry in /data/rc.local
Reentering it did not help. I had to reinstall dbus-mqtt-devices
Hasn't dbus-mqtt-devices now overwritten the rc.local
from this project?
Sadly, the mechanism for add-ons in Venus OS is not very friendly. I use multiple drivers and I manually merge them myself - would love to know if there's a better way but unless victron create an /etc/rc.local.d type structure I think this will just be the norm
This was a known issue for the autoinstaller that the VenusOS provides0. For serialbattery it will not be a major issue if the rc.local with it's commands don't exist anymore after installation, but then when you upgrade your VenusOS firmware next time you will have to install the driver again.
The only way to get around this would be to not use the auto installer option, and then adjusting the ssh install script to not destroy any existing files.
@ngardiner
the setup script of dbus-mqtt-devices appends his line to /data/rc.local
For me everything is working new. But just to be aware that this can happen.
@ngardiner the setup script of dbus-mqtt-devices appends his line to
/data/rc.local
For me everything is working new. But just to be aware that this can happen.
That's going to work if nobody puts an exit 0 at the end of their script or runs any command which doesn't either fork or finish immediately, but we are at the point where people have to guess what other scripts are going to do.
It's still a very fragile system whichever way it is cut. The best approach would probably be for someone to build a standard rc.local mux system that allows custom modules to coexist and everyone to plug into that.
i found this old topic, have exactly the same problems In rc-local there was en entry that reinstalled dbus-serialbattery at each reboot - at the reinstall deleted my other entries there
I uncommented that entry - now i want to change max charge / discharge current in utils.py, but this has no effect? utils.py says 20A/20A , Venus GUI says 5A / 60A , very strange Do i really need a reinstall each time the unit reboots?
Hm, sadly the installation deleted my rc.local without any backup. so i lost many settings.....
Fixed in #370