Fix small typos
This commit is contained in:
parent
b4ca37a514
commit
81fb48fd61
|
@ -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)
|
- Ah, kWh charged and discharged is calcualated by script (see above)
|
||||||
- Capacity of battery must be entered into script batrium.py (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
|
- 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
|
### 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.
|
This script will emulate one of Victrons own BMS, therefore are many registers to fill, but I dont know how to fill all.
|
||||||
|
|
|
@ -171,7 +171,7 @@ def main():
|
||||||
bat = BatriumBattery(connection='can1')
|
bat = BatriumBattery(connection='can1')
|
||||||
|
|
||||||
listeners = [
|
listeners = [
|
||||||
#logger, # CAN raw data logging
|
#logger, # CAN raw data logging
|
||||||
bat
|
bat
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -329,7 +329,7 @@ class DbusBatteryService:
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
## Cli parser to set interface and for debbuging purposes
|
## 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('-d', '--debug', help='enable debug logging', action='store_true')
|
||||||
parser.add_argument('-i', '--interface', help='CAN interface')
|
parser.add_argument('-i', '--interface', help='CAN interface')
|
||||||
parser.add_argument('-p', '--print', help='print only')
|
parser.add_argument('-p', '--print', help='print only')
|
||||||
|
@ -348,8 +348,7 @@ def main():
|
||||||
logging.info('No CAN interface specified, using default can0')
|
logging.info('No CAN interface specified, using default can0')
|
||||||
args.interface = 'can0'
|
args.interface = 'can0'
|
||||||
|
|
||||||
logging.info('Starting dbus-batrium-native integration %s on %s ' %
|
logging.info('Starting dbus-batrium-native integration %s on %s ' % (VERSION, args.interface))
|
||||||
(VERSION, args.interface))
|
|
||||||
|
|
||||||
from dbus.mainloop.glib import DBusGMainLoop
|
from dbus.mainloop.glib import DBusGMainLoop
|
||||||
# Have a mainloop, so we can send/receive asynchronous calls to and from dbus
|
# Have a mainloop, so we can send/receive asynchronous calls to and from dbus
|
||||||
|
|
Loading…
Reference in a new issue