motiondetector icon indicating copy to clipboard operation
motiondetector copied to clipboard

Getting the module running

Open phoenixrising00 opened this issue 8 years ago • 9 comments

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,

phoenixrising00 avatar Jan 09 '17 03:01 phoenixrising00

Same problem pls anwser :(

titouan73 avatar Feb 18 '17 18:02 titouan73

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.

phoenixrising00 avatar Feb 19 '17 04:02 phoenixrising00

Please can u juste send me command ?

titouan73 avatar Feb 19 '17 19:02 titouan73

sudo modprobe bcm2835-vl2

phoenixrising00 avatar Feb 19 '17 20:02 phoenixrising00

you will need to write script to sun this line at start up or run it manually if you reboot PI

phoenixrising00 avatar Feb 19 '17 20:02 phoenixrising00

But to install the module what i have to do ? Why there is not just a README file ???

titouan73 avatar Feb 20 '17 08:02 titouan73

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.

phoenixrising00 avatar Feb 20 '17 11:02 phoenixrising00

À Big thanks for all

titouan73 avatar Feb 21 '17 09:02 titouan73

it work with the raspi-cam ??

titouan73 avatar Feb 27 '17 06:02 titouan73