Skip to content

Create Smart Battery Widget #3947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Conversation

RKBoss6
Copy link
Contributor

@RKBoss6 RKBoss6 commented Jul 25, 2025

Uses smartbatt module to provide accurate battery life predictions in terms of days, tailored to you.

@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Jul 26, 2025

I'm getting an error saying widsmartbatt has no entrypoint, anyone know why this is? Thanks.

@RelapsingCertainly
Copy link

hey quick question,

i was just browsing the source code. Whats the reason for updating once every 30 seconds instead of like once a minute or even 10 minutes (when not charging) and once a minute (when charging)?

@bobrippling
Copy link
Collaborator

I'm getting an error saying widsmartbatt has no entrypoint, anyone know why this is? Thanks.

The checker's expecting your widget to be named a particular way:

https://github.com/espruino/BangleApps/blob/76754841494be528a26a06b6fd98f7ad8749b778/bin/sanitycheck.js#L458-L458=

@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Jul 30, 2025

@bobrippling Thanks for the help!

@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Jul 30, 2025

@RelapsingCertainly As for the update times, this was modified from A_Battery_Widget, and still has the update time changing. As it uses the smartbatt module, it really doesn't make sense anymore, so I can remove it. Thanks for the catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants