Tobias Witek
bc621823b2
[modules/battery-upower] Do not throw exception (dbus errors)
...
Try to "gracefully" display n/a instead.
2019-10-20 15:20:48 +02:00
Tobias Witek
603fc1ddc6
[modules/battery_all] Add logging if no battery is found
2019-10-20 14:29:08 +02:00
Tobias Witek
cc58817978
[modules/battery_all] Better error handling if battery not found
...
When there are errors identifying the battery, make sure that the module
returns "n/a" instead of just throwing an error.
fixes #455
2019-10-20 09:58:47 +02:00
Martin
2cad9f2e46
[battery_all] Fixed the battery path and used os to solve for the correct paths
2019-08-30 16:05:20 +02:00
Tobias Witek
86c8dd5219
[modules/battery_all] Remove defunct estimate calculation code
...
A decent fallback implementation would require some kind of differential
measurement to be able to calculate a rate of change.
For now, that is simply more complicated than warranted.
Thanks to @stoeps13 for pointing that out!
2019-04-24 20:09:03 +02:00
Tobias Witek
e0a7ca5b87
[modules/battery_all] Fix remaining time calculation
...
Thanks to @stoeps13 for pointing out a bug in the calculation of the
remaining time for multiple batteries.
see #379
2019-04-23 06:05:36 +02:00
927589452
c29a1e1a8c
Update battery_all.py
...
added battery device for pinebooks
2018-11-26 13:02:46 +01:00
Martin Morlot
876ff7dd76
Fix the remaing time so that it displays the time for all batteries and not just one battery
2018-11-17 21:29:18 +01:00
Tobias Witek
5f8becfb55
[modules/battery_all] Some small code simplifications
...
Make update routine smaller by creating a single, static widget.
2018-11-17 18:32:21 +01:00
Tobias Witek
e4a97eca10
[modules/battery_all] Remove showdevice parameter
...
Showing the device name doesn't add anything for the battery_all module,
as it combines all batteries.
2018-11-17 18:26:19 +01:00
Martin Morlot
1bd85ce8d1
My first commit: the battery all
2018-11-17 16:36:09 +01:00