Posts

Showing posts from October 2, 2021

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 ...

Function cashing and drinking water desktop notification system.

  Function cashing and drinking water Desktop notification system. Code - --------------------------------------------- import time from functools import lru_cache from plyer import notification @lru_cache ( maxsize = 5 ) def nacho (n): time.sleep(n) return n # if __name__ == '__main__': # print("Ek run ho hai") # print(nacho(3)) def water_drinker (): print ( "This Water notification system." ) while True : time.sleep( 15 ) notification.notify( title = "** It's water time **" , message = "Drink 1 glass of water from your bottle.... And enjoy programming..." , app_icon = "full path.ico" , timeout = 10 ) water_drinker()