MMM-SleepWake not working



  • Well I’ve got the the module installed, and it puts the display to sleep but doesn’t wake the mirror up via motion I have the PS3eye! This is how I have my config file for the module, what have I not done?

    {
                            module: 'MMM-SleepWake',
                            delay:  15,      
                            source: 'external',
                            mode:  'PI',
                    },
    

  • Moderator

    The readme is wrong.

    {
    module: 'MMM-SleepWake',
    config:
       {
       delay:  15,      
       source: 'external',
       mode:  'pi'
       }
    },
    


  • @yawns thanks just got to wait till it sleeps now to test it and then find out where I’m going to install it lol



  • thanks. updated the readme



  • @sdetweil @yawns is there a script that I have to run to make this work?



  • @dazza120 u need to install the github motion project, and change its config to execute the sample script i provide. see the readme. my project does not detect the motion itself (some others read the camera data and determine motion), but uses an external (to MagicMirror) source



  • Thanks, Do I just install it like a module? Ie in the magic mirror module location



  • @dazza120 no. Motion is not related to MM. It can do all sorts of things. Record video, take snapshots, and a lot more. Supports just about every camera.

    And has exits which can be used to inform others of motion, video files, …

    So, follow it’s install instructions. Then edit /etc/motion/motion.conf, and update the lines I documented in the readme. This will call the script I provided to inform my module of motion(start and end)

    U also customize the motion app on sensitivity, delay, etc etc. All things I have seen people ask about.



  • When I started working on my mirror project a few years ago, I had all I could do to learn node, angular, JavaScript, a no SQL database, and a ton of other stuff. I was using a pi, but didn’t have a PIR sensor, only a webcam.and the mirror was voice based, so i needed a mic

    I found motion. And since have changed hardware, running on an odroid single board computer to get network and image display speed up.
    Motion works on lots of platforms.



  • @sdetweil hi just to let you know the read me is missing the : by config. i really hope i can get this working as it could sort alot of my screen on problems