Even better remote notifications with Irssi
by Patrick Connelly posted on July 26, 2013
Last month I wrote a Irssi plugin that pushed messages from Irssi to Beanstalkd. I was pretty happy with it, but I wanted more. So, I’ve improved it. The new version pushes in a slightly more normalized json payload to one of two beanstalk tubes. The tubes are configured for here and away. Then the python script that consumes them either displays it via a notification pop up, if sent to the here tube, or to pushover if sent to the away tube.
Setup
- Install beanstalkd on a system that both the irssi client (producer) and the system the notifications will be displayed on (consumer) can access via the network
- Install and configure the beanstalkNotify.pl script in irssi
- Set beanstalk_server to the address of your beanstalkd server
- Set beanstalk_port to the port of your beanstalkd server
- Set beanstalk_here_tube to the tube name you want (optional)
- **Set beanstalk_away_tube to the tube name you want (optional)
- If you want to use pushover for your away notifications, do the following. Otherwise, set your beanstalk_away_tube in step 2D to the same as your beanstalk_here_tube
- Download and configure beanstalk-notify.py on your consumer system
- Run the script python beantalk-notify.py start to generate the directories and basic configuration
- Modify the ~/.beanstalk-notify/beanstalk-notify.conf
- beanstalk
- server: The address / hostname to your beanstalk server
- port: The port for your beanstalk server
- clear_on_start: If the tubes should be emptied on start. This keeps from flooding you with notifications if the daemon has not been run in a while
- away_tube: The name of the tube for pushover messages
- away_ignore: A comma separated list of server names (from irssi) to ignore when sending notifications
- here_tube: The name of the tube for noticiation messages
- here_ignore: A comma separated list of server names (from irssi) to ignore when sending notifications
- pushover
- app_token: Your application token
- user_key: Your user key
- notification
- use_native: Use the python notification library
- type: The type to use. Determines icon
- daemon
- log_level: The message level for the daemon loggin
- beanstalk
- Run the script with the updated config python beanstalk-notify.py start
- Profit!