-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
base: master
Are you sure you want to change the base?
Conversation
I'm getting an error saying |
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)? |
The checker's expecting your widget to be named a particular way: |
@bobrippling Thanks for the help! |
@RelapsingCertainly As for the update times, this was modified from |
This looks good to go :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
|
||
// Touch to temporarily show battery percent | ||
Bangle.on("touch", function (_btn, xy) { | ||
if (WIDGETS["back"] || !xy) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to check the back widget? This widget'll be in the top-right so touches won't be near the back widget
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bobrippling True, but if they use the widget editor app, that could change, so I think I'll just keep it in for now
Uses
smartbatt
module to provide accurate battery life predictions in terms of days, tailored to you.