Read the statement by Michael Teeuw here.
MagicMirror Newsfeed continually "loading"...
-
@sdetweil
I have tried re-editing your paste into my config.js. There were a couple of minor formatting changes, but ultimately the problem persists.Thanks for having a look though!
-
@ForeverBrewing ok, "Loading… " is the default message displayed until data comes in… then its replaced by the formatted data…
so, open the developers window, ctrl-shift-i on the keyboard, select the tab labeled console, and scroll up to find any errors…
many times one can filter the messages by the some part of the module name in this case 'news"
-
@sdetweil
Hey Sam. I have looked through the dev window and cant find any errors, but it is clearly unhappy about something.Below is a sample of what i get as soon as I start the MM:
Load script: modules/default/newsfeed//newsfeed.js
module.js:476 Module registered: newsfeed
loader.js:150 Bootstrapping module: newsfeed
loader.js:155 Scripts loaded for: newsfeed
loader.js:157 Styles loaded for: newsfeed
loader.js:159 Translations loaded for: newsfeed
newsfeed.js:61 Starting module: newsfeed
newsfeed.js:370 newsfeed - received notification: ALL_MODULES_STARTED
newsfeed.js:429 newsfeed - unknown notification, ignoring: ALL_MODULES_STARTED
newsfeed.js:370 newsfeed - received notification: MODULE_DOM_CREATED
newsfeed.js:429 newsfeed - unknown notification, ignoring: MODULE_DOM_CREATED
newsfeed.js:370 newsfeed - received notification: DOM_OBJECTS_CREATED
newsfeed.js:429 newsfeed - unknown notification, ignoring: DOM_OBJECTS_CREATED
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370 newsfeed - received notification: CURRENTWEATHER_DATA
newsfeed.js:429 newsfeed - unknown notification, ignoring: CURRENTWEATHER_DATA
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370 newsfeed - received notification: CLOCK_MINUTE
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_MINUTE
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370 newsfeed - received notification: CLOCK_SECOND
newsfeed.js:429 newsfeed - unknown notification, ignoring: CLOCK_SECOND
newsfeed.js:370etc etc.
I have tried to click the link and see where in the code the error is, but I am WAAAAY out of my league. The fact is I have literally no idea what i’m looking at and am 100% relying on everybody else’s knowledge to manage anything vaguely resembling anything clever.
Hope this helps?
Brew
-
@ForeverBrewing said in MagicMirror Newsfeed continually "loading"...:
The fact is I have literally no idea what i’m looking at
its ok… we all learn over time…
the system allows modules to talk to each other by sending ‘notification’ messages…
most of what you see are the clock noisily telling others that time is ticking…
but, I don’t see any messages about the feed setup…
-
@sdetweil
Once I stop filtering for “news” I do see one error, but it relates the the weather module:newsfeed - unknown notification, ignoring: CLOCK_SECOND
api.openweathermap.o…43aac34d08eb3e2f3:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
weatherforecast.js:266 weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint.
newsfeed.js:370 newsfeed - received notification: CLOCK_SECONDI don’t know if this is relevant in any way?
-
@ForeverBrewing said in MagicMirror Newsfeed continually "loading"...:
Your AppID does not support long term forecasts.
forecast is long term, the api gets picky…
-
@sdetweil Yeah, I guessed it was irrelevant to the newsfeed shenanigans
-
@ForeverBrewing i am trying to test here for info…
-
if you do a
pm2 stop 0
then from a command prompt, even over ssh
npm start
you will see messages , here is the default set of stuff,
see that last entryStarting MagicMirror: v2.9.0 Loading config ... Loading module helpers ... No helper found for module: alert. Initializing new module helper ... Module helper loaded: updatenotification No helper found for module: clock. Initializing new module helper ... Module helper loaded: calendar No helper found for module: compliments. No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper ... Module helper loaded: newsfeed All module helpers loaded. Starting server on port 8080 ... You're using a full whitelist configuration to allow for all IPs Server started ... Connecting socket for: updatenotification Connecting socket for: calendar Starting node helper for: calendar Connecting socket for: newsfeed Starting module: newsfeed Sockets connected & modules started ... Launching application. Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
-
@sdetweil
Nope, I’m missing the last two lines:pi@raspberrypi:~/MagicMirror $ pm2 stop 0 npm start [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2 [PM2] PM2 Successfully daemonized [PM2] Applying action stopProcessId on app [0](ids: 0) [PM2][ERROR] Process 0 not found pi@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.9.0 start /home/pi/MagicMirror > sh run-start.sh Starting MagicMirror: v2.9.0 Loading config ... Loading module helpers ... Initializing new module helper ... Module helper loaded: updatenotification No helper found for module: helloworld. All module helpers loaded. Starting server on port 8080 ... Server started ... Connecting socket for: updatenotification Sockets connected & modules started ... Launching application.
Also looks like the helper module doesn’t get loaded…?