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 647 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.
    • 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
              • 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