News Headlines
News Headlines module showing English The New York Times, Science headlines via RSS feed.
Overview
The News Headlines module displays news updates from a chosen news outlet via an RSS feed. This module's display format is a 1x3 rectangle.
Web GUI View
Information Displayed
The module presents the following details:
- News Headline: A headline retrieved from the news outlet's RSS feed. Headlines exceeding 55 characters are truncated.
- Timestamp: The publication time of the article, displayed in military format.
Usage
- Click the "Select a Module:" dropdown at the top of the web GUI and select the "News" module.
- Click the green "Add Module" button to the right of the dropdown.
- Drag and drop the module to your desired position within the grid.
- Choose a language from the "Select a Language" dropdown.
- Pick a news outlet from the "Select News Outlet" dropdown.
- Select an RSS feed from the "Pick an RSS Feed" dropdown.
- Click "Save News Settings":
- A green confirmation message will appear if the settings are saved successfully.
- A red error message will indicate a failure.
- Click "Update Display":
- The screen will blink (indicating a cleaning sequence) and display the updated configuration.
Workflow
-
Retrieve Settings:
The module pulls the selected language, news outlet, and RSS feed settings from the database (NewsSettings
table). -
Fetch RSS Feed:
It accesses the chosen RSS feed using the saved settings. -
Process Articles:
Articles from the feed are parsed, and one is randomly selected. Its headline and publication time are extracted. -
Display on Screen:
The selected article's headline and timestamp are rendered on the module's display.