From 6393e7698df274c8eee159dbd4d1ce909e5da74c Mon Sep 17 00:00:00 2001 From: Louis Van Der Walt <26077665+Louisvdw@users.noreply.github.com> Date: Fri, 30 Sep 2022 20:00:37 +0200 Subject: [PATCH] Renogy fixes (#225) * Add support for Renogy RBT100LFP12SH (#205) May have fixed incorrectly reporting of total and current amp hours for other Renogy batteries as well. * handle read only FS * v0.13 Co-authored-by: Johan Anderholm <1528839+janderholm@users.noreply.github.com> --- etc/dbus-serialbattery/reinstalllocal.sh | 4 ++-- etc/dbus-serialbattery/utils.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/dbus-serialbattery/reinstalllocal.sh b/etc/dbus-serialbattery/reinstalllocal.sh index 1bb6046b..48484ed5 100644 --- a/etc/dbus-serialbattery/reinstalllocal.sh +++ b/etc/dbus-serialbattery/reinstalllocal.sh @@ -4,8 +4,8 @@ DRIVER=/opt/victronenergy/dbus-serialbattery RUN=/opt/victronenergy/service-templates/dbus-serialbattery OLD=/opt/victronenergy/service/dbus-serialbattery -#/dev/mmcblk1p3 mountpoint / was made read only in 2.91 release -mount -o remount,rw /dev/mmcblk1p3 / +#handle read only mounts +sh /opt/victronenergy/swupdate-scripts/remount-rw.sh if [ -d "$DRIVER" ]; then if [ -L "$DRIVER" ]; then diff --git a/etc/dbus-serialbattery/utils.py b/etc/dbus-serialbattery/utils.py index 29f324cf..44c4e845 100644 --- a/etc/dbus-serialbattery/utils.py +++ b/etc/dbus-serialbattery/utils.py @@ -11,8 +11,8 @@ logger.setLevel(logging.INFO) # Constants - Need to dynamically get them in future -DRIVER_VERSION = 0.12 -DRIVER_SUBVERSION = '~4' +DRIVER_VERSION = 0.13 +DRIVER_SUBVERSION = '' zero_char = chr(48) degree_sign = u'\N{DEGREE SIGN}' # Cell min/max voltages - used with the cell count to get the min/max battery voltage