Jump to content

Display official weather alerts

From SpinetiX Wiki

Scenario

A university campus uses digital signage displays across lecture halls, libraries, cafeterias, residences, and administrative buildings. The screens normally show schedules, events, wayfinding information, campus announcements, and other published content.

The university wants to supplement its existing warning channels by displaying official severe-weather alerts on these screens. When an applicable alert is published, the alert must appear in a prominent banner above the content currently running on the players, without requiring changes to each individual content project.

Overview

The tutorial on this page shows how to create a player-level overlay that displays official severe-weather information above any content running on a player. The overlay uses an Elementi data-feed widget to periodically retrieve an Atom feed from the National Weather Service API. Each feed entry includes structured alert information using fields from the Common Alerting Protocol. CAP is an open standard for exchanging all-hazard emergency alerts and public warnings. It provides structured information such as the event, affected area, severity, urgency, certainty, validity period, and message type.

The overlay displays only alerts that meet the configured conditions using a single banner occupying approximately one quarter of the screen. Because the project is configured as a player-level overlay, the banner appears above all other content displayed by the player, including ARYA alerts.

This tutorial demonstrates a digital signage integration intended to supplement official public-warning channels. It is not intended to replace certified life-safety systems, emergency-notification systems, Wireless Emergency Alerts, sirens, radio, or instructions from public authorities.

Architecture

Architecture diagram
Architecture diagram

The National Weather Service API provides access to forecasts, alerts, observations, and other weather data. The API supports multiple response formats, including CAP and Atom.

An Elementi project is hosted centrally on a web server and configured as a player-level overlay on one or more players. The overlay project contains a data-feed widget that periodically requests an Atom feed from the National Weather Service API. The service returns structured information about the latest alert matching the parameters included in the request.

The widget evaluates the returned entry:

  • If the entry meets the configured conditions, the widget displays the alert in a prominent banner, otherwise, it displays nothing.
  • After the configured duration, the widget requests the feed again.

Because the root document has no background and the widget displays no content when an entry is rejected, the player-level overlay remains transparent whenever no qualifying alert is available.

Note Note:
The National Weather Service API documentation requires requests to identify the application through a User-Agent. Verify that the selected player, widget, or network configuration can access the endpoint as required. For a managed deployment, a local proxy or cache can also provide a controlled request identity and reduce direct requests to the public service.

Data source

This tutorial uses an Atom endpoint similar to:

https://api.weather.gov/alerts.atom?status=actual&message_type=alert,update&severity=Extreme,Severe&limit=1

The parameters in this example have the following purpose:

  • status=actual requests actual alerts rather than test, exercise, draft, or system messages.
  • message_type=alert,update filters out the messages of type “cancel”.
  • severity=Extreme,Severe filters the alerts with a severity of “Extreme” or “Servere”. This configuration excludes advisories and other moderate events while preserving the most significant alerts.
  • limit=1 limits the response to one entry to get the latest alert.

The nationwide endpoint is convenient for testing because it is likely to return an entry. However, the latest alert across the United States is unlikely to apply to a specific campus. For a real deployment, use the filters supported by the API to restrict the response to the state, zone, area, or point relevant to the campus. For instance, if you want to restrict the feed to United States Air Force Academy, use can use this additional parameter: &zone=COZ084 referring to Northern El Paso County/Monument Ridge/Rampart Range Below 7500 Ft. Consult the National Weather Service API specification for the available alert parameters.

Selected CAP fields

Each Atom entry contains standard Atom elements and CAP-specific elements. The project can use the following values:

Information Feed element Suggested use
Title title Fallback heading or complete source title
Summary summary Main alert information
Event cap:event Short banner heading
Area cap:areaDesc Affected location
Severity cap:severity Filtering and visual appearance
Urgency cap:urgency Optional metadata
Certainty cap:certainty Optional metadata
Message type cap:msgType Filtering of alerts, updates, and cancellations
Expiry cap:expires Optional validity information

Depending on the selected feed and event, the summary may contain significantly more text than can be displayed comfortably in a banner. The layout should therefore limit or clip the displayed text rather than reducing the font size until the entire summary fits.

