MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. eightbit
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    E
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 13
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Magic Mirror doesn't work after a boot

      @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)

      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot

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

      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot

      @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

      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot

      @sdetweil

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

      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot

      @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"
      
      
      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot

      @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."
      
      
      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot

      @sdetweil

      secretsanta@raspberrypi:~ $ free -m
                     total        used        free      shared  buff/cache   available
      Mem:             921         265          94           6         561         594
      Swap:           1861           1        1860
      
      
      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot

      @sdetweil Raspberry Pi 3 Model B Rev 1.2

      I did try to use systemd but it did not work so I disabled and deleted all the systemd attempts.

      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot

      @sdetweil Yea I cleared out the systemd services I tried to enabled. They are disabled and stopped. I also tried an rc.local startup file to run the .sh file which never worked. I know that’s depreciated but desperate times and desperate measures lol.

      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot
      /home/secretsanta/.pm2/logs/MagicMirror-error.log last 15 lines:
      /home/secretsanta/.pm2/logs/MagicMirror-out.log last 15 lines:
      0|MagicMir | [14.12.2023 07:44.23.049] [LOG] No helper found for module: alert.
      0|MagicMir | [14.12.2023 07:44.23.234] [LOG] Initializing new module helper ...
      0|MagicMir | [14.12.2023 07:44.23.248] [LOG] Module helper loaded: updatenotification
      0|MagicMir | [14.12.2023 07:44.46.958] [LOG] Initializing new module helper ...
      0|MagicMir | [14.12.2023 07:44.46.963] [LOG] Module helper loaded: MMM-GooglePhotos
      0|MagicMir | [14.12.2023 07:44.46.988] [LOG] All module helpers loaded.
      0|MagicMir | [14.12.2023 07:44.47.103] [LOG] Starting server on port 8080 ...
      0|MagicMir | [14.12.2023 07:44.47.496] [LOG] Server started ...
      0|MagicMir | [14.12.2023 07:44.47.499] [LOG] Connecting socket for: updatenotification
      0|MagicMir | [14.12.2023 07:44.47.503] [LOG] Starting module helper: updatenotification
      0|MagicMir | [14.12.2023 07:44.47.525] [LOG] Connecting socket for: MMM-GooglePhotos
      0|MagicMir | [14.12.2023 07:44.47.527] [LOG] Sockets connected & modules started ...
      0|MagicMir | [14.12.2023 07:44.47.529] [LOG]
      0|MagicMir | Ready to go! Please point your browser to: http://localhost:8080
      0|MagicMir | Starting chromium browser now, have patience, it takes a minute
      
      
      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot

      @sdetweil Shoot. No luck! When I ran your script it loaded up and started perfectly and after the reboot it is hung on a white screen. In the logs it looks like it’s really trying to do something with the chromium browser but it just hangs and hangs. When it works on a pm2 start mm.sh (or using fixuppm2.sh) the log looks the same but then there are a couple lines after “starting chromium browser now”. I’ll post the log in another post.

      posted in Troubleshooting
      E
      eightbit
    • RE: Magic Mirror doesn't work after a boot

      @sdetweil Should I delete the mm.sh in my home dir before i run your pm2 fix?

      posted in Troubleshooting
      E
      eightbit
    • Magic Mirror doesn't work after a boot

      I need some serious help. I’ve probably spent the last 12 hours messing with PM2 and the mm.sh script for a Magic Mirror to display google photos.

      When I do a pm2 start mm.sh it works perfectly. It loads the pictures up and cycles through them. When I reboot the raspberry pi Magic Mirror will attempt to launch but it just sits at this infinite white screen and never loads the pictures to cycle through. If I ssh into the system and do another pm2 start mm.sh -f it works and if I do a pm2 restart mm.sh it works.

      What am I missing here? No other start up method seems to get this thing to successfully display pictures after a reboot. Please help…

      Here is the guide I’m trying to follow
      https://docs.magicmirror.builders/configuration/autostart.html#using-pm2

      posted in Troubleshooting
      E
      eightbit
    • 1 / 1