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 5.8k 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.
    • C Offline
      chanster @krosamont
      last edited by chanster

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

      Hello @chanster,
      How do you run your magic mirror project please?

      I have a script that starts Motion whenever my Rpi restarts :

      #!/bin/bash
      cd /home/pi/.motion/
      sudo motion &
      

      You need to make sure that you are running Motion in the directory where it installed ie “.motion”. If you start motion outside of this directory, it’ll use a generic motion config not your config in the “.motion” directory.

      If Motion is detecting motion properly, you see lines like these in your motion log :

      motion_detected: Motion detected - starting event 1
      mlp_actions: End of event 1
      event_newfile: File of type 8 saved to: /home/pi/Pictures/motion/02-20210109005258.mkv
      

      The directory where these files are being saved to is what you define in your motion config. Look in that folder to make sure you have files showing up there. If you don’t see any files being saved in that directory, it means Motion is not using your motion config but the generic motion config. Refer to my bolded comments above.

      Hopefully this helps.

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

        @chanster pm2 could start motion on boot too

        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 @chanster
          last edited by

          @chanster @sdetweil Thanks for your help guys.
          I understood my problem. I was trying to use facial recognition and motion detection at the same time with 2 different services. I can’t work with MMM-SleepWake and MMM-Face-Reco-DNN at the same time.

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

            @krosamont i wanted to try that, never got there

            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 Thanks sincerely for your time and your willingness. I would like to start to fork and try implement modification on some modules but I am not confident enough in Javascript. Do you have any suggestion for me. Where to start? Should I go with nodeJS basic tutorials?

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

                @krosamont thats as good as any place. see my sample module

                https://github.com/sdetweil/SampleModule

                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 Thank you for sharing :)

                  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