MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Refresh modules / MagicMirror without running pm2 restart?

    Troubleshooting
    4
    17
    731
    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
      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
        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

        Create a working config
        How to add modules

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

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

          1 Reply Last reply Reply Quote 0
          • C
            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
              sdetweil @cotxwx last edited by

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

              Sam

              Create a working config
              How to add modules

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

                  Create a working config
                  How to add modules

                  C 1 Reply Last reply Reply Quote 1
                  • C
                    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
                      sdetweil @cotxwx last edited by

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

                      Sam

                      Create a working config
                      How to add modules

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

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

                        Sam

                        Create a working config
                        How to add modules

                        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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy