• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Can updatenotification be configured to restart the main MM process?

Scheduled Pinned Locked Moved Solved Troubleshooting
5 Posts 2 Posters 177 Views 2 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.
  • K Offline
    khrusher
    last edited by May 6, 2025, 6:38 PM

    I have updatenotification configured with update commands to perform module specific updates.

          "module":"updatenotification",
             "position":"top_center",
             "config":{
                  updates:
                  [
                    {
                       "MMM-MyStandings": "git pull",
                    },
                    {
                       "MMM-MyScoreboard": "git pull && npm install --omit=dev",
                    },
                 ],
             },
    

    is there way to configure a MM restart command in response to a “restart required” notification?

         pm2 restart MM
    
    S 1 Reply Last reply May 6, 2025, 7:07 PM Reply Quote 0
    • S Offline
      sdetweil @khrusher
      last edited by May 6, 2025, 7:07 PM

      @khrusher yes. it can only restart w pm2 and knows which app to restart

      IMG_1109.png

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      K 1 Reply Last reply May 7, 2025, 3:04 PM Reply Quote 0
      • K Offline
        khrusher @sdetweil
        last edited by May 7, 2025, 3:04 PM

        @sdetweil

        Ok, I read that parameter as ‘restart once one of the modules in the Updates array are updated’

        So updateAutorestart is based on general MM updates.

        How does it know the name of the app to restart?

        does it run

        mp2 restart all
        
        S 1 Reply Last reply May 7, 2025, 3:29 PM Reply Quote 0
        • S Offline
          sdetweil @khrusher
          last edited by May 7, 2025, 3:29 PM

          @khrusher one can determine the path of the running app

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply May 8, 2025, 1:40 PM Reply Quote 0
          • K Offline
            khrusher @sdetweil
            last edited by khrusher May 8, 2025, 1:41 PM May 8, 2025, 1:40 PM

            @sdetweil nice. how do I mark item as ‘Resolved’?

            I found it!

            1 Reply Last reply Reply Quote 0
            • K khrusher has marked this topic as solved on May 8, 2025, 1:40 PM
            • 1 / 1
            1 / 1
            • First post
              1/5
              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