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.

    Total Beginner - MM2 with MacMini

    Scheduled Pinned Locked Moved General Discussion
    22 Posts 6 Posters 15.6k Views 6 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

      @sdetweil thanks! I will try it later this week!

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

        @sdetweil So I have tried to get your module to work, but unfortunately without success. Could you please help me?
        So what I have done:

        1. Cloned motion-project into my folder Mirror (there are now two folder, MagicMirror and motion)

        2. Created motion.conf and made those changes:

        # 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 ‎⁨/Users/..../Mirror/MagicMirror/modules/MMM-SleepWake/external_motion start
        
        # 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 /Users/..../Mirror/MagicMirror/modules/MMM-SleepWake/external_motion end
        
        1. Configured my ~/MagicMirror/config/config.js file:
        	{
            module: 'MMM-SleepWake',
            delay:  1,               // default (one minute just for testing)
            source: 'external'
            
        },
        
        1. Started my MM without error, but SleepWake don’t do anything my MM just shows everything without going to sleep!

        So did I miss something? (My hardware: Mac Mini (late 2012) Monitor over HDMI connected.
        Thank you!

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

          @trividar I need to know how to turn off display,
          So we need mode:

          See the readme

          I have only three modes at the moment, hide ( hide all modules, don’t turn off display), dpms (use the dpms commands), and pi( which uses the pi only tvservice command)

          I would try mode: ‘hide’ first.

          I don’t know how to turn off/andon the Mac display.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            researching, i found supposedly

            pmset displaysleepnow
            

            should work

            it does not on my mac virtual machine…

            does it work on real mac?

            man pmset 
            

            should show the help for this

            displaysleepnow - causes display to go to sleep immediately.
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil

              using MMM-SleepWake with mode: ‘Hide’ works (any case is allowed)

              executing the external script wakes up

              /Users/.../MagicMirror/modules/MMM-SleepWake/external_motion start
              

              that is like what u have configured.

              you should see the camera motion events in /var/log/motion/motion.log
              (motion has to be running of course)

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil So do I understand it right, I have to add mode in the config.js file like this:

                	{
                    module: 'MMM-SleepWake',
                    delay:  1,               // default
                    source: 'external',
                    mode: ‘Hide’
                
                
                },
                
                

                and I have to start motion separately from MM is that right, if yes how?

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

                  @trividar yes, and yes.

                  I start the motion program as part of the little script to start mm.

                  Short term just type

                  sudo motion &
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  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