Or really anywhere that https://pushover.net supports.
In light of the earlier article, I thought I'd might as well supercharge my IRC setup. So, now we're gonna get some notifications for our mobile devices via pushover.
There really isn't much to do here. First, go create an account and download the app on the device you want notifications on.
Then, register a pushover application. You can do this from the dashboard, or directly from https://pushover.net/apps/build. It will look something like this,
So, like the article mentioned before, I'm assuming you're using irssi and the fnotify plugin.
Create a file called something like irssi_pushover.sh
with the contents below,
1 #!/bin/bash
2
3 # Replace `YOUR_APP_TOKEN` and `YOUR_USER_TOKEN` with your values from pushover
4 | while ; do
5 url=;
6 if [; then
7 8 9 10 11 12
13 else
14 15 16 17 18 19 20
21 fi;
22 done;
This script will read from /home/user/.irssi/fnotify
and send a POST
request with the message and title via curl
using the pushover API.
You need to change the destination to the correct location of your fnotify file, and of course also replace YOUR_APP_TOKEN
and YOUR_USER_TOKEN
with your values from pushover (the user token is on the dashboard and the app token is under the app).
Now you've got notifications on your phone too! :) Never miss a moment of IRC again. A tip: you can make pushover open links directly to the browser under settings in the app.