Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c327377

Browse files
Merge pull request avinashkranjan#648 from viraldevpb/notification
Added Desktop DrinkWater Notification
2 parents 655e179 + 1971bdb commit c327377

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Desktop Drink Water Notification
2+
3+
This python script helps user to drink more water in a day as per her body needed and also this python script is executed in the background and every 30 minutes it notifies user to drink water.
4+
5+
## How to run this Script
6+
7+
1. Clone this script Using this command `git@github.com:avinashkranjan/Amazing-Python-Scripts.git`
8+
2. You will Need Python to run this Progarm, we will install Python in Step 3.
9+
3. [Download](https://www.python.org/downloads/) Click on this link to install Python.
10+
4. Click on the Extensions and Install Code Runner this will help you to run this Progarm.
11+
5. If you want to run your Progarm in Powershell just type this command `Python .\Desktop-drinkWater-Notification\main.py`
12+
6. If you want to run this script in background just type this command `Pythonw main.py`
13+
14+
## Screenshots
15+
![Output](output.jpg)
16+
17+
## Author
18+
Prathamesh Borse [viraldevpb](https://github.com/viraldevpb)
162 KB
Binary file not shown.

‎Desktop-drinkWater-Notification/main.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import time
2+
from plyer import notification
3+
4+
if __name__ == "__main__":
5+
while True:
6+
notification.notify(
7+
title="Please Drink Water",
8+
message="The U.S. National Academies of Sciences, Engineering, and Medicine determined that an adequate daily fluid intake is: About 15.5 cups (3.7 liters) of fluids a day for men. About 11.5 cups (2.7 liters) of fluids a day for women.",
9+
app_icon = "./Desktop-drinkWater-Notification/icon.ico",
10+
timeout = 12
11+
)
12+
time.sleep(1800)
136 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /