EZAlert.me Blog

Use cases and facts 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

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!

Get Skype/Telegram/Messenger/Slack alerts on WooCommerce new orders

WooCommerce is well know ecommerce plugin for the Wordpress CMS. it's used by thousand online shops to run their business.

If you run an ecommerce you know how good is it to get a notification every time a new order comes in. WooCommerce can send you an email notification for each new order, but with EZAlert.me you can get that notification via your preferred instant messenger, like Skype, Telegram, Facebook Messenger or even on your Slack channel, just configuring EZAlert.me Email Gateway service.

What is EZALert.me Email Gateway?

Each EZAlert.me channel has an email address. Every email sent to that address is transformed in an alert and distributed to all subscribers of the channel via instant messages.

First of all, you need to get the email address of your EZAlert.me channel: login to your EZAlert.me account, go to the channel configuration page and get the "EMail gateway address". The address is usually hidden, just click on the "View/Hide API key" button to show it. It is an email address in the form XX-YYYYYYY@ezalert.me.

EZAlert.me Email Gateway Settings

Now you have to use that email address in your WooCommerce configuration as new order email destination.

WooCommerce configuration for EZAlert.me Email Gateway

To get that page, enter WooCommerce->Settings menu, then select "Emails" tab. There you can tell your system to whom send alert emails on a number of events like new order, order cancelled, order refunded and so on. For each event you can specify multiple destination email addresses (comma separated). Just add your EZAlert.me channel address to get those notifications via instant messages.

How to get alerts from QNAP via Skype, Telegram, Facebook Messenger or Slack

Would you like to receive an instant notification as soon as something happens on your QNAP device? EZAlert.me allows you to do it. QNAP devices can send an email when a relevant event happens. Use EZAlert.me Email Gateway service to forward those messages into instant messages alerts.

What is EZALert.me Email Gateway?

Each EZAlert.me channel has a email address. Every email sent to that address is transformed in an alert and distributed to all subscribers of the channel.

First of all you need to find the email address of your EZAlert.me channel, so login to your EZALert.me account, go in the channel configuration page and get the "EMail gateway address". The address is usually hidden, just click on the "View/Hide API key" button to show it. It is an email address in the form XX-YYYYYYY@ezalert.me.

EZAlert.me Email Gateway Settings

Now you have to use that email address in your QNAP config as alert email destination and you will get qnap errors via EZAlert.me instant messages.

To do it you can use QNAP email alert notification instructions here

Access to your QNAP configuration panel and open System Settings applet. Select Notifications on the left menu and then click on "Alert Notification" tab. Insert your EZAlert.me channel Email Gateway address into the "E-mail address 1" field. Then click the "Send Test E-mail" butto to test it.

If you can't receive the message, it's possible you need to configure a SMTP gateway on SMTP Server page of QNAP Notification configuration. Set it to your internet service provider SMTP address. If you are in doubt you can use EZAlert.me SMTP gateway, but please note that it will only work for EZAlert.me emails and it will not forward emails to addesses out of the @ezalert.me domain. EZAlert.me SMTP gateway address is: mail.ezalert.me .