Skip to content

varundey/srmAnnouncementInformer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
 
 
 
 
 
 
 
 

SRM Announcement Desktop Notifier

Never miss an important announcement of your college again πŸ˜‰

Demo

usage

How to

$ git clone https://github.com/varundey/srmAnnouncementInformer.git
$ cd srmAnnouncementInformer/
$ nano announcer.py
  • Change the number of notifications you want to see from the top in the global variable name no_of_notifs. Max is 10
$ python announcer.py

Requirements

$ pip install beautifulsoup4
$ pip install requests
$ apt-get install python-gobject
$ apt-get install libnotify-bin

Bonus πŸŽ‰

Coz who doesn't like some add-ons

The announcer.py file can be set under as a cron-job to be run at every minute/hour/boot. Alas the OSD of linux kernel and cronTab are set up under different environment, and thus we have to work our way around a bit. In order to create a cronjob for the python file, keep reading:

$ chmod 700 srmAnnouncementInformer/bin/export_x_info
$ sh srmAnnouncementInformer/bin/export_x_info
  • Now open Dash and under Startup Applications, add the export_x_info script
  • Under crontab -e add the following two lines in the begining
SHELL=/bin/bash
DISPLAY=:0.0
  • Depending on your schedule and path, your crontab should look along the line of the following:
@reboot source ~/.Xdbus; python srmAnnouncementInformer/announcer.py

Inspiration

This project was inspired from Result-Reminder by @Sandeeprds95. Why not make a general announcement notifier. πŸ˜ƒ

Bug Hunt?

Report it at issue tracker πŸ”« πŸ’£

License

MIT License http://varundey.mit-license.org/ Β© Varun Dey

About

Keeps up to date with the announcements of SRM University

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published