MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MagicMirror Newsfeed continually "loading"...

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    24 Posts 4 Posters 9.3k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @ForeverBrewing
      last edited by

      @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"

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      F 1 Reply Last reply Reply Quote 0
      • F Offline
        ForeverBrewing @sdetweil
        last edited by

        @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:370

        etc 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

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @ForeverBrewing
          last edited by

          @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…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          F 1 Reply Last reply Reply Quote 0
          • F Offline
            ForeverBrewing @sdetweil
            last edited by

            @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_SECOND

            I don’t know if this is relevant in any way?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @ForeverBrewing
              last edited by

              @ForeverBrewing said in MagicMirror Newsfeed continually "loading"...:

              Your AppID does not support long term forecasts.

              forecast is long term, the api gets picky…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              F 1 Reply Last reply Reply Quote 0
              • F Offline
                ForeverBrewing @sdetweil
                last edited by

                @sdetweil Yeah, I guessed it was irrelevant to the newsfeed shenanigans

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @ForeverBrewing
                  last edited by

                  @ForeverBrewing i am trying to test here for info…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @sdetweil
                    last edited by

                    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 entry

                    Starting 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
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    F 1 Reply Last reply Reply Quote 0
                    • F Offline
                      ForeverBrewing @sdetweil
                      last edited by

                      @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…?

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @ForeverBrewing
                        last edited by

                        @ForeverBrewing ok, can u do

                        ls ~/MagicMirror/config -laF
                        ls ~/MagicMirror/modules/default -laF
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        F 1 Reply Last reply Reply Quote 0
                        • F Offline
                          ForeverBrewing @sdetweil
                          last edited by

                          @sdetweil said in MagicMirror Newsfeed continually "loading"...:

                          ls ~/MagicMirror/config -laF
                          ls ~/MagicMirror/modules/default -laF

                          pi@raspberrypi:~/MagicMirror $ ls ~/MagicMirror/config -laF
                          total 20
                          drwxr-xr-x  2 pi pi 4096 Nov 13 18:17 ./
                          drwxr-xr-x 17 pi pi 4096 Nov 12 20:25 ../
                          -rw-r--r--  1 pi pi 3437 Nov 13 17:35 config.js
                          -rw-r--r--  1 pi pi 2769 Nov 10 14:36 config.js.sample
                          -rw-r--r--  1 pi pi   20 Nov 10 14:36 .gitignore
                          pi@raspberrypi:~/MagicMirror $ ls ~/MagicMirror/modules/default -laF
                          total 52
                          drwxr-xr-x 12 pi pi 4096 Nov 12 21:29 ./
                          drwxr-xr-x  6 pi pi 4096 Nov 10 18:20 ../
                          drwxr-xr-x  3 pi pi 4096 Nov 10 14:36 alert/
                          drwxr-xr-x  3 pi pi 4096 Nov 10 14:36 calendar/
                          drwxr-xr-x  3 pi pi 4096 Nov 10 14:36 clock/
                          drwxr-xr-x  2 pi pi 4096 Nov 10 16:35 compliments/
                          drwxr-xr-x  2 pi pi 4096 Nov 10 14:36 currentweather/
                          -rw-r--r--  1 pi pi  520 Nov 10 14:36 defaultmodules.js
                          drwxr-xr-x  2 pi pi 4096 Nov 10 14:36 helloworld/
                          drwxr-xr-x  2 pi pi 4096 Nov 12 21:32 newsfeed/
                          drwxr-xr-x  2 pi pi 4096 Nov 10 14:36 updatenotification/
                          drwxr-xr-x  3 pi pi 4096 Nov 10 14:36 weather/
                          drwxr-xr-x  2 pi pi 4096 Nov 10 14:36 weatherforecast/
                          

                          Thank you so much for your time with this btw :)

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @ForeverBrewing
                            last edited by

                            @ForeverBrewing said in MagicMirror Newsfeed continually "loading"...:

                            Thank you so much for your time with this btw

                            no problem… like to help…

                            but the output doesn’t match the config at all… there should be more info about the other modules and errors if they were not found…

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            F 1 Reply Last reply Reply Quote 0
                            • F Offline
                              ForeverBrewing @sdetweil
                              last edited by

                              @sdetweil

                              Well I guess installing a fresh copy wont be too much hassle! Its not like I cant work out how to get the google assistant to work anyway, so I’ll probably just keep it completely vanilla. Even I cant balls that up too much…

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @ForeverBrewing
                                last edited by sdetweil

                                @ForeverBrewing use the updated installer… see https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer
                                you should rename the current MM folder out of the way… then u can copy files over if need be

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                F 1 Reply Last reply Reply Quote 0
                                • F Offline
                                  ForeverBrewing @sdetweil
                                  last edited by

                                  @sdetweil

                                  Will do, thanks for your help :)

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    spblat
                                    last edited by

                                    For those googling this problem, consider whether you added the module to your config file but didn’t stop and restart the software. Many config changes can take effect just by saving the config file and reloading the browser window, but adding and removing modules…not so much :-)

                                    S 1 Reply Last reply Reply Quote 2
                                    • S Offline
                                      sdetweil @spblat
                                      last edited by

                                      @spblat if the module has a node_helper.js, you need to restart MM for any changes to take place

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 2
                                      • ParvezP Offline
                                        Parvez
                                        last edited by

                                        Just reinstall this modules
                                        i things solved this problem

                                        cd ~/MagicMirror/modules/default/newsfeed/
                                        npm install 
                                        

                                        Parvez Ahmed

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sdetweil @Parvez
                                          last edited by sdetweil

                                          @Parvez no. no package.json there

                                          that is part of the base mm

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • ParvezP Offline
                                            Parvez
                                            last edited by

                                            @sdetweil can you help me … install problem MMM Hotword

                                            Welcome to Hotword v2.4.0
                                            
                                            Checking OS...
                                            OS Detected: linux-gnueabihf (raspbian 10 armv7l)
                                            
                                            Do you want to execute automatic intallation ? [Y/n] 
                                            Your choice: N
                                            npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                            npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                                            npm ERR! code E404
                                            npm ERR! 404 Not Found - GET https://registry.npmjs.org/@bugsounet%2flpcm16 - Not found
                                            npm ERR! 404 
                                            npm ERR! 404  '@bugsounet/lpcm16@^1.0.1' is not in the npm registry.
                                            npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
                                            npm ERR! 404 It was specified as a dependency of 'MMM-Hotword'
                                            npm ERR! 404 
                                            npm ERR! 404 Note that you can also install from a
                                            npm ERR! 404 tarball, folder, http url, or git url.
                                            
                                            npm ERR! A complete log of this run can be found in:
                                            npm ERR!     /home/pi/.npm/_logs/2020-10-03T05_32_52_379Z-debug.log
                                            
                                            

                                            Parvez Ahmed

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy