From 81fb48fd611443d20c5d18490e0828c6a5ce75fc Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Mon, 12 Jun 2023 21:58:42 +0200 Subject: [PATCH] Fix small typos --- README.md | 2 +- dbus-batrium-native/batrium.py | 2 +- dbus-batrium-native/dbus-batrium-native.py | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dc5dc1c..b80f3cb 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ I try to integrate every datapoint from Batriums BMS to fill Victrons registers. - Ah, kWh charged and discharged is calcualated by script (see above) - Capacity of battery must be entered into script batrium.py (see above) - dbus script is started by rc.local which gets executed last, so all mppts and multiplus' showing temporarily "BMS missing" and need to be cleared after (re-)boot of Venus OS - - include calculation of State Of Health, based on Ah discharge and SoC State after full charge, becuase Batrium does not have + - include calculation of State Of Health, based on Ah discharge and SoC State after full charge, because Batrium does not have ### Victrons datapoints This script will emulate one of Victrons own BMS, therefore are many registers to fill, but I dont know how to fill all. diff --git a/dbus-batrium-native/batrium.py b/dbus-batrium-native/batrium.py index f3fb359..8fce38f 100644 --- a/dbus-batrium-native/batrium.py +++ b/dbus-batrium-native/batrium.py @@ -171,7 +171,7 @@ def main(): bat = BatriumBattery(connection='can1') listeners = [ - #logger, # CAN raw data logging + #logger, # CAN raw data logging bat ] diff --git a/dbus-batrium-native/dbus-batrium-native.py b/dbus-batrium-native/dbus-batrium-native.py index 8cddd8f..bfb968d 100644 --- a/dbus-batrium-native/dbus-batrium-native.py +++ b/dbus-batrium-native/dbus-batrium-native.py @@ -329,7 +329,7 @@ class DbusBatteryService: def main(): ## Cli parser to set interface and for debbuging purposes - parser = ArgumentParser(description='dbus_batrium', add_help=True) + parser = ArgumentParser(description='dbus-batrium-native integration', add_help=True) parser.add_argument('-d', '--debug', help='enable debug logging', action='store_true') parser.add_argument('-i', '--interface', help='CAN interface') parser.add_argument('-p', '--print', help='print only') @@ -348,8 +348,7 @@ def main(): logging.info('No CAN interface specified, using default can0') args.interface = 'can0' - logging.info('Starting dbus-batrium-native integration %s on %s ' % - (VERSION, args.interface)) + logging.info('Starting dbus-batrium-native integration %s on %s ' % (VERSION, args.interface)) from dbus.mainloop.glib import DBusGMainLoop # Have a mainloop, so we can send/receive asynchronous calls to and from dbus