Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the module running #6

Open
phoenixrising00 opened this issue Jan 9, 2017 · 9 comments
Open

Getting the module running #6

phoenixrising00 opened this issue Jan 9, 2017 · 9 comments

Comments

@phoenixrising00
Copy link

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,

@titouan73
Copy link

Same problem pls anwser :(

@phoenixrising00
Copy link
Author

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.

@titouan73
Copy link

Please can u juste send me command ?

@phoenixrising00
Copy link
Author

sudo modprobe bcm2835-vl2

@phoenixrising00
Copy link
Author

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

@titouan73
Copy link

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

@phoenixrising00
Copy link
Author

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.

@titouan73
Copy link

À Big thanks for all

@titouan73
Copy link

it work with the raspi-cam ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants