Dr-Gigavolt / dbus-aggregate-batteries

Virtual service to merge multiple serial batteries
MIT License
66 stars 11 forks source link

Start issue #25

Closed djkakadu closed 1 year ago

djkakadu commented 1 year ago

Sorry for nebwie question. But what exactly i need put into rc.local

I tryed several options to start but nothing happened. Thank you

djkakadu commented 1 year ago

If I try start python3 aggregatebatteries.py

These error here:

root@einstein:/data/dbus-aggregate-batteries# python3 aggregatebatteries.py
  File "aggregatebatteries.py", line 458
    Current = Current_VE                                                                            # BMS current overwritten only if no exception raised
                                                                                                                                                        ^
TabError: inconsistent use of tabs and spaces in indentation
Dr-Gigavolt commented 1 year ago

Hello, the error seems to be happened by editing directly in github and mixing tabs and spaces. I just corrected it in github. You can replace the tabs at the begin of the line 458 by spaces in your mashine.

Dr-Gigavolt commented 1 year ago

Into rc.local you should add the line ln -s /data/dbus-aggregate-batteries/service /service/dbus-aggregate-batteries

(see readme.md)

djkakadu commented 1 year ago

Hello, the error seems to be happened by editing directly in github and mixing tabs and spaces. I just corrected it in github. You can replace the tabs at the begin of the line 458 by spaces in your mashine.

These help to start via console everything work good but..... If i close console aggregatebatteries dissapear. How its start on startup rc.local doesnt work thank you.

Dr-Gigavolt commented 1 year ago

Of course it stops if you close the console. This is good only for tests. If you follow the readme file it should start automatically after restart of Venus. There is only one case known when it didn't work (any more) and here is the solution: https://github.com/Dr-Gigavolt/dbus-aggregate-batteries/issues/24

djkakadu commented 1 year ago

Everything work now. 💯 After hundred of tries i lost permission on run to 744...... My mystake..

Thank you again.

Best regards from Slovakia 😉

Dr-Gigavolt commented 1 year ago

Zdravím naspäť na Slovensko 😀

djkakadu commented 1 year ago

Tak keď po slovensky tak len ešte raz poďakujem za skvelú robotu. Presne toto som potreboval k mojím dvom jkbms. Chvíľku som používal aggregate batteries čo je k dispozícii v package managery, ale to len spočitavalo hodnoty, toto je premyslené a omnoho lepšie.! Screenshot_20230409_164637_nl.victronenergy_edit_96312921096761.jpg