MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. AnduriI
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 14
    • Posts 58
    • Groups 0

    Posts

    Recent Best Controversial
    • which way to best implement motion sensing and facial recognition?

      Hey there,

      this forum has been a huge help for me the plan and build my magic mirror. It will have indirect lighting included and needs a way to switch that on.
      I planned to do this controlled by motion. I found the various modules here, but don’t know which is best to use. I also plan to use @paviro’s MMM-Facial-Recognition and read that some are not compatible and block the cam. Is there any motion detection module that uses camera and is compatible with the facial module?
      If not I might use a PIR, but that’s only the worst case (I don’t like the hole in the front, maybe I mount it below the frame and adjust sensitivity to trigger with moving feet…).

      posted in Requests
      A
      AnduriI
    • RE: Show notification on the MagicMirror

      @strawberry-3.141 well didn’t knew that… how do I get the dev console in electron? For installation I have the RPI sitting on my desktop and access it from my normal pc. But I think I can also run it on the rpi using vnc.

      @Mykle1 the mirror itself is working fine. It’s only the alarm module making all black on alert. I have not changed anything else, it is a fresh installation of jessie.

      posted in Troubleshooting
      A
      AnduriI
    • RE: Show notification on the MagicMirror

      @mykle1 there is no sound ringing or similar. I think the alert module is enabled by default or is that wrong? As stated by strawberry in #2 it should be working the way it is now.
      @strawberry-3.141 I run the module with the mirror started as npm start dev but don’t see any. Here is my log:

      pi@Spieglein:~/MagicMirror $ npm start dev
      
      > magicmirror@2.1.3 start /home/pi/MagicMirror
      > sh run-start.sh "dev"
      
      Starting MagicMirror: v2.1.3
      Loading config ...
      Loading module helpers ...
      No helper found for module: alert.
      Initializing new module helper ...
      Module helper loaded: updatenotification
      No helper found for module: MMM-AlarmClock.
      No helper found for module: clock.
      Initializing new module helper ...
      Module helper loaded: calendar
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper ...
      Module helper loaded: newsfeed
      All module helpers loaded.
      Starting server on port 8080 ...
      You're using a full whitelist configuration to allow for all IPs
      Server started ...
      Connecting socket for: updatenotification
      Connecting socket for: calendar
      Starting node helper for: calendar
      Connecting socket for: newsfeed
      Starting module: newsfeed
      Sockets connected & modules started ...
      Launching application.
      Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/[XXX]/basic.ics - Interval: 300000
      Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/[XXX]/basic.ics - Interval: 300000
      Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      Use existing news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml
      {here it went black, but no notification}
      

      @all sorry for taking the wrong config options for the module, didn’t read them carefully. Again here my config, just in case there is something wrong with other modules influencing this:

              modules: [
                      {
                              module: "alert",
                      },
                      {
                              module: "updatenotification",
                              position: "top_bar"
                      },
                      {
                              module: "MMM-AlarmClock",
                              position: "top_right",
                              config: {
                                      alarms: [
                                              {time: "21:14", days: [0,1,2,3,4,5,6], title: "Test", message: "Es geht!!!"},
                                      ],
                              }
                      },
                      {
                              module: "clock",
                              position: "top_left"
                      },
                      {
                              module: "calendar",
                              header: "Termine",
                              position: "top_left",
                              config: {
                                      calendars: [
                                              {
                                                      symbol: "calendar-check-o ",
                                                      url: "https://calendar.google.com/calendar/ical/[XXX]$
                                              },
                                              {
                                                      symbol: "calendar-check-o ",
                                                      url: "https://calendar.google.com/calendar/ical/[XXX]$
                                              }
                                      ]
                              }
                      },
      some more modules, but all standard without any changes
      
      posted in Troubleshooting
      A
      AnduriI
    • RE: Show notification on the MagicMirror

      @strawberry-3.141 are you the dev of this module? I tried this and seems to work… until the alarm time comes. Then my website goes black and does not do anything. How does the alarm show?
      After reloading the page it’s back and working with the alarm passed by.

      just in case it is needed, my config:

                      {
                              module: "MMM-AlarmClock",
                              position: "top_right",
                              config: {
                                      alarms: [
                                              {time: "20:18", days: [1,2,3,4,5,6,7], title: "Test", message: "Es geht!!!"},
                                      ],
                              }
                      },
      
      posted in Troubleshooting
      A
      AnduriI
    • RE: MagicMirror not working anymore

      well I’m not shure what happened, but I think I called npm install python-shell instead of just using npm installinside the module folder (which would have installed python-shell correctly.
      I just started from scratch and took a fresh jessie image.

      posted in Troubleshooting
      A
      AnduriI
    • RE: MagicMirror not working anymore

      well I did move the old folder and did a fresh install with the installer script, but it still gives the same errors. Maybe I did something wrong during installation of the dependencies of MMM-Motion-Detection. Any clue of what that might be or where I can find a log that might shine some light on?

      posted in Troubleshooting
      A
      AnduriI
    • RE: MagicMirror not working anymore

      @mykle1 so simply rm -r MagicMirror? Or do I have to clean anything else before reinstall?
      @strawberry the file itself looks quite normal and I don’t know what to look for. No entry for /js/app.js as far as I see. Maybe you can give me a hint?

      posted in Troubleshooting
      A
      AnduriI
    • MagicMirror not working anymore

      Hey there,

      I tried to get the MMM-Motion-Detection working but did not succeed so far. But now my MagicMirror is not starting anymore. Maybe I did some additional changes, I’m not shure if there was anything important during tests. I got these logs from pm2 monit:

      MagicMirror >     at Module._compile (module.js:570:32)                                         x
      MagicMirror >     at Object.Module._extensions..js (module.js:579:10)                           x
      MagicMirror >     at Module.load (module.js:487:32)                                             x
      MagicMirror >     at tryModuleLoad (module.js:446:12)                                           x
      MagicMirror >     at Function.Module._load (module.js:438:3)                                    x
      MagicMirror >     at Module.require (module.js:497:17)                                          x
      PM2 > App [MagicMirror] with id [0] and pid [4704], exited with code [1] via signal [SIGINT]    x
      PM2 > Starting execution sequence in -fork mode- for app name:MagicMirror id:0                  x
      PM2 > App name:MagicMirror id:0 online                                                          x
      MagicMirror > Error: ENOENT: no such file or directory, open 'package.json'                     x
      MagicMirror >     at Error (native)                                                             x
      MagicMirror >     at Object.fs.openSync (fs.js:642:18)                                          x
      MagicMirror >     at Object.fs.readFileSync (fs.js:510:33)                                      x
      MagicMirror >     at Object. (/home/pi/MagicMirror/js/app.js:15:32)                  x
      MagicMirror >     at Module._compile (module.js:570:32)                                         x
      MagicMirror >     at Object.Module._extensions..js (module.js:579:10)                           x
      MagicMirror >     at Module.load (module.js:487:32)                                             x
      MagicMirror >     at tryModuleLoad (module.js:446:12)                                           x
      MagicMirror >     at Function.Module._load (module.js:438:3)                                    x
      MagicMirror >     at Module.require (module.js:497:17)    
      

      Can anyone help me with that error? For me it looks like a problem in the core /js/app.js, but I#m a noob on these things…

      Regards,
      Anduril

      posted in Troubleshooting
      A
      AnduriI
    • Show notification on the MagicMirror

      Hey there,

      is there a way to directly show notification emited by other modules on the ui? I tried the alert module, but it does not show anything. Is this config correct:

                      {
                              module: "alert",
                              position: "top_center",
                      },
      

      I only see the text “alert” and “module_0_alert” on that position. If this is correct maybe there is no notification and the module I want to test (MMM-Motion-Detection) does not work as intended…

      Regards,
      Anduril

      posted in Troubleshooting
      A
      AnduriI
    • set GPIO high or low

      Hey guys (and girls),

      is there a module that can set GPIOs high or low? I need that to controll some mosfets for LEDs. If not directly possible, maybe I can use a module to call a script that does this (and maybe even with software pwm, but thats more a thing of scripting…).

      posted in Requests
      A
      AnduriI
    • RE: MM not starting after install

      adding an address: "0.0.0.0",did it, I can see the black page of MM in my browser… thanks a lot for your help. Now I’m even more waiting for my mirror and screen to arrive…

      posted in Troubleshooting
      A
      AnduriI
    • RE: MM not starting after install

      @bhepler well me using raspbian lite is just a habit and was not to decrease load. I have 3+ RPis all running headless with raspbian lite.
      But doing a re-install was a good idea. Have a full jessie installed now and setup of MM went fine the manuall way. Also it seems to be starting, but I can’t reach it from my pc. Monitor for MM has not yet arrived.

      pi@Spieglein:~/MagicMirror $  DISPLAY=:0 nohup npm start &
      [1] 3579
      pi@Spieglein:~/MagicMirror $ nohup: ignoriere Eingabe und hänge Ausgabe an „nohup.out“ an
      

      nohup.out:

      
      > magicmirror@2.1.3 start /home/pi/MagicMirror
      > sh run-start.sh
      
      Starting MagicMirror: v2.1.3
      Loading config ...
      Loading module helpers ...
      No helper found for module: alert.
      Initializing new module helper ...
      Module helper loaded: updatenotification
      No helper found for module: clock.
      Initializing new module helper ...
      Module helper loaded: calendar
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper ...
      Module helper loaded: newsfeed
      All module helpers loaded.
      Starting server on port 8080 ...
      You're using a full whitelist configuration to allow for all IPs
      Server started ...
      Connecting socket for: updatenotification
      Connecting socket for: calendar
      Starting node helper for: calendar
      Connecting socket for: newsfeed
      Starting module: newsfeed
      Sockets connected & modules started ...
      Launching application.
      Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300$
      Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      

      config.js:

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = {
              address: "localhost", // Address to listen on, can be:
                                    // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                                    // - another specific IPv4/6 to listen on a specific interface
                                    // - "", "0.0.0.0", "::" to listen on any interface
                                    // Default, when address config is left out, is "localhost"
              port: 8080,
              ipWhitelist: [], // Set [] to allow all IP addresses
                                                                     // or add a specific IPv4 of 192.168.1.5 :
                                                                     // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::f$
                                                                     // or IPv4 range of 192.168.3.0 --> 192.168.3.15$
                                                                     // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::f$
      
              language: "de",
              timeFormat: 24,
              units: "metric",
      
              modules: [
      [didn't changed anything below here yet]
      

      But there is no page available at Spieglein:8080 or [IP]:8080. Did I miss a point in the config?

      posted in Troubleshooting
      A
      AnduriI
    • RE: MM not starting after install

      yeah I know what you mean… I will try a re-install with full jessie and manual install. I will report back after that… thanks a lot.

      posted in Troubleshooting
      A
      AnduriI
    • RE: MM not starting after install

      well it looks like this was the last one missing, but still it does not work.
      npm-debug.log:

      0 info it worked if it ends with ok
      1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
      2 info using npm@3.10.10
      3 info using node@v6.11.5
      4 verbose run-script [ 'prestart', 'start', 'poststart' ]
      5 info lifecycle magicmirror@2.1.3~prestart: magicmirror@2.1.3
      6 silly lifecycle magicmirror@2.1.3~prestart: no script for prestart, continuing
      7 info lifecycle magicmirror@2.1.3~start: magicmirror@2.1.3
      8 verbose lifecycle magicmirror@2.1.3~start: unsafe-perm in lifecycle true
      9 verbose lifecycle magicmirror@2.1.3~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/l$
      10 verbose lifecycle magicmirror@2.1.3~start: CWD: /home/pi/MagicMirror
      11 silly lifecycle magicmirror@2.1.3~start: Args: [ '-c', 'sh run-start.sh' ]
      12 silly lifecycle magicmirror@2.1.3~start: Returned: code: 1  signal: null
      13 info lifecycle magicmirror@2.1.3~start: Failed to exec start script
      14 verbose stack Error: magicmirror@2.1.3 start: `sh run-start.sh`
      14 verbose stack Exit status 1
      14 verbose stack     at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
      14 verbose stack     at emitTwo (events.js:106:13)
      14 verbose stack     at EventEmitter.emit (events.js:191:7)
      14 verbose stack     at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
      14 verbose stack     at emitTwo (events.js:106:13)
      14 verbose stack     at ChildProcess.emit (events.js:191:7)
      14 verbose stack     at maybeClose (internal/child_process.js:920:16)
      14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
      15 verbose pkgid magicmirror@2.1.3
      16 verbose cwd /home/pi/MagicMirror
      17 error Linux 4.9.35-v7+
      18 error argv "/usr/bin/node" "/usr/bin/npm" "start"
      19 error node v6.11.5
      20 error npm  v3.10.10
      21 error code ELIFECYCLE
      22 error magicmirror@2.1.3 start: `sh run-start.sh`
      22 error Exit status 1
      23 error Failed at the magicmirror@2.1.3 start script 'sh run-start.sh'.
      23 error Make sure you have the latest version of node.js and npm installed.
      23 error If you do, this is most likely a problem with the magicmirror package,
      23 error not with npm itself.
      23 error Tell the author that this fails on your system:
      23 error     sh run-start.sh
      23 error You can get information on how to open an issue for this project with:
      23 error     npm bugs magicmirror
      23 error Or if that isn't available, you can get their info via:
      23 error     npm owner ls magicmirror
      23 error There is likely additional logging output above.
      24 verbose exit [ 1, true ]
      

      I don’t see any message saying why it failed…

      posted in Troubleshooting
      A
      AnduriI
    • RE: MM not starting after install

      well that didn’t worked…
      I installed libgtk manually, now a new error: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
      Again, installed that manually and found libnss3.soto be missing… let’s follow this route and see where it leads me…

      posted in Troubleshooting
      A
      AnduriI
    • MM not starting after install

      Hey there,

      I have a freshly installed RPi3 with jessie-lite, with sudo apt-get update && sudo apt-get upgrade done. I installed MM with bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)" (without any errors) and tried to start with DISPLAY=:0 nohup npm start &
      The error in ~/MagicMirror/nohup.out shows the following:

      > magicmirror@2.1.3 start /home/pi/MagicMirror
      > sh run-start.sh
      
      /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
      
      npm ERR! Linux 4.9.35-v7+
      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
      npm ERR! node v6.11.5
      npm ERR! npm  v3.10.10
      npm ERR! file sh
      npm ERR! code ELIFECYCLE
      npm ERR! errno ENOENT
      npm ERR! syscall spawn
      npm ERR! magicmirror@2.1.3 start: `sh run-start.sh`
      npm ERR! spawn ENOENT
      npm ERR!
      npm ERR! Failed at the magicmirror@2.1.3 start script 'sh run-start.sh'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the magicmirror package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     sh run-start.sh
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs magicmirror
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls magicmirror
      npm ERR! There is likely additional logging output above.
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/pi/MagicMirror/npm-debug.log
      

      npm-debug.log:

      0 info it worked if it ends with ok
      1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
      2 info using npm@3.10.10
      3 info using node@v6.11.5
      4 verbose run-script [ 'prestart', 'start', 'poststart' ]
      5 info lifecycle magicmirror@2.1.3~prestart: magicmirror@2.1.3
      6 silly lifecycle magicmirror@2.1.3~prestart: no script for prestart, continuing
      7 info lifecycle magicmirror@2.1.3~start: magicmirror@2.1.3
      8 verbose lifecycle magicmirror@2.1.3~start: unsafe-perm in lifecycle true
      9 verbose lifecycle magicmirror@2.1.3~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bi$
      10 verbose lifecycle magicmirror@2.1.3~start: CWD: /home/pi/MagicMirror
      11 silly lifecycle magicmirror@2.1.3~start: Args: [ '-c', 'sh run-start.sh' ]
      12 info lifecycle magicmirror@2.1.3~start: Failed to exec start script
      13 verbose stack Error: magicmirror@2.1.3 start: `sh run-start.sh`
      13 verbose stack spawn ENOENT
      13 verbose stack     at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:33:16)
      13 verbose stack     at emitTwo (events.js:106:13)
      13 verbose stack     at ChildProcess.emit (events.js:191:7)
      13 verbose stack     at maybeClose (internal/child_process.js:920:16)
      13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
      14 verbose pkgid magicmirror@2.1.3
      15 verbose cwd /home/pi/MagicMirror
      16 error Linux 4.9.35-v7+
      17 error argv "/usr/bin/node" "/usr/bin/npm" "start"
      18 error node v6.11.5
      19 error npm  v3.10.10
      20 error file sh
      21 error code ELIFECYCLE
      22 error errno ENOENT
      23 error syscall spawn
      24 error magicmirror@2.1.3 start: `sh run-start.sh`
      24 error spawn ENOENT
      25 error Failed at the magicmirror@2.1.3 start script 'sh run-start.sh'.
      25 error Make sure you have the latest version of node.js and npm installed.
      25 error If you do, this is most likely a problem with the magicmirror package,
      25 error not with npm itself.
      25 error Tell the author that this fails on your system:
      25 error     sh run-start.sh
      25 error You can get information on how to open an issue for this project with:
      25 error     npm bugs magicmirror
      25 error Or if that isn't available, you can get their info via:
      25 error     npm owner ls magicmirror
      25 error There is likely additional logging output above.
      26 verbose exit [ 1, true ]
      

      As the error ist talking about x11 I also tried to manually install x11vnc (see here: https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi), but that din’t change anything.

      Regards,
      AnduriI

      posted in Troubleshooting
      A
      AnduriI
    • RE: Motion Detection with RaspiCam, Non-Module version

      is it possible to use Motion to activate the screen and MMM-Facial-Recignition simultaneously? Maybe also use the on_event_start to activate some lights in the front of the MM to increase image quality…

      posted in Tutorials
      A
      AnduriI
    • is there a module for classic RGB(W) LED-strip?

      Hey there,

      I am planning my first magic mirror, so I’m not familiar with all the modules available out there. I have seen modules for these chipped LED strips, but I want to use one of those classic RGB or RGBW strips.
      As those need PWM for dimming I need 4 Pins. One way would be to use software PWM, but I have no experience with that. The other would be to use serial output to an arduino and use of of his PWM pins to controll the dimming. I have seen the MMM-gesture module which uses this way of communication, but only arduino->rpi. Is this also possible the other way around? Which way is easier to implement?
      As I will probably use MMM-gesture there will be an arduino in any case, so additional hardware will be no problem.

      Thanks a lot for your input.
      Anduril

      posted in General Discussion
      A
      AnduriI
    • 1
    • 2
    • 3
    • 3 / 3