Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alerts for certain planes, flights or squawks etc. #11

Open
E3V3A opened this issue Mar 1, 2018 · 2 comments
Open

Add alerts for certain planes, flights or squawks etc. #11

E3V3A opened this issue Mar 1, 2018 · 2 comments
Labels
enhancement New feature or request ToDo Things that will be done, eventually. PR welcome!

Comments

@E3V3A
Copy link
Owner

E3V3A commented Mar 1, 2018

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 E3V3A added enhancement New feature or request ToDo Things that will be done, eventually. PR welcome! labels Mar 1, 2018
@E3V3A E3V3A changed the title add alerts for certain planes/flights/squawks Add alerts for certain planes, flights or squawks etc. Mar 1, 2018
@E3V3A
Copy link
Owner Author

E3V3A commented Mar 12, 2018

The alert/notification functions are described in detail here.

@E3V3A
Copy link
Owner Author

E3V3A commented Mar 13, 2018

Here's another source for emergency flights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ToDo Things that will be done, eventually. PR welcome!
Projects
None yet
Development

No branches or pull requests

1 participant