Benefits of this approach

This architecture offers several advantages:

  • Official weather information is retrieved automatically.
  • The main signage projects remain unchanged.
  • One centrally hosted overlay project can serve multiple players.
  • The overlay works independently of the content-management system used for the main content.
  • The implementation uses an Elementi data-feed widget without requiring modifications to its code.
  • The same banner layout can display different alert events dynamically.
  • The visual appearance can be adapted according to the severity value.
  • The overlay returns to a transparent state when no qualifying entry is available.

Tutorial

Requirements

Create the overlay project

First, create the Elementi project that will be used as the player-level overlay.

Version: 1 (revision history)
Release date: Nov 24, 2026
File type: Elementi project

You can download a sample project from the right. If you want to start from scratch, follow these guidelines:

  1. Open Elementi and create a new project.
  2. When configuring the project's settings, select the WIDGETS Feature Set.
  3. Double-click the project's icon in the Browse panel to open it. The project's root index file is automatically opened for editing and preview.
  4. Click the Document Properties button on the toolbar.
  5. Disable the background property to ensure that the overlay remains transparent when the widget displays no alert.
  6. Add the appropriate data-feed widget to the project; for this tutorial, a slideshow widget is used to include a severity graphic.
  7. Double-click on the widget icon in the Browse panel to open it for editing.
    1. Configure the data source and the refresh interval. See more details below.
    2. Design the banner layout. See more details below.
  8. Double-click on the project's root index file.
  9. Drag the Slideshow widget from Browse panel and drop it into the Edit panel to include in the index file.
  10. Use the Align button on the toolbar to align it on top or bottom of the screen.
  11. Save the changes.

Configure the data source

Severe weather alert overlay - data source
Severe weather alert overlay - data source

Click on the Data Feed Properties button to configure the data source, XML parser, filters, and refresh behaviour.

  1. As URI, enter https://api.weather.gov/alerts.atom?status=actual&message_type=alert,update&severity=Extreme,Severe&limit=1.
  2. As parser, select XML.
  3. For refresh, enter the time interval for automatic data renewal, for instance 1min.
  4. Go to the “XML Parser” tab and for selector, type entry.
  5. Click the “Test...” button and check that the feed is correctly retrieved and parsed.
  6. Click 🆗.

Use this nationwide URL only while building and testing the project. For operational deployment, replace it with an endpoint filtered for the area relevant to the campus.

Configure the refresh interval

As the feed returns one item at most, set the slide duration to match the data source refresh rate (e.g., 1min) and enable the looping property.

Note Note:
The National Weather Service API applies reasonable rate limits to preserve service availability. Since each player configured with the overlay makes its own request, for larger deployments, consider increasing the refresh rate or placing a proxy application between the players and the external feed, which can retrieve the official feed once and serve the same response to all the campus players.

Design the alert layout

This tutorial uses one reusable banner layout for all qualifying alerts. The banner occupies approximately 25% of the screen and can be positioned along its upper or lower edge. The remaining content continues to be visible underneath the player-level overlay.

A suggested design is:

  • Background: solid or nearly opaque
  • Main heading: alert title – keep the event heading large enough to be read from a distance.
  • Optional metadata: severity, urgency, certainty, and affected location.
  • Optional graphic: image selected from value of the cap:severity element.

Here are the steps to follow:

