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 b128025

Browse files
Added Desktop-drinkWater-Notification
1 parent d7aed7e commit b128025

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.formatting.provider": "black"
3+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## How to run this Script
2+
3+
1. Clone this script Using this command `git@github.com:avinashkranjan/Amazing-Python-Scripts.git`
4+
2. You will Need Python to run this Progarm, we will install Python in Step 3.
5+
3. [Download](https://www.python.org/downloads/) Click on this link to install Python.
6+
4. Click on the Extensions and Install Code Runner this will help you to run this Progarm.
7+
5. If you want to run your Progarm in Powershell just type this command `Python main.py`
8+
6. If you want to run this script in background just type this command `Pythonw main.py`
162 KB
Binary file not shown.
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 = "D:\Programming Languages\Python\Projects\DrinkWater\icon.ico",
10+
timeout = 12
11+
)
12+
time.sleep(1800)

0 commit comments

Comments
(0)

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