Read the statement by Michael Teeuw here.
Motion Detector
-
@jdahli1
I don’t know this error, therefore the following two comments might be totally wrong:The motion detector uses
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 7
to switch the monitor on. What happens if you execute this command manually while the observed problem occurs (I assume you can still login to the PI?). Then you might know weather it is a problem of the motion detection (and MMM) or if it is a more general problem. Maybe you even get additional error messages that help you to identify the problem
- Do you know the HDMI-settings in /boot/config.txt ?
Maybe it is worth to play around withhdmi_force_hotplug
,hdmi_drive
,hdmi_group
andhdmi_mode
. See the file and here https://raspberrypi.stackexchange.com/tags/config.txt/info for more information. Maybe the “AR” in your error stands for “aspect ratio”, this could be set explicitly be these parameters.
If somebody got this module to work on a Raspberry Pi Zero (using the Midori browser) I would be highly interested in how it was done!
- Do you know the HDMI-settings in /boot/config.txt ?
-
@Hawking Thank you for the reply. Running that command does not appear to do anything. I let it sit for a minute and the command never completes, nor does the screen come on. It will sit until I ctrl + c. I will start to mess with the hdmi settings and see if that makes any difference.
-
@jdahli1
Can you just execute/opt/vc/bin/tvservice --preferred
to see if it is tvservice or chvt that does not respond?Here https://news.screenly.io/how-to-automatically-turn-off-and-on-your-monitor-from-your-raspberry-pi-5f259f40cae5 also problems with turning the screen back on using tvservice are mentioned. Maybe the other methods mentioned in the article are worth a try. If they work you can simply change the commands used in
~/MagicMirror/modules/motiondetector/node_helper.js
-
@Hawking So running that command has the same result - nothing happens until I ctrl + c. I have been messing with the hdmi_* commands, but no luck so far.
-
Can I use the Pi-Camera for Motion Detection and Face-Recognition at the same time or have I to use seperate cameras for each module?
-
@reaper81 said in Motion Detector:
Can I use the Pi-Camera for Motion Detection and Face-Recognition at the same time or have I to use seperate cameras for each module?
This uses a pir-sensor
-
@reaper81 You can use the same camera for both, but you’ll want to use a different module for motion detection. If you check out my posts, I put up a tutorial on using the PiCam for motion detection outside of the MirrorMirror framework. There’s no reason you can’t use my tutorial to get motion detection to turn your mirror display on and then the facial recognition module to switch the layout.
At least… no reason that I know of.
-
@jdahli1 Anyone have any thoughts as to what else to try? I have had no luck so far. Mirror continues to not turn back on randomly. Nothing I have changed so far seems to have worked. Any thoughts are appreciated.
-
Hello all,
I m totally new to Raspberry Pi and it’s an absolute miracle that I succeed to make it works and to add some modules .
So I feel sorry to ask and I beg your pardon if my request hurts some of you but can someone could explain me how to install this module ?
So far I’ve only installed the ones in the MichMich page (https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules)
Sorry again to ask but I’m so affraid to “break” my magic mirror which works fine now !
if I disturb let me know I will delete my post.Thanks for your help
Nat
-
cd ~/MagicMirror/modules git clone https://github.com/alexyak/motiondetector
In your config.js
{ module: "motiondetector" },
I think it would work, maybe…