prowlnotify is a simple script to send push notifications from Irssi to the iPhone via Prowl (http://www.prowlapp.com) or to Android devices via NMA (https://www.notifymyandroid.com/)
It was originally based on BCOW's awayproxy.pl script which automatically marks you as away when your last IRC client disconnects from Irssi's proxy. This fork of Denis Lemire's version removes the proxy and checks for screen_away boolean flag.
- Create a text file containing your API key in either in ~/.prowlkey or ~/.NMA_apikey
- Copy the script into Irssi's scripts dir (typically ~/.irssi/scripts/)
- Edit $config{API} = ""; (line 43) to specify prowl or NMA
- /script load prowlnotify.pl
- Send yourself a test message with /prowl test
This version of the script depends on the screen_away boolean flag to see if it should notify or not. it therefore depends on screen_away.pl
The Notify My Android API calls are sent via HTTPS. For this to work you need to have IO::Socket::SSL installed:
cpan -i IO::Socket::SSL