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

New feature: added support for Microsoft Teams incoming webhook

We are happy to announce that we added Microsoft Teams integration in EZAlert.me.

Teams is a the well known collaboration suite from Microsoft used by companies for messages and video calling.

Now you can add to EZAlert.me channels Teams webhooks app, so that you can receive alerts in Teams channels.

For more information about Microsoft Teams webhooks app please check out the official guide: https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook

You can add to EZAlert.me channels one or more Teams webhooks so you can quickly deliver alerts to any Teams channel you need.

New feature: Discord webhook integration!

We are happy to announce that we added Discord integration in EZAlert.me.

Discord is a group-chatting platform originally built for gamers that has since become a general use platform for many kinds of communities.

Now you can add to EZAlert.me channels Discord bot webhooks, so that you can receive alerts in Discord channels.

For more information about Discord webhooks please check out the official Discord guide: https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks

Multiple webhooks

We also changed channel structure so that now you can add multiple webhooks. This means that now you can have more than one Slack and Discord webhooks for each EZAlert.me channel, in the case you need to post the same alerts on more Slack/Discord channels.

Send a Telegram / Skype / Messenger / Slack alert from Arduino

So, you have an Arduino board and you want to be notified with an istant message everytime something happens. Maybe when someone press a button or when temperature is higher or lower that a preset threshold, or when a pir sensor detects something. No problems, EZAlert.me can help you!

We just added in our GitHub repo a sample Arduino Sketch you can use as and example to send instant messages from an Arduino ESP8266 board. The sample can be easily fixed to work with other boards or with Arduino boards with ethernet/wifi hats. Anyway the core function is quite easy:

int sendAlert(String text) {

 // ******* EZALert.me API Key here *******
 String ezalert_ApiKey = "PUT YOUR EZALERT.ME API KEY HERE";

 const char* servername = "ezalert.me";
 String line1=F("GET /v1/sendAlert?apikey=")+String(ezalert_ApiKey)+F("&text=")+urlencode(text)+F(" HTTP/1.1");
 String line2=F("Host: ezalert.me");
 WiFiClient client; 
 if (client.connect(servername, 80)) {     
      // Make a HTTP request:
      client.println(line1);
      client.println(line2);
      client.println();      
      return 1;
 }  
 return 0;
}

In this function we create a WiFiClient object, then we connect to EZAlert.me API and send the contents of text string throught it.

The only thing you need to have is a working EZAlert.me account with its API key, and your Arduino board can alert you about any event you want to track.

QNAP alerts on SLACK

So you have your QNAP device and your Slack channel, and you are wondering how to get QNAP alerts in Slack. QNAP can only send emails so you need to use EZALert.me Email Gateway.

What is EZALert.me Email Gateway?

Each EZAlert.me channel has an associated email address: every email sent to that address is distributed to all subscribers of the channel. Each EZAlert.me channel can be subscribed via Skype, Telegram, Facebook Messanger or can use a webhook to send messages to a Slack channel.

Configuring QNAP to send alerts via EZAlert.me

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 .

Configuring EZAlert.me to send alerts to Slack

To allow EZALert.me post to your Slack, you need to install in it the Incoming Webhooks Slack app.

Slack App to install

Once you installed the app, enter its configuration panel, and copy the Webhook Url field contents:

Slack App to install

Go back to EZAlert.me configuration, enter your EAlert.me channel page, and click on "Add Slack Connection". Paste the Url you copied from the Webhooks app and click on Save button.

Now every time you QNAP sends an alert via email, that email is forwarded to EZAlert.me which wil push its contents to your Slack!

Find more info about EZALert.me Slack integration here: https://ezalert.me/pages/slackintegration