For years I have been trying to get a good application to send me sms notifications when people ping me in IRC. I think most of why this hasn’t happened is me being lazy. However I have since decided once and for all to finally figure this out and get it working. Since there will be a day that I forget what I actually did to get this to work I am going to create this tutorial. Follow along and if you have any questions, I might be able to answer them. Then again maybe not. Non the less here is what I did.
I already have a dedicated server running ZNC. ZNC is a portable open source IRC bouncer. This way I can have multiple clients from different locations can connect to my ZNC account simultaneously and therefore appear under the same nickname on IRC. Since I already have ZNC installed I need to install the development package before I can build my own modules.
$sudo apt-get install znc-dev
Some plugins do require to have the ca-certificates package installed. znc-push is one of those packages so lets install that.
$sudo apt-get install ca-certificates
Next if you don’t already have git installed you may want to install that
$ sudo apt-get install git
$ git clone https://github.com/jreese/znc-push.git
$ cd znc-push
$ znc-buildmod push.cpp
$ make install
$ cp push.so /home/<homedirectory>/.znc/modules/push.so
Next you will want to head over to your irc client and load the new module.
/msg *status loadmod push
*status | Loaded module [push] [directory/where/push.so/is/located]
Ok now that should be loaded phew the hard part is over. Mostly! Nest we will sign up for a service that we will use to push these notifications to your, in my case, iOS device. This will also work for Android. I use a service called Pushover. I like it because it uses Apple’s secure push notifications service for instant delivery. Plus it sends those notifications to my watch, bonus! Once you download the app and log into the website you will see your phone under Your Devices.
- Next you will want to set up an Application
- Give your application a name – in my case: znc-push
- Type : Application
- Description: irc->SMS
- URL: you can leave this blank
- Agree to the terms and create
Once you do all this it will give you an application API Key – make sure to take note of this.
Following these steps in your IRC client that is connected to your bouncer:
/msg *push set secret (Application API Key )
/msg *push set username (Your User Key)
/msg *push set service pushover
/msg *push set target (Name you created for your Device)
Now from here you should be all set and ready to go. You can test to make sure things are working by turning on debug heres how:
/msg *push set debug on
/msg *push send test
- Once you see everything work out, and you get your test message, be sure to turn debugging off.
/msg *push set debug off
Here are some links to share:
ZNC-push
ZNC Push via Pushover
Pushover.net
Push notifications on ZNC?!Really?!