mr-manuel / venus-os_dbus-serialbattery

Battery Monitor driver for serial battery in VenusOS GX systems
MIT License
21 stars 9 forks source link

read production date and append to hardware version #5

Closed transistorgit closed 1 year ago

transistorgit commented 1 year ago

this adds the battery production date to the hardware version string. maybe somebody can make use of it to distinguish multiply dalys

mr-manuel commented 1 year ago

I added two fields that could be populated, which are displayed in the GUI under "Device" page:

https://github.com/mr-manuel/venus-os_dbus-serialbattery/blob/f79ce837b9de7e5b940d643838fc251682e95d8a/etc/dbus-serialbattery/dbushelper.py#L132-L137

Could you use them instead of adding it to self.hardware_version?

mr-manuel commented 1 year ago

I made some changes, see https://github.com/mr-manuel/venus-os_dbus-serialbattery/commit/6c4c5458b6480d06adb1482ae27bb68b965d18e8