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.

    Auto Start on Windows 11

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 3 Posters 1.2k Views 3 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.
    • D Offline
      DanClarkCBET3
      last edited by

      Does anyone know how to get Magic Mirror to auto-start on a Windows 11 based system?

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

        @DanClarkCBET3 pm2 exists for windows.
        or
        IMG_1187.png

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

          @DanClarkCBET3 have to create a batch script to do the
          npm run start:windows

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            Krowyn @sdetweil
            last edited by

            @sdetweil what code did you use? I tried this (with and without pause at the end)

            cd MagicMirror
            npm run start:windows
            
            

            I got the following error

            122ff0dc-9758-4458-a8d0-1cc9908998f4-{6804991F-F55B-4C90-A4A9-9AB51FB66E1E}.png

            This would show up for a second before disappearing. Any idea what I missed?

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

              @Krowyn what MagicMirror version are you running? we’ve had these start options now for 2 releases

                      "start:windows": ".\\node_modules\\.bin\\electron js\\electron.js",
              	"start:windows:dev": "npm run start:windows -- dev",
              

              look at package.json version

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                Krowyn @sdetweil
                last edited by

                @sdetweil I can confirm I have both, it’s how I used to start it, but when running the .bat file i keep getting that message. Any clue what may have caused it?

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

                  @Krowyn only thing i can think is the cd MagicMirror failed because the current directory is not correct

                  where is this bat file located?

                  maybe it should be

                  cd %USERPROFILE%\MagicMirror 
                  npm  run start:windows
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 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