Read the statement by Michael Teeuw here.
News feed doesn't change after changing the newsfeed.js
-
Hi,
So i tried to change the newsfeed RSS feed with my local news RSS feed but it does not change it keeps getting the news from the NY Times news. My config:```
Module.register(“newsfeed”,{// Default module config. defaults: { feeds: [ { title: "NOS Algemeen", url: "http://feeds.nos.nl/nosnieuwsalgemeen", encoding: "UTF-8" //ISO-8859-1 } ], showSourceTitle: true, showPublishDate: true,
Therminal when starting up:``` > magicmirror@2.10.1 start /home/pi/MagicMirror > ./run-start.sh [11:38:24.396] [LOG] Starting MagicMirror: v2.10.1 [11:38:24.428] [LOG] Loading config ... [11:38:24.447] [LOG] Loading module helpers ... [11:38:24.452] [LOG] No helper found for module: alert. [11:38:24.670] [LOG] Initializing new module helper ... [11:38:24.673] [LOG] Module helper loaded: updatenotification [11:38:24.676] [LOG] No helper found for module: clock. [11:38:26.515] [LOG] Initializing new module helper ... [11:38:26.517] [LOG] Module helper loaded: calendar [11:38:26.519] [LOG] No helper found for module: compliments. [11:38:26.521] [LOG] No helper found for module: currentweather. [11:38:26.523] [LOG] No helper found for module: weatherforecast. [11:38:26.671] [LOG] Initializing new module helper ... [11:38:26.675] [LOG] Module helper loaded: newsfeed [11:38:26.678] [LOG] All module helpers loaded. [11:38:26.684] [LOG] Starting server on port 8080 ... [11:38:26.750] [LOG] Server started ... [11:38:26.753] [LOG] Connecting socket for: updatenotification [11:38:26.757] [LOG] Connecting socket for: calendar [11:38:26.759] [LOG] Starting node helper for: calendar [11:38:26.761] [LOG] Connecting socket for: newsfeed [11:38:26.763] [LOG] Starting module: newsfeed [11:38:26.765] [LOG] Sockets connected & modules started ... [11:38:27.173] [LOG] Launching application. [11:38:34.446] [LOG] Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 [11:38:34.586] [LOG] Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
Im new to coding so i hope someone is able to help me and find the issue :)
-
@Timtendo12 I also tried it with the NYT Technologu Rss feed XML. But also does not change.
Config:
Module.register("newsfeed",{ // Default module config. defaults: { feeds: [ { title: "New York Times Technology", url: "https://rss.nytimes.com/services/xml/rss/nyt/Technology.xml", encoding: "UTF-8" //ISO-8859-1 } ], showSourceTitle: true, showPublishDate: true,
And here is the terminal log:
> magicmirror@2.10.1 start /home/pi/MagicMirror > ./run-start.sh [11:52:02.159] [LOG] Starting MagicMirror: v2.10.1 [11:52:02.190] [LOG] Loading config ... [11:52:02.209] [LOG] Loading module helpers ... [11:52:02.216] [LOG] No helper found for module: alert. [11:52:02.379] [LOG] Initializing new module helper ... [11:52:02.381] [LOG] Module helper loaded: updatenotification [11:52:02.383] [LOG] No helper found for module: clock. [11:52:03.944] [LOG] Initializing new module helper ... [11:52:03.946] [LOG] Module helper loaded: calendar [11:52:03.948] [LOG] No helper found for module: compliments. [11:52:03.949] [LOG] No helper found for module: currentweather. [11:52:03.951] [LOG] No helper found for module: weatherforecast. [11:52:04.063] [LOG] Initializing new module helper ... [11:52:04.065] [LOG] Module helper loaded: newsfeed [11:52:04.066] [LOG] All module helpers loaded. [11:52:04.069] [LOG] Starting server on port 8080 ... [11:52:04.123] [LOG] Server started ... [11:52:04.127] [LOG] Connecting socket for: updatenotification [11:52:04.132] [LOG] Connecting socket for: calendar [11:52:04.135] [LOG] Starting node helper for: calendar [11:52:04.137] [LOG] Connecting socket for: newsfeed [11:52:04.139] [LOG] Starting module: newsfeed [11:52:04.141] [LOG] Sockets connected & modules started ... [11:52:04.589] [LOG] Launching application. [11:52:10.718] [LOG] Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 [11:52:10.923] [LOG] Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 [11:53:11.945] [LOG] Use existing news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml
-
You have edited the wrong file, namely the newsfeed.js file. You should be editing the config.js file which resides is the MagicMirror/config folder. If so, you should revert all your changes to their original state and edit the config.js entry for the newsfeed module. It should look something like this. I tested your url for NOS Algemeen and it works fine with the module.
{ module: "newsfeed", position: "bottom_bar", // This can be any of the regions. Best results in center regions. config: { feeds: [ { title: "NOS Algemeen", url: "http://feeds.nos.nl/nosnieuwsalgemeen", }, { title: "BBC", url: "http://feeds.bbci.co.uk/news/video_and_audio/news_front_page/rss.xml?edition=uk", }, ] } },
Screenshot
<img src=https://www.dropbox.com/s/4umt2lz4m75eg6j/newsfeed.png?raw=1 />