EZAlert.me Blog

Use cases, facts and tutorials about EZAlert.me

About EZAlert.me

EZAlert.me offers a simple API to allow your programs or devices send you alerts via popular instant messages applications like Telegram, Skype, Facebook Messenger or Slack.
Here we publish posts about use cases, samples and stuffs related to EZAlert.me use and configuration.
If you like to share notes about how you use EZAlert.me, just sent us an email to ezalert(at)ezalert.me.
EZAlert.me home

How to send yourself alerts via Skype with CURL

So your main instant message at work is Skype and you would like your Apps or devices can reach you with alerts using Skype.

Well, there are good news for you: with EZalert.me you can do it in few minutes.

Create an EZAlert.me channel

If you haven't it yet, you need to create a free account on EZAlert.me from here. Once you registered and confirmed your account, you can login and go to your EZAlert.me channel details.

On the channel page note your start code. start code

Subscribe to your channel

Now use the link (or QRCode) on the right box to add EZAlert.me Skype Bot to your Skype friends list. Then send a message to it with the following text:

start YOUR_START_CODE_HERE

The bot should say you subscribed the channel.

Bot activation procedure

Get your API Key

Now, go back to EZAlert.me user area, enter channel details and click on the "Show API keys" button to get the API key. A modal window will pop up where you can find your channel API Key.

EZAlert.me API Key

Copy your API key and start playing with CURL. For example you can try the following command:

curl -X POST 'https://ezalert.me/v1/sendAlert' \
    --data-urlencode 'apikey=YY-YYYYYYYYYYYY' \
    --data-urlencode 'text=This is a test alert'

Just note that you must replace YY-YYYYYYYYYYYY with the actual channel API key you got.

Here you go.

Curl message received on Skype

And the best part is that you can use the same channel to send yourself or your coworkers alerts also via Telegram or via Facebook Messenger.

Send alerts via Skype

EZAlert.me can send alerts to Skype

EZAlert.me is a simple service that can send alerts and messages from your software to your favorite istant messaging platforms, including Skype. And it does it in a simple and effective way.

Follow this step by step guide to configure EZAlert.me.

Get your channel start code

Within EZAlert.me system you can create one or more channels. Each channel has an ID named "start code". If you have not yet registered to EZAlert.me you can register here. It's free!

Log-in EZAlert.me and select one of your channels, you can see its start code.

EZAlert.me channel start code

You use start code to say to EZAlert.me bot wich channel you want to receive alerts from.

Add EZAlert.me Skype bot to your friends list

Now that you have your channel start code, you need to add EZAlert.me Skype bot to your Skype buddies list.

You can do it by searching Skype contacts for "EZAlert.me". Or you can add it clicking this link: EZAlert.me Skype bot

Tell bot about your channel

Once you connected EZAlert.me Skype bot, just send it a message containing the word start followed by your start code to let it know which is your channel.

Skype start example

You are done: every alert sent to your EZAlert.me channel will now be forwarded to your Skype account!

Have a look at EZAlert.me API documentation to get info about how to use the API to send instant messages through your EZAlert.me channel.

How to send an instant message from Linux command line

Do you want to be alerted on Telegram or Skype about a problem in your server? Or do you want to receive an alert on Facebook Messenger every time a team member commits to your git server? Need to get a notification on Slack when you batch script completed?

https://EZALert.me makes all this very easy, or even trivial.

A bash script to call EZAlert.me api

Here follows a bash script to call EZALert.me api:

ezalert-send.sh:

#!/bin/sh

# Replace with your EZAlert.me api key:
APIKEY='YY-YYYYYYYYYY'

# URLENCODE parameter
str="${1}"
slen="${#str}"
out=''
i=1
while [ "${i}" -le "${slen}" ]; do
c=$(expr substr "$str" "$i" 1)
#echo "c: ${c}"
cc=$(printf '%%%02X' \'${c})
case "${c}" in
    [a-zA-Z0-9.~_-]) out="${out}${c}" ;;
            ' ') out="${out}+";;
            *) out="${out}${cc}"  ;;
        esac
    i=$((${i} + 1))
done

# EZALert.me call
wget -q -O - "https://ezalert.me/v1/sendAlert?apikey=${APIKEY}&text=${out}"
# Done

You need to change the APIKEY variable with your EZALert.me channel api key. To find it just login to EZAlert.me, enter you channel and get it from the top panel: Where is your api key

Replace the YY-YYYYYYYYYY in the above script, make it executable and give it a try. Pass as first argument the string you want to send, and don't forget the quotes!

$ ./ezalert-send.sh 'This is a test alert!'
{"status":"OK","nsent":4,"apilimit":"1\/70"}

Script shout output a json with a status:ok value. In case of error it will output what error happened.

How to use this script

You can use the send script in many ways. Here are some ideas:

  • Run it at the end of a batch process execution to be informed it has finished (it can be as simple as ./batchprocess.sh && ./ezalert-send.sh 'Finished'
  • Create a cron job to analyze your server logs and launch it to alert you about abnormal events
  • Create a cron job that daily sends you satistics about disk free space
  • ... put your example here! :-)

How to subscribe an EZAlert.me channel on Skype

EZAlert.me is a simple service that helps you distribute alerts and notifications via popular instant messages platforms like Skype, Telegram and Facebook Messenger.

Get your channel start code

Within EZAlert.me system you can create one or more channels. Each channel has an ID named "start code". If you login into EZAlert.me and select one of your channels, you can see its start code.

EZAlert.me channel start code

You use start code to say to EZAlert.me bot wich channel you want to receive alerts from.

Get Skype bot

Now that you have your channel start code, you need to add EZAlert.me Skype bot to your Skype buddies list. You can do it by searching Skype contacts for "EZAlert.me". Or you can add it clicking this link: EZAlert.me Skype bot

Tell bot about your channel

Once you connected EZAlert.me Skype bot, just send it a message containing the word start followed by your start code to let it know which is your channel.

Skype start example

You are done: every alert sent to your EZAlert.me channel will now be forwarded to your Skype account!