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.

    How to apply changes on the MM other than reboot? ftp?

    Scheduled Pinned Locked Moved Tutorials
    10 Posts 2 Posters 4.9k 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @noorm91
      last edited by

      @noorm91

      Ok, this is how I do it.
      While viewing the Pi via VNC, I press the Alt key
      This drops a menu bar down at the top of MM.
      You may not see your mouse/cursor until you move it all the way up into the menu bar.
      The far left menu has Quit in it.

      Relaunch the way you normally would launch MM

      Create a working config
      How to add modules

      N 1 Reply Last reply Reply Quote 1
      • N Offline
        noorm91 @Mykle1
        last edited by

        @Mykle1
        Ok thank you! I get electron.js failed at MM start script when using npm start.
        I will try reinstalling the MM instead tomorrow!

        Mykle1M 1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @noorm91
          last edited by

          @noorm91 said in How to apply changes on the MM other than reboot? ftp?:

          I get electron.js failed at MM start script when using npm start.

          Wait, are you using VNC, because you CAN use npm start using that. Are you running server only?

          Create a working config
          How to add modules

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            noorm91 @Mykle1
            last edited by

            @Mykle1
            Yes Rpi zero and 1 only supports server only at this moment. What I’ve figured out so far and no I’m using Tera Term (almost like PuTTY) accessing it with SSH. But I connected my mouse and keyboard to find the mouse cursor, so I saw the X button on the Midori browser and closed it.

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @noorm91
              last edited by Mykle1

              @noorm91

              Ok, there is a command specific to starting server only I think. Lemme see if I can find it for you before you reinstall anything.

              EDIT

              I think this is what you need
              https://forum.magicmirror.builders/topic/2321/magicmirror-fails-to-start-after-fresh-install

              Create a working config
              How to add modules

              N 1 Reply Last reply Reply Quote 0
              • N Offline
                noorm91 @Mykle1
                last edited by

                @Mykle1
                Thanks again for trying, I will look it up tomorrow and try before reinstall. I think it is best to get a clean installation after everything I’ve tested now, start.sh might even be wrong at this moment. All I get when I reboot is localhost:8080 error something…

                This is what I got after those commands though, npm start gives me electron error, I read somewhere before about rpi zero/1 can´t handle electron.js somehow I think.

                pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 nohup npm start &
                [1] 890
                pi@raspberrypi:~/MagicMirror $ nohup: ignoring input and appending output to ‘nohup.out’
                ^C
                [1]+ Exit 1 DISPLAY=:0 nohup npm start
                pi@raspberrypi:~/MagicMirror $ ^C
                pi@raspberrypi:~/MagicMirror $
                pi@raspberrypi:~/MagicMirror $
                pi@raspberrypi:~/MagicMirror $ npm start

                magicmirror@2.1.0 start /home/pi/MagicMirror
                electron js/electron.js

                /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

                npm ERR! Linux 4.4.34+
                npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
                npm ERR! node v4.2.1
                npm ERR! npm v2.14.7
                npm ERR! file sh
                npm ERR! code ELIFECYCLE
                npm ERR! errno ENOENT
                npm ERR! syscall spawn
                npm ERR! magicmirror@2.1.0 start: electron js/electron.js
                npm ERR! spawn ENOENT
                npm ERR!
                npm ERR! Failed at the magicmirror@2.1.0 start script ‘electron js/electron.js’.
                npm ERR! This is most likely a problem with the magicmirror package,
                npm ERR! not with npm itself.
                npm ERR! Tell the author that this fails on your system:
                npm ERR! electron js/electron.js
                npm ERR! You can get their info via:
                npm ERR! npm owner ls magicmirror
                npm ERR! There is likely additional logging output above.

                npm ERR! Please include the following file with any support request:
                npm ERR! /home/pi/MagicMirror/npm-debug.log

                Mykle1M 1 Reply Last reply Reply Quote 1
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @noorm91
                  last edited by

                  @noorm91 said in How to apply changes on the MM other than reboot? ftp?:

                  Thanks again for trying, I will look it up tomorrow and try before reinstall.

                  Ok, keep me posted. I’ve never used anything other than a Pi 3 B or better, nor have I ever ran MM as node server only, but I am interested in knowing how you get it running.

                  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 Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy