Back to Browse

Water Reminder Script in Python | 3 Lines of Code

771 views
Premiered Jun 7, 2020
3:29

This video is on a simple python script that will notify you in a certain time interval to drink water or take a break from your laptop. Github link: https://github.com/jithurjacob/Windows-10-Toast-Notifications code: import time from win10toast import ToastNotifier while True: time.sleep(5) #Here Provide your time interval in second. For the test purpose I am giving it 5sec interval toaster = ToastNotifier() toaster.show_toast("Hello World!!!","Take a small break from your laptop",duration=3) #This 10 sec is the interval of notification active in screen

Download

0 formats

No download links available.

Water Reminder Script in Python | 3 Lines of Code | NatokHD