File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Stay Hydrated
2
+ It is a python script that runs in background while you work on your Laptop/PC and notifies you to drink water at regular time intervals
3
+
4
+ # Installation & Run
5
+ ` pip install -r requirements.txt `
6
+
7
+ ` python main.py `
8
+
9
+ # Screenshots
10
+ ![ Screenshot-from-2023-07-12-14-23-58.png] ( https://i.postimg.cc/BQcgccKd/Screenshot-from-2023-07-12-14-23-58.png )
Original file line number Diff line number Diff line change
1
+ import time
2
+ from plyer import notification
3
+
4
+ def drink_water_reminder ():
5
+ """Sends a notification to the user to drink water."""
6
+ title = "Drink Water Reminder"
7
+ message = "It's time to drink some water!"
8
+ notification .notify (title , message )
9
+
10
+ def main ():
11
+ """Runs the drink water reminder function every hour."""
12
+ while True :
13
+ time .sleep (1200 )
14
+ drink_water_reminder ()
15
+
16
+ if __name__ == "__main__" :
17
+ main ()
Original file line number Diff line number Diff line change
1
+ plyer == 2.1.0
You can’t perform that action at this time.
0 commit comments