aceinnolab / Inkycal

Create awesome e-paper dashboards within minutes! Modularity? Check! Python3? Check? Works on Raspberry Pi Zero W? Check! Support for own modules? Check!
https://aceinnolab.github.io/Inkycal/
GNU General Public License v3.0
1.16k stars 125 forks source link

[FEATURE]: Battery level on PiSugar version please #378

Closed ounrequitedo closed 1 month ago

ounrequitedo commented 1 month ago

Is your feature request related to a problem? Please describe. don't know battery level

Describe the solution you'd like Module for a single-line battery-level % or better yet addition to the debug line at the bottom showing last update

Describe alternatives you've considered installing i2c-tools, i couldn't get the battery level to read out and gave up

ounrequitedo commented 1 month ago

bump because i was asked to ^_^

aceisace commented 1 month ago

Thanks for bumping this up. I've implemented this feature in a feature branch, which you can test like this:

cd ~/Inkycal
source venv/bin/activate
git stash # in case you have custom changes
git pull # update the repo
git stash pop # undo the custom changes
git checkout feature/#378 # switch to branch with this feature request
python inky_run.py

It basically boils down to the following: pisugar battery level implementation

Please let me know if this works for you so I can merge the PR 👍