I Created a 'Take a Break' Notification System in Python and it is Awesome | Short Python Projects

preview_player
Показать описание
#TakeABreak #Python #InterestingProject

Hey Friends,
In this video, I am going to do a Short and Simple Python Project which is just AMAZING !!
As we all know that during the lockdown period we all spend most of the time in front of our Desktop/Laptop and it is advised that we should not spend a lot of time in front of a screen as it is not good for our eyes...
So, I have just made a simple notification system with Python which will give us notification every 20 minutes to Take a Break. This Lockdown has finally made me something productive ... :)

IDE Used : PyCharm IDE by JetBrains

If you are a beginner you should must use PyCharm ...

Thanks for Watching my Video ... Do like , comment and subscribe if you like my videos.
Рекомендации по теме
Комментарии
Автор

There is a problem in my video after 13:28 because I have opened Task Manager at that moment and forgot to close it so after that nothing will happen in the video as I was not logged in to Administrator... You can close the python task by finding it in the "Background processes" ...

rihh
Автор

If you are using a Mac, you can use the following code which doesnt require third-party packages:

import os

def notify(title, text):
os.system("""
osascript -e 'display notification "{}" with title "{}"'
""".format(text, title))

notify("Title", "Heres an alert")

BlackedoutGT
Автор

Bro notification is not popping up, just symbol is shown in task bar. How to fix it??

loveindia
Автор

use full i customized for me like to sit straight and look out of screen, good video

vijay.e
Автор

from plyer import notification
import time

def notifyMe(title, message):
notification.notify(
title = title,
message = message,
app_icon = None,
timeout = 10,
)

if __name__ == '__main__':
while True:
notifyMe("Hey user, Take a BREAK!", "You should follow the 20-20-20 rule to keep your eyes healthy")
time.sleep(15)

whitelordteam
Автор

It's amazing....I'm using 3.8 and it's not working...the programs gives no error but pc not showing notification??

lakshyaraghav
Автор

good job man.
Just one prob the notification sound is not working.

arkasingha
Автор

i can't get icon on notification can you help please.

jainishpatel
Автор

pythonw command to run program in the background is not working

Allinone-gmdf
Автор

hello, if you put the timesleep before the notifyMe function in main it will only show the notification once every 20 min, btw whats the pycharm theme you were using in this vid?

ignaciohernandezcorrea
Автор

It doesn't work when I open In exe

djmonkeyofficial
Автор

in the timeout = 10 line, i get this :(
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated escape

professorpuddle
Автор

i am getting "exception:Shell_NotifyiconW failed" and the notification is not showing ! please some one help me with this

avirajsinha
Автор

from plyer import notification
notification.notify(
title=" Title ",
message=" Message ",
app_icon="icon.ico",
timeout=5
)






pyinstaller --onefile --icon=iconn.ico --noconsole --hidden-import file.py

slhylmz
Автор

Sir, Can I do it in visual studio code?

poojasuryavanshi