MMM-FlightsAbove icon indicating copy to clipboard operation
MMM-FlightsAbove copied to clipboard

Add alerts for certain planes, flights or squawks etc.

Open E3V3A opened this issue 8 years ago • 2 comments

We want to implement alerts for certain preset (from config) flights, planes, squawks etc.

To create an alert, use:

  • For notifications use: self.sendNotification("SHOW_ALERT", {type: "notification"});
  • For alerts use: self.sendNotification("SHOW_ALERT", {});

Here is a good demo of what type of alerts are available.

moreover, in order not to have to use var that = this, we can write:

    setInterval(() =>  {
        updateOV();
        this.sendNotification("SHOW_ALERT", {title: "OV", message: "Bustijden ge-update.", timer: "1000"});
    }, 10000);

E3V3A avatar Mar 01 '18 10:03 E3V3A

The alert/notification functions are described in detail here.

E3V3A avatar Mar 12 '18 21:03 E3V3A

Here's another source for emergency flights.

E3V3A avatar Mar 13 '18 15:03 E3V3A