Read the statement by Michael Teeuw here.
Total Beginner - MM2 with MacMini
-
@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.
-
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.
-
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) -
@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?
-
@trividar yes, and yes.
I start the motion program as part of the little script to start mm.
Short term just type
sudo motion &