A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Auto start MM

    1
    0 Votes
    1 Posts
    1k Views
    J
    I am following the instructions outlined here: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror When I paste in the suggested code provided by PM2 an error is returned. I am a total Noob and not sure how to proceed. Here is the error: pi@mm1:~/MagicMirror $ sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi [PM2] Init System found: systemd Platform systemd Template [Unit] Description=PM2 process manager Documentation=https://pm2.keymetrics.io/ After=network.target [Service] Type=forking User=pi LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity Environment=PATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin Environment=PM2_HOME=/home/pi/.pm2 PIDFile=/home/pi/.pm2/pm2.pid ExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect ExecReload=/usr/lib/node_modules/pm2/bin/pm2 reload all ExecStop=/usr/lib/node_modules/pm2/bin/pm2 kill [Install] WantedBy=multi-user.target Target path /etc/systemd/system/pm2-pi.service Command list [ 'systemctl enable pm2-pi', 'systemctl start pm2-pi', 'systemctl daemon-reload', 'systemctl status pm2-pi' ] [PM2] Writing init configuration in /etc/systemd/system/pm2-pi.service [PM2] Making script booting at startup... >>> Executing systemctl enable pm2-pi [DONE] >>> Executing systemctl start pm2-pi Job for pm2-pi.service failed because the control process exited with error code. See "systemctl status pm2-pi.service" and "journalctl -xe" for details. [ERROR] Exit code : 1 [PM2][ERROR] systemctl start pm2-pi failed, see error above. Thanks in advance for any and all assistance. Johnny
  • Magic Mirror Does Not Close

    9
    0 Votes
    9 Posts
    3k Views
    O
    Sory guys it’s been a long time. İ deleted pm2 but it is something different mm starts back up whenever I close it.
  • Finishing touches

    2
    0 Votes
    2 Posts
    1k Views
    KimzerK
    Also added MMM-Skyss, but how do i reduce the width of the table?
  • Changing physical sizes of different modules. Everything's too big!

    4
    0 Votes
    4 Posts
    4k Views
    C
    @Diareactic no problem! play with the zoom til you get the right number you like. Been doing this for over a year and there are still things I bash my head in trying to figure out but sometimes you just know someone has a quick answer! LOL
  • PLEASE HELP. Error: read ECONNRESET at TLSWrap.onread (net.js:602:25)

    1
    0 Votes
    1 Posts
    2k Views
    T
    tried to run the bash command and the installation got stucked to this message can you guys help me step by step? I HAVE NO IDEEA ABOUT PROGRAMMING AND A STEP BY STEP TUTORIAL WILL SAVE MY LIFE. THANK YOU VERY MUCH **Cloning into 'MagicMirror'... remote: Counting objects: 277, done. remote: Compressing objects: 100% (246/246), done. remote: Total 277 (delta 37), reused 121 (delta 21), pack-reused 0 Receiving objects: 100% (277/277), 421.09 KiB | 554.00 KiB/s, done. Resolving deltas: 100% (37/37), done. Cloning MagicMirror Done! Installing dependencies ... > uws@0.14.5 install /home/pi/MagicMirror/node_modules/uws > node-gyp rebuild > build_log.txt 2>&1 || exit 0 > electron-chromedriver@1.7.1 install /home/pi/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver > node ./download-chromedriver.js > electron@1.7.13 postinstall /home/pi/MagicMirror/node_modules/electron > node install.js /home/pi/MagicMirror/node_modules/electron/install.js:48 throw err ^ Error: read ECONNRESET at TLSWrap.onread (net.js:602:25) npm WARN grunt-stylelint@0.10.0 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! electron@1.7.13 postinstall: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron@1.7.13 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-04-15T23_48_40_173Z-debug.log Unable to install dependencies! pi@raspberrypi:~ $**
  • Problem updating to v2.3.1

    17
    0 Votes
    17 Posts
    10k Views
    C
    @Bob said in Problem updating to v2.3.1: Not sure what I’ve done but when I run a git pull I now have a message that says I need to run “git commit -a” to fix the issues. What would happen if I did that ? Would it overwrite the main branch, or just create my own version of that branch ? I don’t have a git account, so would that cause issues as well ? I ran the “git commit -a”, exited that screen, then ran sudo git pull & npm install and it worked for me then…Had the same issues above before that
  • Notifications and commands help please.

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    P
    So I did some quick googling over coffee this morning. I think there is a two part suggestion for you. Please note, this will require research and testing which I have not done, this is just directional. Install MMM-RemoteControl - https://github.com/Jopyth/MMM-Remote-Control Add some custom code to the MMM-Remote-Control module to handle requests for turning on/off the motion device. In MMM-Remote-Control’s node_helper.js module, you can find the “MONITORON” code: if (query.action === "MONITORON") { exec("tvservice --preferred && sudo chvt 6 && sudo chvt 7", opts, function(error, stdout, stderr){ self.checkForExecError(error, stdout, stderr, res); }); return true; } Notes: query.action defines a trigger word for the MMM-RemoteControl to listen for. exec() - executes a command on the OS The rest is for error checking that the external command executed. In your case, we could define the following: if (query.action === "MOTIONON") { exec("echo "motion_enable on" > ~/pikrellcam/www/FIFO", opts, function(error, stdout, stderr){ self.checkForExecError(error, stdout, stderr, res); }); return true; } if (query.action === "MOTIONOFF") { exec("echo "motion_enable off" > ~/pikrellcam/www/FIFO", opts, function(error, stdout, stderr){ self.checkForExecError(error, stdout, stderr, res); }); return true; }
  • Weird MMM-Wunderground numbers

    1
    1
    0 Votes
    1 Posts
    751 Views
    D
    Hi Updated MM … even did a Git pull, but these weird numbers still show? Is this needing me to perhaps allocate another location near me ( if present one is having issues) or something else I need to investigate? Been working perfect for over a year. [image: 1523723688999-img-20180414-wa0005.jpg]
  • MagicMirror keeps crashing

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    P
    Same here for the screen issues. I hate even offering this solution but…add a restart of the app to cron for every morning at 2am seems to mitigate the crashing issue. It’s not a fix, it’s a bandaid. Using pm2 the crontab entry would look like: 0 2 * * * pm2 restart mm >/dev/null 2>&1
  • MMM-GoogleAssistant keeps saying "Update Available"

    Solved
    7
    1
    0 Votes
    7 Posts
    4k Views
    J
    @slametps start.wav plays the sound when assistant is activated and listening for request.
  • broken css in forum

    5
    2
    0 Votes
    5 Posts
    2k Views
    schlachtkreuzer6S
    @yawns sure. Uncaught TypeError: Cannot set property ‘serializer’ of undefined at undefined.module.module.exports (serializer.js:159) at serializer.js:159
  • MMM-Networkscanner: 1 Divice and 2 macAddresses How

    1
    0 Votes
    1 Posts
    681 Views
    M
    Hi Guys, I have a Problem. My Telefon is one day in 2,4 GHz WLAN and next Day in 5Ghz WLAN. My Telefon has a other MacAddress. Is possible 2 MacAddresses for 1 Device? { macAddress: “mac.address.all.lower.case"or"macAddress.from.5Ghz.WLAN”, name: “DonnaiPhone”, icon: “mobile”}, thanks
  • Any MMM-Hive Users that can help, please?

    34
    0 Votes
    34 Posts
    20k Views
    D
    @mongo116 Ahhhh… thanks. I thought these referred to the inside temp? I will have another look at the config and see, but off hand I recall only 1 set? Those I thought were for inside… but will look more closely 2mor and play about. So yeah, very happy to have it actually working now, and that the link I gave you helped finding that BG changed things… and other MMM-Hive users on here will also appreciate the work you done to fix it. Thanks again…
  • Magic Mirror 2 - Please create a config file error

    8
    0 Votes
    8 Posts
    8k Views
    Mykle1M
    @Rpickp said in Magic Mirror 2 - Please create a config file error: It worked! Thank you so much! Excellent! :-)
  • MMM-netatmo integration

    2
    1
    0 Votes
    2 Posts
    2k Views
    CFennerC
    @blebbens, please make sure that the “:” are not part of parameters! I just added a description how to do this with curl, this is a bit easier.
  • Current Weather module not working

    8
    0 Votes
    8 Posts
    6k Views
    S
    Odd… mine hasn’t… Is there a way to manually restart the module? Edit: Seems to be related to that metric to imperial thread. If I switch to metric, it loads fine, but imperial breaks It. What was the solution to that?
  • Black Screen issue using Autoinstaller

    2
    0 Votes
    2 Posts
    1k Views
    S
    I followed the update procedure for 2.3.1 including elctron beta and it’s now working with the default modules!
  • Calendar - dates but no times....

    1
    0 Votes
    1 Posts
    747 Views
    CrckrsC
    Hi All, Super new to this - so apologies upfront if this is a ‘stupid’ question! Have the default calendar setup, linked to a Google calendar, set to absolute date. For whatever reason I cannot get it to display event times, it only shows the dates. Am I missing something obvious here?! Thanks in advance - any suggestions welcome!
  • Touch inverted, can't get it right!! HELP

    Locked
    2
    0 Votes
    2 Posts
    979 Views
    yawnsY
    Please stop posting the same question multiple times. This is closed, please continue here: https://forum.magicmirror.builders/post/37832
  • No helper found for module:

    7
    0 Votes
    7 Posts
    9k Views
    Mykle1M
    @raymonvdm If you reinstall, I believe there is an option for autostarting where you simple have to choose yes. Otherwise, if you are setting up autostart manually, Pay particular attention to this line: PM2 will now show you a command you need to execute. Most people miss this step. You have to execute the command that appears. And lastly, you have to save the PM2 state