• 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.

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

Scheduled Pinned Locked Moved Tutorials
10 Posts 2 Posters 4.4k 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @noorm91
    last edited by Oct 20, 2017, 8:51 PM

    @noorm91

    There’s VNC that’s standard with Pi3 and Jessie. I don’t know about the Pi1’s abilities. “Putty” seems to be a favorite of many although I’ve never used it. At least with VNC, you can send and receive files to the Pi, edit them locally, and send them back, but I would only do that for major changes or at least large changes. If I were just adding a module for example, I would just do it remotely. It’s a personal preference.

    Assuming you’re talking about applying changes to the MM software, you can simply quit MM, make your changes and relaunch, no?

    Create a working config
    How to add modules

    N 1 Reply Last reply Oct 20, 2017, 8:54 PM Reply Quote 0
    • N Offline
      noorm91 @Mykle1
      last edited by noorm91 Oct 20, 2017, 9:00 PM Oct 20, 2017, 8:54 PM

      @Mykle1
      I followed this guide https://forum.magicmirror.builders/topic/1183/how-i-got-my-magic-mirror-working-on-a-raspberry-pi-0-zero/8?page=1 everything went pretty well mostly…but I still haven’t figured out how to quit and relaunch the MM.

      M 1 Reply Last reply Oct 20, 2017, 8:59 PM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @noorm91
        last edited by Oct 20, 2017, 8:59 PM

        @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 Oct 20, 2017, 9:04 PM Reply Quote 1
        • N Offline
          noorm91 @Mykle1
          last edited by Oct 20, 2017, 9:04 PM

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

          M 1 Reply Last reply Oct 20, 2017, 9:07 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @noorm91
            last edited by Oct 20, 2017, 9:07 PM

            @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 Oct 20, 2017, 9:10 PM Reply Quote 0
            • N Offline
              noorm91 @Mykle1
              last edited by Oct 20, 2017, 9:10 PM

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

              M 1 Reply Last reply Oct 20, 2017, 9:37 PM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @noorm91
                last edited by Mykle1 Oct 20, 2017, 9:41 PM Oct 20, 2017, 9:37 PM

                @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 Oct 20, 2017, 9:55 PM Reply Quote 0
                • N Offline
                  noorm91 @Mykle1
                  last edited by Oct 20, 2017, 9:55 PM

                  @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

                  M 1 Reply Last reply Oct 20, 2017, 10:41 PM Reply Quote 1
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @noorm91
                    last edited by Oct 20, 2017, 10:41 PM

                    @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
                    1 / 1
                    • First post
                      6/10
                      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