mr-manuel / venus-os_dbus-serialbattery

Battery Monitor driver for serial battery in VenusOS GX systems
https://mr-manuel.github.io/venus-os_dbus-serialbattery_docs/
MIT License
50 stars 18 forks source link

Use driver without Venus OS #107

Open mr-manuel opened 1 week ago

mr-manuel commented 1 week ago

This PR will make it possible to use this driver also for other projects outside of Venus OS.

mr-manuel commented 1 week ago

@MacGH23 I opened a PR as draft, so we can discuss here on integration. Once you make changes and push them to your master branch it will update here automatically.

  1. What is the goal of your modification? You like to read the BMS data also on other distros like Raspian, but there is no clear way you want to go.
  2. What were your thoughts on how to use your integration? Currently there is no way to use the fetched data in a meaningful way.

An idea could be to use a unix domain socket server where the data is published as JSON and then other programs can fetch the data and do whatever they want. Another idea is that the user can add a script that is called after each cycle and where the data is passed.