Read the statement by Michael Teeuw here.
Total Beginner - MM2 with MacMini
-
@MichiMich @all others ;0)… I want to use my Mac Mini also for my MM. Is there a way to implement motion detection with a cam and disable HDMI or monitor if no motion is capturing? I have this on my raspberry with motion and it works perfectly… this is for my one of the most important things for me!
-
Hi, do you have pm2 installed on your Mac?
Is pm2 working?
Did you installed pm2 in MagicMirror directory? -
@trividar there is a module that uses camera,
https://github.com/dmcinnes/MMM-Motion-Detection
I also have one, that allows configurable ways to sleep… pi, hdmi off, or blanking screen
https://github.com/sdetweil/MMM-SleepWake
mine depends on the github motion project for camera interface
https://motion-project.github.io/
I have not tried mine on mac. but motion project is supported on mac.
-
@trividaryou can do this with the harmony hub (Logitech) and a motion sensor…all that works with Alexa… Turn tv on or off with motion sensor…or voice
-
Must pm2 be installt in Magic Mirror directory?
-
install pm2 on Mac is my biggest problem 😭
-
@sdetweil Thank you for your reply and sorry for my late reply. I’m not able to get it to work with my Mac mini ;o) I have a USB Camera and a mac mini 2012. Would it be possible for you to write a step by step instruction? Many thanks in advance!!
-
@Stoffbeuteluwe good point! But I will use a camera behind the mirror to have a clean build.
-
@trividar the motion project installs a new program that runs in the background, and uses the camera.
it can record video, take pictures, and notify of those kinds of events. in general, it has nothing to do with MagicMirror.
but I had used it for another mirror runtime, and wanted the same capability here…
in the motion.conf, you set the notifier for motion start and stop to execute the script i provide in the MMM-SleepWake module.
on my odroid system that looks like this
(on pi it would be /home/pi/, on mac it would be /Users/??? where ??? is the user where MagicMirror is installed)# 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/odroid/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 /home/odroid/MagicMirror/modules/MMM-SleepWake/external_motion end
i just tested the motion detection script on mac and it needed work, thanks!
I have updated the repo on github…
just do agit pull
from the MMM-SleepWake folder, to get the update
-
@sdetweil thanks! I will try it later this week!