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.

    MagicMirrorOS reload config without reboot

    Scheduled Pinned Locked Moved Solved Troubleshooting
    10 Posts 4 Posters 1.5k 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.
    • F Offline
      fischi87
      last edited by

      Hey Guys, i installed my magicmirror with the magicmirroros. How can i reload the config.js without a complete reboot. pm2 is not installed in the magicmirroros?

      i dont want always reboot the pi to see if my config works.

      thanks

      M karsten13K 2 Replies Last reply Reply Quote 0
      • M Offline
        MMRIZE @fischi87
        last edited by

        F5.
        But some complex/heavy modules might not work .

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

          @MMRIZE or ctrl-r

          but neither reload the node_helpers

          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
            fischi87 @sdetweil
            last edited by

            @sdetweil

            i just have a connection with ssh.

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

              @fischi87 yes the two keystrokes only work on the mm web page

              I don’t know is mmos documents how to reload the container. we don’t support that here.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • M Offline
                MMRIZE @fischi87
                last edited by

                @fischi87
                You don’t have to “reboot”, connect MM then stop the “pm2” or whatever process manager you use.

                If you are using pm2, try this. I have not used it but may work for you.
                https://pm2.keymetrics.io/docs/usage/watch-and-restart/

                F 1 Reply Last reply Reply Quote 0
                • F Offline
                  fischi87 @MMRIZE
                  last edited by

                  @MMRIZE

                  like i wrote i installed the magicmirroros and there is no pm2. i dont know what start the magicmirror after boot in the os. somebody know what start the magicmirror software?

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

                    @fischi87 mmos uses a docker container to run MagicMirror. the mm files are on the OS file system and mounted into the container

                    so you would need to restart the container

                    docker container restart ????id???? 
                    

                    see
                    https://docs.docker.com/engine/reference/commandline/restart/

                    you would need to do

                    docker container ls
                    

                    to list the containers to get it’s id to use in the restart command

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    F 1 Reply Last reply Reply Quote 0
                    • karsten13K Offline
                      karsten13 @fischi87
                      last edited by

                      @fischi87

                      out of my head (untested):

                      cd ~/magicmirror/run
                      docker-compose up -d --force-recreate
                      
                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        fischi87 @sdetweil
                        last edited by

                        @sdetweil

                        this works thank you.

                        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