Skip to content
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

Alert for Rapid Battery Drain #369

Open
bjorkert opened this issue Jan 30, 2025 · 3 comments
Open

Alert for Rapid Battery Drain #369

bjorkert opened this issue Jan 30, 2025 · 3 comments

Comments

@bjorkert
Copy link
Contributor

Description

The existing low battery alert in Loop Follow is useful, but an additional alert for rapid battery drain would be beneficial.

Use Case

There are scenarios where an app or background process consumes excessive power, causing rapid battery depletion. While the existing low battery alarm helps, an earlier warning when the battery is dropping unusually fast would provide even more timely intervention.

Proposed Feature

  • Add an optional alert for when the battery percentage drops by X% in Y minutes.
  • This would help identify situations where a device is losing battery rapidly before reaching a critically low level.
  • To prevent unnecessary notifications, this feature should be configurable (disabled by default) and allow users to set their own thresholds.

Potential Implementation

  • Monitor battery percentage changes over time.
  • If the battery drops by more than a configurable threshold (e.g., 5% in 10 minutes), trigger an alert.
  • Provide customization options in settings to enable or adjust the threshold.
@dnovosel
Copy link
Contributor

I think this was opened because of me :)

I was asking if this was something already available in the community (via loop or otherwise) and my partner did some asking around, and suddenly this new issue is opened.

I have a working prototype already which does the bare minimum and is configurable with alarm settings. I'm new the code-base, and I think I have covered the required changes, but unsure if there are other dependencies I might be missing.

I also have some open points which might be worth discussing more. Not sure if it's better to discuss here, or should I raise a PR and we can discuss there?

@bjorkert
Copy link
Contributor Author

That's great! Create a PR and we can start from there.

Please create a PR from a branch you create (not dev, main etc) and target it towards dev.

@dnovosel
Copy link
Contributor

dnovosel commented Feb 2, 2025

Created: #370

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

No branches or pull requests

2 participants