Skip to content
Home » Drink Water Reminder Using Python | Python Projects For Beginners

Drink Water Reminder Using Python | Python Projects For Beginners

Drink Water Reminder Thumbnail 1

Hey Python Programmers, Welcome Back to Another Python Project, Sometimes It Happens When you are Busy And Forget To Drink Water. And As we all Know We Should Drink 7-8 Glasses Of Water Everyday. So This Might Lead to Illness Or Dehydration of Body. Which is not Good for Your Health.

Best Laptops For Programming:

So We will be Creating a Drink Water Notification Using Python, Which Sends You a Notification to Drink Water In a Particular Time Intervals. This is Just a Notification Like you Get in Windows or Any Other Device.

We Will Be Creating this Project Using a pip Module In Python Called Plyer, So Without Wasting any more Time Let’s Get Started with Our Today Python Project, But Before that if have not seen My Jarvis Automation Projects You can Access Them Here Jarvis Automation.

Installing the Required Modules:

pip install plyer

Importing the Required Modules:

import time
from plyer import notification

Code:

if __name__=="__main__":
  while True:
        notification.notify(title= "Drink Water Now!",
        message = "You Should Drink 7 Glass Water In a Day To Prevent Your Body From Dehydration",timeout = 12)
    
        time.sleep(10)

So You Have Created your Program You can test it By Clicking on the Run Button. It Will Notify you to Drink Water as Per Your Interval.

Complete Code:

#Drink Water Notification Using Python
#importing Required Modules
import time
from plyer import notification
if __name__=="__main__":
  while True:
        notification.notify(title= "Drink Water Now!",
        message = "You Should Drink 7 Glass Water In a Day To Prevent Your Body From Dehydration",timeout = 12)
    
        time.sleep(10)

So this Was it for this Blog, See you in the Next One till Then Keep Coding Keep Exploring!

DOWNLOAD SOURCE CODE

1 thought on “Drink Water Reminder Using Python | Python Projects For Beginners”

  1. Pingback: 10 Python Projects For Beginners | Best Python Projects To Build In 2022! - Mr Programmer

Leave a Reply

Your email address will not be published. Required fields are marked *

You cannot copy content of this page

Top 10 Programming Languages to Learn In 2023! 9 Best Extensions For Web Developers! | Chrome Extensions For Web Developers Web Development Roadmap Best Resources to Learn PYTHON FREE! Web Vs App Development- Which one is Better?