-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
many improvements #393
many improvements #393
Conversation
Hi @Louisvdw , please find in this PR quite a lot refactorings (see the PR description for details) Best regards, |
All the things you move to the ini is going to move to the GUI settings that I am busy changing. I like the default ini as we can use that to create different default value sets. I'll have to change the GUI settings to read from that. The values in that branch is then stored in the dbus, cause any changes can then trigger a update to the GUI. The rest of the items look fine. |
Hi @Louisvdw , thank you for the time reviewing this change. Am I right with my understanding that I should:
Should I also:
|
I now removed default_config.ini, reading that values to utils.py and publishing the data to dbus. As I understood, you are fine with the remaining change. Let me know If I can support with this default_ini approach somehow. Best regards, Philip |
# Conflicts: # create_build.sh
Sorry. I was not very clear. |
How is the gui-settings to work? Do you have an Idea where to persist the changes, so that they remain set if the driver is reinstalled? |
@ppuetsch The GUI Settings branch is to create a few new qml display files that bind to these values that the user can then change. So no more files to edit or change. |
Hello @Louisvdw and @ppuetsch, I follow your development of charge/discharge parameters calculation. Before I tried the Version 0.14.3 (I think it was 0.14.0) the charge voltage limitation according the most full cell as well as "Floating" didn't work and SOC from JK BMS is useless anyway (bad current measurement). Therefore I integrated own SOC and charge/discharge parameter calculation into my AggregateBatteries. Now I see your progress and think about discontinuation and removal of charge/discharge parameters calculation from my tool to keep it simple and not to do your work second time. Other option is to finish it as another approach and perhaps support you - I believe it can be done simpler as momentarily in your program. I tried today the newest commit with default_config.ini, but it didn't start, I'll try to understand it later, for this time I continue with the last release. Your calculation is not fully clear for me, please answer/comment:
Last but not least - thanks a lot for your work, for me it is not just a software to use, but also a great opportunity to learn new things. Best Regards, |
This PR:
I tested this locally with a JKBMS/16c and it works nicely. I had no chance to test against other BMSes.
If you like this PR, i suggest to change the documentation (especially https://github.com/Louisvdw/dbus-serialbattery/wiki/How-to-install#how-to-edit-utilspy as utils.py shouldn't be edited anymore by a user - instead a config.ini file should be created as copy from default_config.ini where only the values to be changed remain)