Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions projects/Battery_notification/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Battery Notificator

This python script gives you a notification about your battery percentage of the device.

## Pre-requisites:

You will need to install python on your machine. You can download python from the python.org and install it.
And a few other python package that you need to install are as:

1. psutil
> pip install psutil

2. pynotifier
> pip install py-notifier

3. win10toast
> pip install win10toast

## How to run the Script:
python battery.py

## Authon Name:
Bharat Gupta
4 changes: 2 additions & 2 deletions projects/Battery_notification/battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
percent = battery.percent

if percent >= 30:

# pip install pynotifier
# pip install py-notifier
# pip install win10toast
from pynotifier import Notification

Expand Down
2 changes: 1 addition & 1 deletion projects/Battery_notification/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
psutil==5.7.2
pynotifier==0.1
py-notifier==0.1
win10toast==0.9