Skip to content

OS-rahulpoddar/Battery-Status-Alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

The battery_status.py file is a Python script that monitors your computer's battery status and provides audio alerts. Here's what it does:

Purpose

This is a battery monitoring utility that runs continuously in the background and alerts you when:

  • Your battery is getting low (below 30%) and needs charging
  • Your battery is highly charged (above 90%) and should be unplugged

Getting Started

To get this running locally, please follow the steps below:

  1. Install python.
  2. Install the dependencies of this project by running the following commands:
    • pip install psutil
    • pip install pyttsx3
  3. Test it via running locally:
    • python battery_status.py

Run this as a background app. during the windows/system start

To get this running as a background app. during the windows/system start, please follow the steps below:

  1. Convert this into an executable file.
  2. To do that, Install PyInstaller
    • pip install pyinstaller
  3. Run the PyInstaller Command
    • pyinstaller --onefile --noconsole battery_status.py
  4. Find Your Executable inside the dist folder.
  5. In case u want this battery_status.exe to run every time you start Windows, then navigate to the Startup folder: Type shell:startup into the Run dialog box and press Enter. This will open the Startup folder for your current user account.
  6. Drag and drop this exe into the Startup folder window you opened.

That's it! The next time you log in, the program will automatically start.

About

Battery Status Alert

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages