MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Worked for 5 minutes...

    Troubleshooting
    3
    5
    626
    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.
    • C
      Chritix last edited by

      After finally getting MM to boot with all the modules appearing on screen, one of the messages was to have the master bench updated, 2500 behind.
      Once I was able to get the update to go through, I rebooted and poof. Mama loads but it’s an entirely black screen with no modules.
      How do I bring them back?
      I know very little about the command lines so talk very slow and spell out the cmd lines for me please! thank you for any help.

      bhepler 1 Reply Last reply Reply Quote 0
      • bhepler
        bhepler Project Sponsor @Chritix last edited by

        @Chritix - Did you remember to run the install commands after you did the upgrade?

        cd ~/MagicMirror
        npm install
        cd modules
        [ go into each module folder and enter:]
        npm install
        
        C S 2 Replies Last reply Reply Quote 0
        • C
          Chritix @bhepler last edited by

          @bhepler I didn’t. and that fixed it. tyvm.

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

            @bhepler we should start a new script for upgrades

            installers/upgrade

            #!/bin/bash
            # change to MagicMirror folder
            cd ~/MagicMirror
            
            # get the latest upgrade
            if git pull; then
              # update any dependencies for base
              if npm install;
                # process updates for modules after base chnaged
                cd modules
                # get the list of modules with  package.json files
                find  -maxdepth 2 -name 'package.json'  | while IFS= read -r FILE; do
                  echo "processing for module " $(dirname $FILE)
                  # change to that directory
                  cd  $(dirname $FILE)
                    # process its dependencies
                    npm install
                  # return to modules folder
                  cd - >/dev/null
                done
                return to Magic Mirror folder
                cd - >/dev/null
              fi
            else
              echo git pull failed
              # return to original folder
              cd - >/dev/null
            fi
            

            Sam

            Create a working config
            How to add modules

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

              see dedicated topic and call for collaboration
              https://forum.magicmirror.builders/topic/10729/new-script-for-mirror-release-upgrades

              Sam

              Create a working config
              How to add modules

              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy