bradcagle / dbus-btbattery

20 stars 3 forks source link

Show partial port in ProductName and CustomName in dbushelper.py #3

Open hame1212 opened 1 year ago

hame1212 commented 1 year ago

Hi, I tested your interesting project with two batteries in parallel by starting two instances of dbus-btbattery.py .

To differentiate between the batteries, I added the last four digits of the port to the ProductName and CustomName in dbushelper.py like "/ProductName", "BT-Battery(" + self.battery.port[-4:] + ")" instead of self.battery.type

I am eagerly awaiting your parallel battery update...

bradcagle commented 1 year ago

Nice, I'll add that to the code.

Ok since you'll be able to test, I'll start the parallel support soon.