@buckgup It installed into desktop because that’s the folder you were in when you ran the git command. So:
cd /home/pug
git clone https://github.com/MichMich/MagicMirror.git
cd MagicMirror
npm install
@buckgup It installed into desktop because that’s the folder you were in when you ran the git command. So:
cd /home/pug
git clone https://github.com/MichMich/MagicMirror.git
cd MagicMirror
npm install
@shazglass - Hmm. I don’t know. It should be working normally at this point. Let’s try switching to the previous process. We’ll delete the one that the installer created, then add the one to your script.
First, we remove the existing process:
cd ~
pm2 delete MagicMirror
pm2 save
Then we use your mm.sh
script that you had earlier.
pm2 flush
pm2 start mm.sh
pm2 save
At this point, your mirror should come up in about 30 seconds. If it does not, enter pm2 log mm
and copy the results here. Be sure to use the forum markup tools to help format your log messages.
@ooskay - Please post your config.js
file here and we’ll take a look at it. When you do, be sure to use the forum markdown features to help us read your file and be sure to remove any API keys from your file to keep them private. Here is a link explaining the markdown features.
It sounds like something on your Pi is attempting to start the Magic Mirror process twice. If you used a cron job to start MM as well as PM2, then this can happen. Likewise, if your script that PM2 calls to start the process has the command twice, this can happen.
EADDRINUSE usually means that two processes are trying to serve up web pages on the same port. If that happens on reboot, then most likely two commands are trying to start MM.
My recommendation is to remove PM2’s attempts to start MM, reboot and see if the mirror process starts. If so, find out how it’s being called and remove that, then reset pm2 to do it. If MM doesn’t start after the reboot, run your netstat -lptn
again and find out what’s listening on that port.
@dawookie1979 - At a guess, it looks like pm2 is not compatible with the version of node that you have on your pi. I would try upgrading node then re-running the pm2 startup
command.
@mykle1 - Ah. That’s fine. Considering the functionality added, it seems a small price to pay. I just want to be sure I’m aware of the ramifications. If I’m building mirrors for friends, I need to weigh the pros & cons of including Hello Lucy into their builds. If I can maintain access to their mirror, then I can make it work. I just have to remember to redo my modifications to the module code.
But if the owners intend to run the updates… then I should probably hold off on the Hello Lucy module. I barely trust myself with modifying the code, let alone teaching someone else how to do it!
@dazza120 - Remember to mark the topic as solved. I’m glad you got it working.
@axel - Well, if you really want to use the camera, the basic module to use is MMM-Motion-Detection. This will turn the MagicMirror display off & on when it detects movement in front of the camera.
I’m pretty sure there is a selfie module around here that will let you take pictures of yourself. If you really want to get advanced, there’s a facial recognition app that has been used with varying degrees of success.
FWIW, the professionals at TwoWayMirrors.com sell two way glass specifically for smart mirrors at 30% transparent. I have three of their mirrors and I’m quite pleased with them.
Why aren’t you just hitting the mirror with a web browser? The browser will render the mirror more-or-less exactly as it will be displayed. You won’t be able to use any module with a peripheral, such as a microphone or IP camera. But for layout, fonts and the like it will speed things up immeasurably.
Add your computer to the ipWhiteList and restart the mirror process. Point your browser at http://[mirror ip address]:8080