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.

    Refresh modules / MagicMirror without running pm2 restart?

    Scheduled Pinned Locked Moved Troubleshooting
    17 Posts 4 Posters 4.2k 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.
    • C Offline
      cotxwx
      last edited by

      Good Day,

      I’m using MMM-RAIN-RADAR on my MM, and it’s great. Family loves it, and even though support for it has been suspended, we’ll continue to use it. One of the issues I notice with it, though, is that the module stops updating after a couple of hours. The module is still there, but the radar content disappears. I’ve setup a cron to run “pm2 restart mm.sh” every four hours, but that seems to be a bit overkill, and I’ve recently discovered the 4 hours interval isn’t even enough. We still find it stops updating radar content.

      Which brings me to my question. I’ve read there is no way to “reload” individual modules, but is there anything faster / more efficient to update / reload MM without restarting the whole service? Something I could potentially cron to run every hour or so?

      Thank you!

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

        @cotxwx said in Refresh modules / MagicMirror without running pm2 restart?:

        MMM-RAIN-RADAR

        when it stops processing, open the developers window, ctrl-shift-i on the keyboard, select the tab labeled ‘console’,
        enter ‘radar’ (no quotes) in the filter field and scroll up to see any errors…

        I think there should be an unhandled promise rejection error…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          cotxwx
          last edited by

          I will grab that next time it locks up. Thanks!

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

            @sdetweil Screenshot from 2020-04-23 17-05-03.png

            Is there something specific I should be looking for here? It just locked up and this is all I see.

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

              @cotxwx hm… I have it loaded too… we shall see

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Reply Quote 1
              • C Offline
                cotxwx @sdetweil
                last edited by

                @sdetweil If you haven’t had this issue before, that pretty much rules out the module itself, I’d guess. I do have a FW at my egress, with some DNS block lists. It doesn’t seem logical that it would load initially, but fail an hour or two later, but I’ve seen weirder.

                (Unless, of course, you’ve just loaded it. In that case, ignore my last statement).

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

                  @cotxwx just loaded for 1st time ever…

                  have fixed a few things already… my system does module hiding for screen sleep…
                  it doesn’t… added error handler for the case I think is the problem… we will see…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C 1 Reply Last reply Reply Quote 1
                  • C Offline
                    cotxwx @sdetweil
                    last edited by

                    @sdetweil if you’ve just loaded it, watch out for “updateOnWarning:” in the config.js - If you don’t set it to ‘0’, the entire module disappears if there are no active warnings in your area. I learned that one the hard way. :)

                    Thanks for the assistance!

                    S 2 Replies Last reply Reply Quote 0
                    • S Offline
                      sdetweil @cotxwx
                      last edited by

                      @cotxwx hm… mine is showing, did not set that variable

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @cotxwx mine has never stopped working and never reported an error

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        C 1 Reply Last reply Reply Quote 0
                        • 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