Severe weather alert overlay - widget size
Severe weather alert overlay - widget size
  1. Configure the widget's layout to occupy 25% of the screen:
    1. Click the Document Properties icon at the right-side of the toolbar to open the general properties of the document.
    2. Set Format to “Custom”.
    3. Set width to 1920 and height to 270.
    4. Click 🆗.
      The widget's editing area changes to a narrower zone.
  2. Click on the “Layers” tab on the Edit panel.
  3. Severe weather alert overlay - title layer properties
    Severe weather alert overlay - title layer properties
    Set the alert title.
    1. Click the button on the text layer containing the title placeholder (i.e., [[title]]). The "Layer Properties" dialog opens.
    2. Set the layer position to Left: 280 Top: 16 Width: 1620 Height: 172.
    3. Enable the “Automatic scroll” smart text effect to ensure long titles are entirely displayed. Set number of lines to 2 and optionally increase the display duration to 4 seconds (per line).
    4. Click 🆗.
  4. Severe weather alert overlay - title layer properties
    Severe weather alert overlay - title layer properties
    Set the additional alert details.
    1. Add a new text layer.
    2. Click the button to edit the layer properties.
    3. Set the layer position to Left: 280 Top: 188 Width: 1620 Height: 80.
    4. Enable the “Ping-pong - Right to left” smart text effect to entire text is displayed. Optionally, increase its start delay to 5 seconds.
    5. Go to “Edit Text” tab, select the entire text, and set the font size to 48.
    6. Replace the default text with: Severity: [[severity]] Urgency: [[urgency]] Certainty: [[certainty]] Affected area: [[areaDesc]]
    7. Click 🆗.
  5. Severe weather alert overlay - alert graphic layer properties
    Severe weather alert overlay - alert graphic layer properties
    Set the severity graphic
    1. Select the media layer (i.e., [[link]] ) already included in the widget
    2. Click the Fit Screen button button to resize it to fit the entire widget area.
    3. Click the button to edit the layer properties.
    4. Configure the layer's URI using the severity field, such as [[severity]].png.
    5. Set its duration to “Indefinite”.
    6. Set media fit to “Meet” and media align to “Left”.
    7. Severe weather alert overlay - alert graphic layer properties - box format
      Severe weather alert overlay - alert graphic layer properties - box format
      Go to “Box Format” tab
    8. Add a mat background, for instance a yellow background at 80% opacity.
    9. Optionally add some padding to avoid the graphic touching the margins.
    10. Click 🆗.
    11. Add two image files to the project, using filenames that match the values returned by the feed, such as: Severe.png and Extreme.png.
  6. Save the changes.

Publish the overlay project

To publish the overlay project from Elementi X to a web server, follow these steps:

  1. Go to “Devices”.
  2. Create a Publish Location for the web server location (e.g., https://server.example.com/weather-overlay).
  3. Open the overlay project.
  4. Publish the project to the newly created Publish Location.
  5. Open https://server.example.com/weather-overlay/index.svg in a browser within the same network as the players to verify that it is accessible via HTTP.

For inspiration, check out these tutorials:

Configure the player

Configure each player that should use the overlay:

  1. Configure the player-level overlay using the URL of the published project (e.g., https://server.example.com/weather-overlay/index.svg)
  2. Ensure that the player can access both:
    • The web server hosting the overlay project
    • The configured alert-feed endpoint
  3. Reboot the player to apply the player-level overlay configuration.

The overlay project is loaded independently of the main content. The same centrally hosted project can therefore be configured on multiple campus players.

Optional extensions

Use a shared campus cache

In a deployment with many players, configure a server to retrieve and cache the official feed. Point the players to the cached campus endpoint instead of having every player request the external service directly.

A shared cache can: 

  • Reduce the number of external requests
  • Apply campus-specific geographic filtering
  • Provide consistent results to all players
  • Improve logging and monitoring
  • Normalise the response for the Elementi project

This extension requires a separately maintained server-side component.

Troubleshooting

No alert appears

 Verify that:

  • The player-level overlay is configured correctly.
  • The overlay project's index file is accessible from the player.
  • The player can access the alert endpoint.
  • The endpoint returns an Atom document.
  • The widget has completed its configured refresh duration.
The feed is not refreshed

 Verify that:

  • The widget duration or refresh interval is configured correctly.
  • The player has continuous access to the endpoint.
  • The service is not returning a rate-limit error.
  • An intermediary proxy or cache is not retaining the response longer than expected.
The overlay does not update after publishing

 The player may still be using cached project files. Refer to the player-level overlay article for recommendations regarding content updates, caching behaviour, and cache reset procedures.

See also

We use only essential cookies for site functionality.