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-SleepWake turn off but not turn on

    Scheduled Pinned Locked Moved Troubleshooting
    mmm-sleepwakemagic mirrorturn onturn off
    23 Posts 3 Posters 6.0k Views 3 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.
    • S Offline
      sdetweil @krosamont
      last edited by

      @krosamont remove the ; in motion.conf on the two lines u edited

      no leading ; or #

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil thanks for the quick answer. Sorry I should have payed more attention to this. I have made the modification into motion.conf:

        # Command to be executed when an event starts. (default: none)
        # An event starts at first motion detected after a period of no motion defined by event_gap
        on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion started
        
        # Command to be executed when an event ends after a period of no motion
        # (default: none). The period of no motion is defined by option event_gap.
        on_event_end /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion ended
        
        

        But it still doesn’t turn on after the sleep…

        S 2 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil @krosamont
          last edited by sdetweil

          @krosamont then u have to restart motion module

          u can test the start/stop commands

          from a terminal window or over ssh

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @krosamont
            last edited by sdetweil

            @krosamont but it sleeps on timer(no motion) and wakes on motion.
            how long after motion til motion fires the ended event?

            look in /var/log/motion.log

            may have to fiddle w some motion settings.

            i changed my time gap down to 15 seconds
            the camera is detecting motion constantly

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Reply Quote 0
            • K Offline
              krosamont @sdetweil
              last edited by

              @sdetweil said in MMM-SleepWake turn off but not turn on:

              start/stop commands

              You mean going to the terminal and write:

              pi@raspberrypi:~/MagicMirror $ sudo service motion start
              pi@raspberrypi:~/MagicMirror $ sudo service motion stop
              

              I have done it. nothing happened

              1 Reply Last reply Reply Quote 0
              • K Offline
                krosamont @sdetweil
                last edited by

                @sdetweil the default setting is:

                # Maximum number of frames to be captured per second.
                # Valid range: 2-100. Default: 100 (almost no limit).
                framerate 2
                

                and I have changed the gap event from 60 to 15:

                # Event Gap is the seconds of no motion detection that triggers the end of an event.
                # An event is defined as a series of motion images taken within a short timeframe.
                # Recommended value is 60 seconds (Default). The value -1 is allowed and disables
                # events causing all Motion to be written to one single movie file and no pre_capture.
                # If set to 0, motion is running in gapless mode. Movies don't have gaps anymore. An
                # event ends right after no more motion is detected and post_capture is over.
                event_gap 15
                

                It sounds good, isn’t it?

                I have also installed the module again :

                pi@raspberrypi:~/MagicMirror/modules/MMM-SleepWake $ npm install
                

                and I have tried to use your module without using MMM-Face-Reco-DNN…
                but still I don’t find the solution

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

                  By the way, I have also noticed that no log are generated in motion.log when I am using the mirror? The log is generated only when I do this command:

                  pi@raspberrypi:~ $ motion
                  

                  Is it normal?

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @krosamont
                    last edited by

                    @krosamont motion is a module outside mm
                    u have to run it all the time

                    i think u will have to do
                    sudo motion &
                    to start it

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    K 2 Replies Last reply Reply Quote 0
                    • K Offline
                      krosamont @sdetweil
                      last edited by

                      Hello @chanster,
                      How do you run your magic mirror project please?
                      @sdetweil I have tried:

                      pi@raspberrypi:~/MagicMirror $ sudo service motion start
                      pi@raspberrypi:~/MagicMirror $ npm start
                      

                      Still nothing. And nothing appears in the log. I think this is the problem…

                      If I do:

                      pi@raspberrypi:~/MagicMirror $ sudo motion &
                      pi@raspberrypi:~/MagicMirror $ npm start
                      

                      Then I get an error and the cam is playing my mirror but there, I have the log!!! :/

                      I think we are close…:face_with_monocle:

                      S C 2 Replies Last reply Reply Quote 0
                      • K Offline
                        krosamont @sdetweil
                        last edited by

                        @sdetweil you mean that it’s normal if I don’t see the motion log when I run the mirror?

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 2 / 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