Health care notifier system | Made with python

 Health care notifier system

Code -

------------------------------


import time
from playsound import playsound
from plyer import notification


def water():
time.sleep(60*30)
print("It's water time..")
playsound('D:\\game sounds\\water.mp3')
notification.notify(
title="** It's water time **",
message="Drink 1 glass of water from your bottle.... And enjoy programming...",
app_icon="app icon's path.ico",
timeout=12)


def eyes():
time.sleep(60*5)
print("It's eyes exercise time..")
playsound('D:\\game sounds\\eyes.mp3')
notification.notify(
title="** It's eye's exercise time **",
message="Look 20 feets away for next 20 seconds from now... And enjoy programming...",
app_icon="app icon's path.ico",
timeout=12)


def physical():
time.sleep(60*3)
print("It's physical exercise time..")
playsound('D:\\game sounds\\physical.mp3')
notification.notify(
title="** It's exercise time **",
message="Get up from your chair and do some PT.... And enjoy programming...",
app_icon="your path",
timeout=12)


if __name__ == '__main__':
print("Hello this is your health care program this will remind you to drink water and do Exercise time by time of eyes also..")
while True:
water()
eyes()
physical()

Comments

Popular posts from this blog

Single Inheritance, multiple inheritance and multilevel inheritance in python.

Git Commands.

Using class objects, Instance variables, and class variables, class methods and static method in python