Skip to content

drink water reminder #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 24, 2022
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
31 changes: 31 additions & 0 deletions drink-water-reminder/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Drink-Water-Reminder

### If you something forget to drink water because you're busy, this application is the best for you!

# Requirements

### You need [plyer](https://github.com/kivy/plyer) and [python3](https://www.python.org/download/releases/3.0/) installed

# Installation

```
pip install -r requirements.txt
```
### To run

You need to put the next command to run background:

For **Windows**:
```
pythonw .\main.py
```

For **Linux**:
```
python3 main.py&
```

or run:
```
python3 main.py
```
14 changes: 14 additions & 0 deletions drink-water-reminder/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import time
from plyer import notification

if __name__ == "__main__":
while True:
notification.notify(
title = "Keep in check!",
message = "You need to drink water!\nTake your time"+
" and drink your glass of water\nThe Nation Academies of Sciences, Engineering, and Medicine say:"+
" 'you need drink about 15.5 cups (3.7 liters)'",
app_icon = "../images/glass.ico",
timeout=10
)
time.sleep(60*80)
1 change: 1 addition & 0 deletions drink-water-reminder/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
plyer