Skip to content

Commit f780214

Browse files
authored
Merge pull request Python-World#273 from GuptaBharat/master
Added README file
2 parents 2bb60ab + 071e8f4 commit f780214

3 files changed

Lines changed: 26 additions & 3 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Battery Notificator
2+
3+
This python script gives you a notification about your battery percentage of the device.
4+
5+
## Pre-requisites:
6+
7+
You will need to install python on your machine. You can download python from the python.org and install it.
8+
And a few other python package that you need to install are as:
9+
10+
1. psutil
11+
> pip install psutil
12+
13+
2. pynotifier
14+
> pip install py-notifier
15+
16+
3. win10toast
17+
> pip install win10toast
18+
19+
## How to run the Script:
20+
python battery.py
21+
22+
## Authon Name:
23+
Bharat Gupta

‎projects/Battery_notification/battery.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
percent = battery.percent
77

88
if percent >= 30:
9-
10-
# pip install pynotifier
9+
10+
# pip install py-notifier
1111
# pip install win10toast
1212
from pynotifier import Notification
1313

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
psutil==5.7.2
2-
pynotifier==0.1
2+
py-notifier==0.1
33
win10toast==0.9

0 commit comments

Comments
 (0)