motiondetector
motiondetector copied to clipboard
Getting the module running
I apologize if this is a very noob question, but I am having some trouble getting the module to run. I clone the motion detector files to my module folder. However I am not 100% sure I got my config file written correctly.
Would anyone mind showing me how the config file is written?
Thank you,
Same problem pls anwser :(
Check out the motion detection forums on magic mirror2. The issue is you to need to load the camera driver. I dont remeber the exact script but its on the forums. You sudo in the command prompt the driver. Should work after that. Run magic mirror in debug mode and you should see the camera looking for motion in the log.
Please can u juste send me command ?
sudo modprobe bcm2835-vl2
you will need to write script to sun this line at start up or run it manually if you reboot PI
But to install the module what i have to do ? Why there is not just a README file ???
Titouan, you should read the magic mirror 3rd party module section, its all pretty well explained their. Trust me, Im no computer wiz and I got it figured out. Any 3rd party module will be in its own folder inside the MM module folder. Dont forget to add the new module to the config file. Its explained below. If you have any more trouble I suggest you add your question to the MM2 forum. Im not sure this is the write place to get all your questions answered. Good Luck
https://github.com/MichMich/MagicMirror/wiki/MagicMirror%C2%B2-Modules
Installing:
To install 3rd party or your own custom modules just follow these steps:
Navigate to the modules folder via the follow command: cd ~/MagicMirror/modules. Clone the module from github: git clone https://github.com/author/module-name (remembering to replace the URL with that of the module on github). Follow any additional instruction on from the modules readme. Add your brand new module to your config! This is the file config/config.js that you duplicated earlier. Edit this in your favourite editor and add:
{ module: 'module name', position: 'position', header: 'optional header', config: { extra option: 'value' } }, to the list of modules. You can look at the default modules for examples and further details can be found on the main readme.
À Big thanks for all
it work with the raspi-cam ??