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

News Feed shows "Loading" if RSS feed is empty #2731

Closed
MacG-DD opened this issue Dec 17, 2021 · 3 comments
Closed

News Feed shows "Loading" if RSS feed is empty #2731

MacG-DD opened this issue Dec 17, 2021 · 3 comments
Labels

Comments

@MacG-DD
Copy link

MacG-DD commented Dec 17, 2021

I found a bug in MagicMirror

Platform: Raspberry Pi 4 with Raspberry Pi OS with desktop

MagicMirror Version: 2.17.0

Description: If the subscribed RSS feed is empty (I use a traffic warning message feed), then "Loading ..." is displayed, although "hideLoading: true" is set.

Steps to Reproduce: The RSS feed is empty or you set the time after which the news is outdated to a very short one.

Expected Results: The news feed module should be hidden. Because I have set hideLoading: true.

Actual Results: "Loading ..." is displayed and refreshed after the updateInterval.

Configuration:
{
module: "newsfeed",
position: "bottom_center",
config: {
feeds: [
{
title: "Verkehrswarnmeldung", // = Traffic warning message
url: "https://www.polizei.sachsen.de/vwd/LMSSN-Bestand.RSS_STD.xml",
encoding: "ISO-8859-1" // default is "UTF-8"
}
],
hideLoading: true,
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: false,
broadcastNewsUpdates: false,
showDescription: true,
ignoreOldItems: true,
ignoreOlderThan: 24 * 60 * 60 * 1000, // 1 day
updateInterval: 15 * 1000, // 15 seconds default is 10
prohibitedWords: ['A9', 'A38', 'A72']
}
},

@khassel
Copy link
Collaborator

khassel commented Dec 17, 2021

can reproduce this but have no idea how to solve this at the moment ...

@rejas
Copy link
Collaborator

rejas commented Dec 20, 2021

I created a PR that displays a message if the newsfeed is empty ATM. Maybe later we can make it configurable (show info message OR hideCompletly)?

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 17, 2022
@stale stale bot closed this as completed Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants