Closed bossman90 closed 4 months ago
Thank you for your efforts! I had this in mind, but the overall problem was that that needed a shorter update interval. My previous default value was 10 min now I have reduced it to 1 min in order for the effect of charging being visible in a reasonable amount of time. I hope you like my adjustments here: https://github.com/yurtemre7/mouse-battery/commit/a08a4ec52205b61daa3f2bae18b1cf7159ec110a
Will release soon after this comment!
Looks really good! One thing to consider is to add "charging finished" feature to know when you can unplug the mouse. I've noticed that my mouse can't be charged to 100% but 95% - that's why I've changed the code to:
if battery_level is not None and battery_level == 95 and battery_charging is True:
draw.rectangle((0, 100 - battery_level, 100, 100), fill="purple")
It would be great to implement charging status. I've made some code changes for this - you can review it if its optimized or something