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.

    MMM-PIR-Sensor restart problem

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    26 Posts 5 Posters 21.1k Views 4 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.
    • T Offline
      trividar
      last edited by paviro

      @MichMich Thanks a lot for your help…that was simple;o)!

      Now my MagicMirror won’t start on the monitor;o(
      I just get a back screen an i couldn’t do anything, my monitor is still working but just black screen and nothing else. Also I can’t quit the MagicMirror with ctrl+w. I can just get access with shh… an If I try to stop magic mirror with pm2 stop mm it stops but the screen is still black. If I use over ssh my laptop and start with npm start the MagicMirror works well. If i disconnect the PIR sensor (hardware) then everything works well.

      I got this error if i start pm2 logs mm…

      0_1465113230337_IMG-20160605-WA0001.jpg
      You know what I do wrong? (Sorry for all this noob questions)

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

        EADDRINUSE:::8080 means there is already an app running on port 8080. Probably the app itself which you already started once. If you can’t figure out how to quit it, simply restart your Pi. This should solve it.

        1 Reply Last reply Reply Quote 0
        • T Offline
          trividar
          last edited by

          @MichMich Thanks for your fast replay. I restart my Pi several times, but I have always the same problem. My MagicMirror starts normal and after 2 seconds the screen goes black.

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

            With the same error?

            1 Reply Last reply Reply Quote 0
            • T Offline
              trividar
              last edited by

              Yes with the same error…

              1 Reply Last reply Reply Quote 0
              • T Offline
                trividar
                last edited by

                Now i have disconnect the cables from pir sensor and restart my pi. After reboot my pi my Magicmirror start automaticlly normal and after 2 seconds they got again black. That crazy thing is, I press ctrl+w and the blackscreen goes away and the the Magicmirror works “under” the blackscreen well…

                paviroP 1 Reply Last reply Reply Quote 0
                • paviroP Offline
                  paviro @trividar
                  last edited by

                  @trividar try changing the port in the config.js from 8080 to 8888 and reboot.

                  We're all stories in the end. Just make it a good one, eh?

                  – The Doctor

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    trividar
                    last edited by

                    @paviro I have now the same error just with 8888.

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

                      How do you start your Mirror?

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        trividar
                        last edited by

                        with autostart (from wiki).

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

                          It somehow probably starts multiple instances. Disable the auto start and try to get it working manually first.

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            trividar
                            last edited by

                            how can I do that?

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

                              @trividar pm2 stop mm

                              check if it’s running pm2 list

                              No instances should be running at that point. then start the MM using npm start from your MagicMirror folder from a terminal running on your PI (so not via SSH)

                              1 Reply Last reply Reply Quote 0
                              • paviroP Offline
                                paviro
                                last edited by

                                Moved this part of the topic into a new thread since it has nothing to do with the module.

                                We're all stories in the end. Just make it a good one, eh?

                                – The Doctor

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

                                  If i stop with pm2 stop mm and start my MM with npm start from terminal everything works fine, but without the PIR sensor. If i connect the sensor to my pi i get the blackscreen.

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

                                    @paviro See the replay in the other topic. It seems it has something to do with the module.

                                    1 Reply Last reply Reply Quote 0
                                    • paviroP Offline
                                      paviro
                                      last edited by

                                      Strange no idea what could case that. Will check back…

                                      We're all stories in the end. Just make it a good one, eh?

                                      – The Doctor

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        trividar
                                        last edited by

                                        Thank you both for your help!
                                        How can I disable completely the MM autostart?

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          trividar
                                          last edited by

                                          and just to be 100% sure if its so right? 0_1465119368006_22c286dc-79a4-4cdc-a708-a9a20a6325ed.jpg

                                          1 Reply Last reply Reply Quote 0
                                          • paviroP Offline
                                            paviro
                                            last edited by

                                            Looks fine. The thing that I don’t understand is how connection this could lead to a seconds start of a MM instance…

                                            We're all stories in the end. Just make it a good one, eh?

                                            – The Doctor

                                            1 Reply Last reply Reply Quote 0

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