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.

    Magic Mirror doesn't work after a boot

    Scheduled Pinned Locked Moved Solved Troubleshooting
    27 Posts 2 Posters 8.5k 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.
    • E Offline
      eightbit @sdetweil
      last edited by

      @sdetweil said in Magic Mirror doesn't work after a boot:

      “start”: “DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js”,

      
      {
              "name": "magicmirror",
              "version": "2.25.0",
              "description": "The open source modular smart mirror platform.",
              "main": "js/electron.js",
              "scripts": {
          "start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
              },
              "repository": {
                      "type": "git",
                      "url": "git+https://github.com/MichMich/MagicMirror.git"
      
      
      S 1 Reply Last reply Reply Quote 0
      • E Offline
        eightbit @sdetweil
        last edited by

        @sdetweil

        Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux

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

          @eightbit you didn’t need to delete all the rest of the scripts

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @eightbit ok, armv7 and memory >512… hm

            can u send me the ~/install.log
            I want to see why it picked the run-statrt approach…

            same userid at gmail

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

              @eightbit thanks for the log… says electron did not install. hmm…

              thus trying to use chromium…

              does it start now ? pm2 or npm start?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Reply Quote 0
              • E Offline
                eightbit @sdetweil
                last edited by

                @sdetweil ```
                secretsanta@raspberrypi:~/MagicMirror $ npm start

                magicmirror@2.25.0 start
                DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

                sh: 1: ./node_modules/.bin/electron: not found

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

                  @eightbit ok…

                  cd ~/MagicMirror
                  npm install electron@26.2.4
                  

                  and try again, manually w
                  npm start

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @eightbit i couldn’t approve the message, system though it was spam

                    those are noise we can’t hide…

                    try npm start again

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    E 1 Reply Last reply Reply Quote 1
                    • E Offline
                      eightbit @sdetweil
                      last edited by

                      @sdetweil that started up very quickly. Let me clean out my pm2 and re-run the autostart you suggested at the beginning.

                      1 Reply Last reply Reply Quote 1
                      • E Offline
                        eightbit
                        last edited by

                        @sdetweil

                        DUDE YOU ARE THE ABSOLUTE BOSS!

                        You may have even saved Christmas for my secret santa recipient. Thank you so much for helping me slog through this last piece of the puzzle. So it was a missing electron install after all? (And probably all my fuzzing around with the start up solutions)

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

                          @eightbit yes… why it didn’t install, I have no clue…
                          but it also showed the chromium problem which I hadn’t seen before…

                          to restore the original package.json (with the correct start line) do

                          cd ~/MagicMirror
                          git checkout package.json
                          

                          glad we could fix it !

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 1

                          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
                          • 2
                          • 2 / 2
                          • 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