• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 6.0k 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 Away
    sdetweil @eightbit
    last edited by Dec 14, 2023, 4:03 PM

    @eightbit can u show me the “start”: from package.json

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    E 1 Reply Last reply Dec 14, 2023, 4:05 PM Reply Quote 1
    • E Offline
      eightbit @sdetweil
      last edited by sdetweil Dec 14, 2023, 4:06 PM Dec 14, 2023, 4:05 PM

      @sdetweil

         "start":"./run-start.sh $1",
         "start":"./run-start.sh $1",
                     "server": "node ./serveronly",
                     "install-mm": "npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev",
                     "install-mm:dev": "npm install --no-audit --no-fund --no-update-notifier",
                     "install-vendor": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier",
                     "install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier",
                     "postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"",
                     "test": "NODE_ENV=test jest -i --forceExit",
                     "test:coverage": "NODE_ENV=test jest --coverage -i --verbose false --forceExit",
                     "test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit",
                     "test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --forceExit",
                     "test:unit": "NODE_ENV=test jest --selectProjects unit",
                     "test:prettier": "prettier . --check",
                     "test:js": "eslint 'js/**/*.js' 'modules/default/**/*.js' 'clientonly/*.js' 'serveronly/*.js' 'translations/*.js' 'vendor/*.js' 'tests/**/*.js' 'config/*' --confi>
                     "test:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json",
                     "test:calendar": "node ./modules/default/calendar/debug.js",
                     "config:check": "node js/check_config.js",
                     "lint:prettier": "prettier . --write",
                     "lint:js": "eslint 'js/**/*.js' 'modules/default/**/*.js' 'clientonly/*.js' 'serveronly/*.js' 'translations/*.js' 'vendor/*.js' 'tests/**/*.js' 'config/*' --confi>
                     "lint:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json --fix",
                     "lint:staged": "lint-staged",
                     "prepare": "[ -f node_modules/.bin/husky ] && husky install || echo no husky installed."
      
      
      S 1 Reply Last reply Dec 14, 2023, 4:06 PM Reply Quote 0
      • S Away
        sdetweil @eightbit
        last edited by sdetweil Dec 14, 2023, 4:06 PM Dec 14, 2023, 4:06 PM

        @eightbit

        delete one of them and replace the other with

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

        also do uname -a

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        E 2 Replies Last reply Dec 14, 2023, 4:11 PM Reply Quote 1
        • E Offline
          eightbit @sdetweil
          last edited by Dec 14, 2023, 4:11 PM

          @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 Dec 14, 2023, 4:15 PM Reply Quote 0
          • E Offline
            eightbit @sdetweil
            last edited by Dec 14, 2023, 4:15 PM

            @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 Dec 14, 2023, 4:16 PM Reply Quote 0
            • S Away
              sdetweil @eightbit
              last edited by Dec 14, 2023, 4:15 PM

              @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 Away
                sdetweil @eightbit
                last edited by Dec 14, 2023, 4:16 PM

                @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 Away
                  sdetweil @eightbit
                  last edited by Dec 14, 2023, 4:34 PM

                  @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 Dec 14, 2023, 4:55 PM Reply Quote 0
                  • E Offline
                    eightbit @sdetweil
                    last edited by Dec 14, 2023, 4:55 PM

                    @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 Dec 14, 2023, 5:04 PM Reply Quote 0
                    • S Away
                      sdetweil @eightbit
                      last edited by Dec 14, 2023, 5:04 PM

                      @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
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        18/27
                        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