DEV Community

Cover image for Day 11 - Quick Reminder Notification - 100 days 100 python scripts
Ganesh Raja
Ganesh Raja

Posted on

2

Day 11 - Quick Reminder Notification - 100 days 100 python scripts

Link to previous posts of the series

Day 11: notify_user

A one-line script that notifies the user with the given title and message. Could be helpful to remind your daily tasks with the help of cron or schedule module from python

import os,constants

# if you want the notification to be triggered at a specific time, user cron or schedule from python
# Though I prefer using Node-red for scheduling I am not gonna use other methods here.

os.system('notify-send "'+constants.NOTIFY_TITLE+'" "'+constants.NOTIFY_MESSAGE+'"')
Enter fullscreen mode Exit fullscreen mode

Please Visit my Git Repo to check out all the previous day challenges.

https://github.com/ganeshraja10/automated-python-scripts

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more