Skip to content

Add Battery Health Notifier - Fixes #754#834

Merged
sumanth-0 merged 3 commits into
sumanth-0:mainfrom
AniruddhaAdak:AniruddhaAdak-patch-1
Oct 13, 2025
Merged

Add Battery Health Notifier - Fixes #754#834
sumanth-0 merged 3 commits into
sumanth-0:mainfrom
AniruddhaAdak:AniruddhaAdak-patch-1

Conversation

@AniruddhaAdak

Copy link
Copy Markdown
Contributor

This PR adds a battery health monitoring script as requested in issue #754.

Changes

  • Created folder snippets/battery_health_notifier/
  • Added battery_health_notifier.py (92 lines - under 100)
  • Added comprehensive README.md with usage instructions

Features

  • Monitors battery percentage, charging status, and time remaining using psutil
  • Sends desktop notifications for low battery (≤20%) and high charge (≥80%)
  • Cross-platform support (Windows, macOS, Linux)
  • Customizable thresholds and check intervals
  • Lightweight with minimal resource usage

Dependencies

  • psutil (for battery information)
  • plyer (for desktop notifications)

Fixes #754

Implements a battery health monitoring script using psutil that:
- Monitors battery percentage, charging status, and time remaining
- Sends notifications for low battery (<=20%) and high charge (>=80%)
- Provides continuous monitoring with customizable thresholds
- Uses plyer for desktop notifications

Fixes sumanth-0#754
Added a README file for the Battery Health Notifier project, detailing features, requirements, installation, usage, and customization options.
Reduced the battery health notifier script from 109 to 96 lines while maintaining all functionality
@sumanth-0
sumanth-0 merged commit 4fc996c into sumanth-0:main Oct 13, 2025
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.

Battery Health Notifier

2 participants