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.

    Looking for Beta-testers!

    Scheduled Pinned Locked Moved MagicMirror
    56 Posts 17 Posters 63.3k Views 18 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.
    • bscaranoB Offline
      bscarano
      last edited by

      I’m now on Develop. Will this update automatically or will I need to run something periodically?

      KirAsh4K MichMichM 2 Replies Last reply Reply Quote 0
      • KirAsh4K Offline
        KirAsh4 Moderator @bscarano
        last edited by

        @bscarano, regardless of which branch you are on, you are in charge of your mirror, including updating the code.

        A Life? Cool! Where can I download one of those from?

        1 Reply Last reply Reply Quote 0
        • MichMichM Offline
          MichMich @bscarano
          last edited by

          @bscarano To update to the latest version, you’ll need to pull the latest changes. This can be done using: git pull (from the command line within your MagicMirror² folder).

          1 Reply Last reply Reply Quote 0
          • K Offline
            kckndrgn
            last edited by

            I am now on the development branch.
            I have verified that the changes fixed my “blank screen” with the language set in the config file.

            Thanks!

            1 Reply Last reply Reply Quote 0
            • MichMichM Offline
              MichMich
              last edited by

              Update: More detailed error message in case config file couldn’t be loaded.

              Please let me know if this works for you.

              PR: https://github.com/MichMich/MagicMirror/pull/391#issuecomment-237919625

              1 Reply Last reply Reply Quote 0
              • MichMichM Offline
                MichMich
                last edited by

                Please test the following PR:
                https://github.com/MichMich/MagicMirror/pull/416

                It’s merged into the current develop branch. If you are on the develop branch, please use git pull to update to the latest version.

                Thanks!

                1 Reply Last reply Reply Quote 0
                • BangeeB Offline
                  Bangee Module Developer
                  last edited by

                  I’m now on the latest DEV version.

                  I had some problems to run it with my PIR Sensor.
                  this command helps to run it:

                  npm rebuild --runtime=electron-prebuilt --target=0.37.8 --disturl=https://atom.io/download/atom-shell --build-from-source
                  

                  IpWithelist:
                  I’ve added my Subnet to de Withelist, but I can’t access my MagicMirror using a browser:

                  This device is not allowed to access your mirror.
                  Please check your config.js or config.js.sample to change this.
                  

                  Would it be possible to add something like “Your IP-Adress: 192.168.0.99”?

                  ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", ["192.168.0.99", "192.168.0.254"]],
                  

                  This sould add a range from 192.168.0.99-192.168.0.254, or am I wrong?

                  Thanks for your help.

                  1 Reply Last reply Reply Quote 1
                  • MichMichM Offline
                    MichMich
                    last edited by

                    @bangee: Check your node log. It should tell you which IP is trying to access the server. Good idea to add it to the “access denied” message. Will put it on my todo list. (PR is welcome!)

                    J 1 Reply Last reply Reply Quote 0
                    • BangeeB Offline
                      Bangee Module Developer
                      last edited by

                      @MichMich Thank you. I’ve had to update my config:
                      the Log told me:
                      Access denied to IP address: ::ffff:192.168.0.99

                      It works with this:

                      ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.0.1/24", "192.168.0.1/24"],
                      
                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jopyth Moderator @MichMich
                        last edited by Jopyth

                        My mirror is now also running the development version, and I am experiencing restarts more often than before. I guess it is related to # 150 since there is no error in the log. Anyway I saw this twice yesterday, but this might just be something with a newer electron version, so maybe nothing we can fix. It is still a little bit annoying.

                        @MichMich By the way, do you have any particular date in mind for the release?

                        Helpful sticky: How to troubleshoot

                        1 Reply Last reply Reply Quote 0
                        • MichMichM Offline
                          MichMich
                          last edited by

                          No, can’t give you an ETA.

                          Keep me posted on the restart issue.

                          J 1 Reply Last reply Reply Quote 0
                          • J Offline
                            Jopyth Moderator @MichMich
                            last edited by Jopyth

                            I am a little bit in the dark on the restart issue. It happens every time I change any file in my source code directory, i.e. config/config.js or even package.json.

                            All I have so far, is this appeared after I updated to development branch (hence updated all npm dependencies), plus I had to update my PIR-Sensor module (got a version XX expected, got XX error), and rebuild dependencies there also.

                            Does anyone have any idea on this? And is anyone else even seeing this behavior also? If I have time, I will try a complete reinstall and see if that fixes it.

                            Helpful sticky: How to troubleshoot

                            1 Reply Last reply Reply Quote 0
                            • MichMichM Offline
                              MichMich
                              last edited by

                              Arent you running any tool that watches your directory and restarts? Like nodemon or pm2?

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                Jopyth Moderator
                                last edited by Jopyth

                                I am using pm2 but watch & reload was disabled.

                                I did a complete update, which apparently helped people before with #150, that seems to have fixed it:

                                sudo apt-get update
                                sudo apt-get upgrade
                                sudo apt-get dist-upgrade
                                sudo apt-get clean
                                sudo rpi-update
                                

                                Helpful sticky: How to troubleshoot

                                1 Reply Last reply Reply Quote 0
                                • G Offline
                                  gismo2006
                                  last edited by

                                  @Jopyth some time ago my mirror suddenly didn’t work whit pm2. From one day to the other. I changed nothing and it works fine before. I didn’t know what happens. But then I found a little order in the display when I prompt pm2 start mm… I didn’ t rember the order but I know pm2 worked some second displayed something and then everything works fine again. …

                                  Maybe you found something , too

                                  Greets gismo

                                  1 Reply Last reply Reply Quote 0
                                  • MichMichM Offline
                                    MichMich
                                    last edited by

                                    Guys, I’ve just made a modification that hides a region if all modules in a region are hidden. This should prevent unwanted margins when a region (like the top_bar) only contains hidden modules. This allows my to move the updatenotification module to the topbar.

                                    Due to the nature of the change, this could cause some serious issues if it contains any missed bugs. It would be great if you guys gan pull the latest version and let me know if everything keeps working. If you’re having issues with some modules not showing up, please let me know.

                                    More info about this change can be found here: https://github.com/MichMich/MagicMirror/commit/e4197012f65778f815cd73a6c7fab1a30ef3b92f

                                    Thanks!

                                    E 1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      ESOB @MichMich
                                      last edited by

                                      @MichMich I am on the latest develop and it throws an error and just gives me a black screen:

                                      > magicmirror@2.1.1 start /home/pi/MagicMirror
                                      > sh run-start.sh
                                      
                                      Starting MagicMirror: v2.1.1
                                      Loading config ...
                                      App threw an error during load
                                      TypeError: Path must be a string. Received undefined
                                          at assertPath (path.js:7:11)
                                          at Object.resolve (path.js:1148:7)
                                          at loadConfig (/home/pi/MagicMirror/js/app.js:53:29)
                                          at App.start (/home/pi/MagicMirror/js/app.js:180:3)
                                          at Object. (/home/pi/MagicMirror/js/electron.js:102:6)
                                          at Module._compile (module.js:556:32)
                                          at Object.Module._extensions..js (module.js:565:10)
                                          at Module.load (module.js:473:32)
                                          at tryModuleLoad (module.js:432:12)
                                          at Function.Module._load (module.js:424:3)
                                      Whoops! There was an uncaught exception...
                                      TypeError: Path must be a string. Received undefined
                                          at assertPath (path.js:7:11)
                                          at Object.resolve (path.js:1148:7)
                                          at loadConfig (/home/pi/MagicMirror/js/app.js:53:29)
                                          at App.start (/home/pi/MagicMirror/js/app.js:180:3)
                                          at Object. (/home/pi/MagicMirror/js/electron.js:102:6)
                                          at Module._compile (module.js:556:32)
                                          at Object.Module._extensions..js (module.js:565:10)
                                          at Module.load (module.js:473:32)
                                          at tryModuleLoad (module.js:432:12)
                                          at Function.Module._load (module.js:424:3)
                                      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                      Launching application.
                                      
                                      

                                      When I jump back to Master branch it loads fine:

                                      //your code> magicmirror@2.1.0 start /home/pi/MagicMirror
                                      > electron js/electron.js
                                      
                                      Starting MagicMirror: v2.1.0
                                      Loading config ...
                                      Loading module helpers ...
                                      No helper found for module: alert.
                                      Initializing new module helper ...
                                      No helper found for module: clock.
                                      Initializing new module helper ...
                                      Initializing new module helper ...
                                      Initializing new module helper ...
                                      Initializing new module helper ...
                                      Initializing new module helper ...
                                      All module helpers loaded.
                                      Starting server op port 8080 ... 
                                      Server started ...
                                      Connecting socket for: MMM-Remote-Control
                                      Starting node helper for: MMM-Remote-Control
                                      Connecting socket for: calendar
                                      Starting node helper for: calendar
                                      Connecting socket for: MMM-Traffic
                                      MMM-Traffic helper started ...
                                      Connecting socket for: MMM-WunderGround
                                      MMM-WunderGround helper started ...
                                      Connecting socket for: MMM-NFL
                                      Starting module: MMM-NFL
                                      Connecting socket for: newsfeed
                                      Starting module: newsfeed
                                      Sockets connected & modules started ...
                                      Launching application.
                                      ERROR! Could not find main module js 
                                      
                                      1 Reply Last reply Reply Quote 1
                                      • SnilleS Offline
                                        Snille Module Developer
                                        last edited by

                                        Hi there, got the same problem… It’s time for bed anyway. :)

                                        If you cant find it, make it and share it!
                                        Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          roramirez Core Contributors
                                          last edited by

                                          So… that is my mistake. I pushed fix the wrong validation :(
                                          https://github.com/MichMich/MagicMirror/pull/658

                                          Easy module development with MagicMirror Module Template

                                          1 Reply Last reply Reply Quote 0
                                          • MichMichM Offline
                                            MichMich
                                            last edited by

                                            I’ve just merged the fix!👍

                                            1 Reply Last reply Reply Quote 1

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • 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