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.

    MMM-Remote-Control to receive notification

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 2 Posters 1.3k 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.
    • S Offline
      sdetweil @totofar
      last edited by

      @totofar take off the comma after restart

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        Hi @sdetweil
        Thank you very much for your answer.
        I did change the syntax but it seems that “RESTART” notification does not work properly.
        In can use sucessfully the below actions :

        payload: {
        	action: "REBOOT"				}
        

        or

        payload: {
        	action: "SHOW",
        	module: "MMM-MyModuleName"
        }
        

        …but action: “RESTART” would not work :(
        …by the way, the button “Restart Magic Mirror” does not work in the interface …/remote.html.

        I found this issue in the log
        [07.02.2021 11:05.21.291] [ERROR] Whoops! There was an uncaught exception…
        [07.02.2021 11:05.21.300] [ERROR] Error: Cannot find module ‘pm2’

        Any idea ?
        Thanks :)

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

          @totofar do u use pm2 to start/restart mm?

          i guess remote-control assumes yes

          pm2 is an app process manager 2.

          if you used my script to install, you were prompted
          if not you can get it and setup pm2 ,to autostart mm on boot by running the fixuppm2 script from here
          https://github.com/sdetweil/MagicMirror_scripts

          after setup see the things u can do, by
          pm2 --help

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • T Offline
            totofar
            last edited by totofar

            Hi @sdetweil
            I do use pm2 to autostart my mm.
            …and the logs I shared earlier come from pm2 logs.
            So I dont understand why calling action:“RESTART” mentions that issue with pm2 module missing…
            Can you please tell me which command is executed when we call that action ?
            Is it ?

            pm2 restart 0
            

            Thanks

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

              @totofar no idea not my module.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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