battery api
Posted: 11 Jul 2022, 12:39
Hello,
we have a web application that accesses the browser's battery API. From Mozilla there is information (https://developer.mozilla.org/en-US/doc ... Status_API) for this, strangely Firefox does not support the battery indicator. So I installed Chrome which supports this.
But chrome browser always shows 100% battery level.
Can I do something on the system side so that the correct battery level is displayed?
With
I can display the correct battery level on the command line.
BR,
Michael
we have a web application that accesses the browser's battery API. From Mozilla there is information (https://developer.mozilla.org/en-US/doc ... Status_API) for this, strangely Firefox does not support the battery indicator. So I installed Chrome which supports this.
But chrome browser always shows 100% battery level.
Can I do something on the system side so that the correct battery level is displayed?
With
Code: Select all
cat /sys/class/power_supply/axp288_fuel_gauge/capacity
BR,
Michael