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

[Remote-Control] Shutdown, Configure and Update your MagicMirror

Scheduled Pinned Locked Moved System
274 Posts 78 Posters 753.1k Views 77 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.
  • Y Offline
    yawns Moderator @kurt
    last edited by Apr 11, 2017, 9:56 AM

    @kurt

    If you want to start the process with npm start then you have to do that inside ~/MagicMirror
    However if you want to use pm2 then I would advise following the instructions again: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

    pm2 seems to be working fine on your raspberry, so I would start here:


    Make a MagicMirror start script. To use PM2 in combination with MagicMirror, we need to make a simple shell script. Preferable, we put this script outside the MagicMirror folder to make sure it won’t give us any issues if we want to upgrade the mirror.

    cd ~
    nano mm.sh
    

    Add the following lines:

    cd ~/MagicMirror
    DISPLAY=:0 npm start
    

    Save and close, using the commands CTRL-O and CTRL-X. Now make sure the shell script is executable bij performing the following command:

    chmod +x mm.sh
    

    You are now ready to the MagicMirror using this script using PM2.

    K 1 Reply Last reply Apr 11, 2017, 10:43 AM Reply Quote 1
    • K Offline
      kurt @yawns
      last edited by Apr 11, 2017, 10:43 AM

      @yawns
      my first step was to make this start script following the instructions.
      the mm.sh with the script cd ~/MagicMirror DISPLAY=:0 npm start is now in my /home/pi folder.
      When I try to start the mm by npm start I get this (the mirror is not appearing):

      { Error: listen EADDRINUSE :::8080
          at Object.exports._errnoException (util.js:1026:11)
          at exports._exceptionWithHostPort (util.js:1049:20)
          at Server._listen2 (net.js:1253:14)
          at listen (net.js:1289:10)
          at net.js:1399:9
          at _combinedTickCallback (internal/process/next_tick.js:77:11)
          at process._tickCallback (internal/process/next_tick.js:98:9)
          at Module.runMain (module.js:592:11)
          at run (bootstrap_node.js:402:7)
          at startup (bootstrap_node.js:157:9)
        code: 'EADDRINUSE',
        errno: 'EADDRINUSE',
        syscall: 'listen',
        address: '::',
        port: 8080 }
      

      Thank you

      K 1 Reply Last reply Apr 11, 2017, 11:28 AM Reply Quote 0
      • Y Offline
        yawns Moderator
        last edited by Apr 11, 2017, 11:16 AM

        EADDRINUSE means, there is another process running and listening on port 8080
        It looks like the magicmirror somehow is running already.

        1 Reply Last reply Reply Quote 0
        • K Offline
          kurt @kurt
          last edited by Apr 11, 2017, 11:28 AM

          @yawns
          By now the PM2 does its work! Great!
          When I put the pi away from electricity and then start the pi again, PM2 starts the mirror :slight_smile:
          But when I make some changes in Edit modulesor Einstellungen, save them, the changes are not shown, also after restarting the mirror but I get Error!also after restarting the mirror.
          So by now some features work :slight_smile: some still need some time or a little push…
          Thank you

          1 Reply Last reply Reply Quote 1
          • P Offline
            pepemujica
            last edited by Apr 11, 2017, 2:53 PM

            Hi @mochman !
            Is there any chance to change the caption that it is shown of each module?
            For example, I’ve got 2 clocks modules, so I can see what time is it in 2 different countries. But when I go to the Remote control I see 2 “Clocks” and don’t know which is the clock I’m hiding or showing until I press the boton.
            Is it possible to change the caption in the control?

            Kind regards

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jopyth Moderator @AAPS
              last edited by Jopyth Apr 23, 2017, 9:08 PM Apr 23, 2017, 9:08 PM

              Sorry for my long absence. I am currently in the last weeks of writing my master thesis. Therefore unfortunately not much will be happening until second or third week of May.

              Big thanks to @strawberry-3-141 and @yawns to help everyone out so much. I finally made a release with the outstanding fixes:

              [1.1.3] - 2017-04-23

              Added

              • Portuguese translation
              • Indonesian translation
              • Support for iOS Icon and Webapp

              Changed

              • Installation no longer needs a temporary file

              Fixed

              • Icon paths adapted to changes in Magic Mirror² 2.1.0

              Hopefully I got everyone covered in my answers:

              @PatrickGlatz Have you figured it out yet? I don’t think there is any special configuration needed, just need to find the right menu.

              @kurt Thanks! Hopefully I will come around to improve the config interface at some point, as there are still some known bugs and problems, but I am glad it is already helping.

              @AAPS You are right, I should probably add npm install after updating MM.

              @pepemujica What error do you get? Maybe it is something in your network settings?

              Helpful sticky: How to troubleshoot

              P ? 2 Replies Last reply Apr 24, 2017, 11:54 AM Reply Quote 1
              • P Offline
                pepemujica @Jopyth
                last edited by Apr 24, 2017, 11:54 AM

                @Jopyth Hi! Yes I could solve the part of remote connection, but still can’t find the way to change the name of moddules in the control, since I have for example 3 or 4 iFrames, all of them just says iFrame in the control, so I’m looking the way to customize them. Is it possible?

                Kind regards

                J 1 Reply Last reply Apr 27, 2017, 9:48 AM Reply Quote 0
                • ? Offline
                  A Former User @Jopyth
                  last edited by Apr 26, 2017, 3:57 PM

                  Hey @Jopyth, yes you are of course totally right. Took a closer look into it and of course it is jut a menu entry. Thanks for the hint.

                  1 Reply Last reply Reply Quote 1
                  • J Offline
                    Jopyth Moderator @pepemujica
                    last edited by Apr 27, 2017, 9:48 AM

                    @pepemujica Currently not possible. How would you identify them? Do they have different headers? Or by region/position?

                    Helpful sticky: How to troubleshoot

                    P S 2 Replies Last reply Apr 27, 2017, 6:59 PM Reply Quote 0
                    • F Offline
                      fox
                      last edited by Apr 27, 2017, 6:30 PM

                      Hi @Jopyth thank you for your efforts. A question, on mobile device a crazy bug is there. The navigation is not correct because the navigation buttons are not correct and partly dissappeared.

                      Does anybode have the same issue?

                      Issues With MMM-WatchDog known?

                      https://forum.magicmirror.builders/post/29827

                      Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 19
                      • 20
                      • 21
                      • 22
                      • 23
                      • 27
                      • 28
                      • 21 / 28
                      • 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