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

    Posts

    Recent Best Controversial
    • RE: Installing on a Pi Zero

      @12wsx

      you made my day…

      it works…

      the first differences i encountered was the Installation of electron …
      this i didn’t found at all the others…

      and i thought before, that this will be the quest…

      regarding to the warnings installing npm

      you could fix that with “npm Audit fix” or “npm Audit fix --force”
      as suggested…

      i did this also, so maybe this could be an error too…

      and if it works but this warnings, who cares…. :-)

      have a great day…
      thank you

      posted in Troubleshooting
      B
      Big11
    • RE: Installing on a Pi Zero

      @big11

      thats my “achievment” from last night…

      pi@raspberrypi:~ $ cd MagicMirror/
      pi@raspberrypi:~/MagicMirror $ npm start
      
      > magicmirror@2.6.0 start /home/pi/MagicMirror
      > sh run-start.sh
      
      run-start.sh: 4: run-start.sh: electron: not found
      npm ERR! file sh
      npm ERR! code ELIFECYCLE
      npm ERR! errno ENOENT
      npm ERR! syscall spawn
      npm ERR! magicmirror@2.6.0 start: `sh run-start.sh`
      npm ERR! spawn ENOENT
      npm ERR!
      npm ERR! Failed at the magicmirror@2.6.0 start 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/2019-01-10T07_11_11_053Z-debug.log
      pi@raspberrypi:~/MagicMirror $
      
      
      
      posted in Troubleshooting
      B
      Big11
    • RE: Installing on a Pi Zero

      @andyc7687

      as for your Question

      i’m installing over SSH but start it then directly on the Pi0…

      i will i try a new Installation by now…

      normally i don’t run “npm install” as root…
      don’t know if i wrote so…

      posted in Troubleshooting
      B
      Big11
    • RE: Installing on a Pi Zero

      @andyc7687

      so since yesterday i installed many times from Scratch but without success……

      With your script i ran into Troubles with a lot of Errors…

      missing dependencies….

      so i suggest to do more steps after “sudo apt INSTALL --fix-missing” -> “apt UPGRADE --fix-missing” does not work…

      sudo dpkg –configure -a. and.
      sudo apt install -f.
      

      at npm install a lot of Warnings e.g.

      npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
      npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
      
      added 921 packages from 1366 contributors and audited 2466 packages in 859.404s
      found 8 vulnerabilities (7 low, 1 high)
        run `npm audit fix` to fix them, or `npm audit` for details
      Errors while installing dependencies! (source command: npmc@latest install)
      
      + stylelint@9.9.0
      added 156 packages from 107 contributors, removed 32 packages, updated 99 packages, moved 6 packages and audited 4452 packages in 370.707s
      found 4 vulnerabilities (3 low, 1 high)
        run `npm audit fix` to fix them, or `npm audit` for details
      Errors while installing dependencies! (source command: pm install stylelint@latest)
      
      pi@magicpi:~ $   run `npm audit fix` to fix them, or `npm audit` for details
      npm ERR! code EAUDITNOPJSON
      npm ERR! audit No package.json found: Cannot audit a project without a package.json
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2019-01-09T07_05_26_138Z-debug.log
      npm ERR! code EAUDITNOPJSON
      npm ERR! audit No package.json found: Cannot audit a project without a package.json
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2019-01-09T07_05_35_497Z-debug.log
      -bash: run: Kommando nicht gefunden.
      pi@magicpi:~ $ Errors while installing dependencies! (source command: pm install stylelint@latest)
      -bash: Syntaxfehler beim unerwarteten Wort `('
      

      i could fix this with

      "npm audit fix" or "npm audit fix --force" in directory MagicMirror
      

      and then i figured out autostart with PM2 as described in MM-Wiki but…

      it won’t start …

      as done in the guide i created a mm.sh script und configured this for autostart with pm2

      at next start Nothing happens to start MagicMirror localy

      a “pm2 logs mm”

      Shows a loop of “sh run-start.sh”

      |mm       | > magicmirror@2.6.0 start /home/pi/MagicMirror
      0|mm       | > sh run-start.sh
      0|mm       |
      0|mm       |
      0|mm       | > magicmirror@2.6.0 start /home/pi/MagicMirror
      0|mm       | > sh run-start.sh
      0|mm       |
      0|mm       |
      0|mm       | > magicmirror@2.6.0 start /home/pi/MagicMirror
      0|mm       | > sh run-start.sh
      0|mm       |
      0|mm       |
      0|mm       | > magicmirror@2.6.0 start /home/pi/MagicMirror
      0|mm       | > sh run-start.sh
      

      a cat to run-start.sh Shows

      pi@magicpi:~/MagicMirror $ cat run-start.sh
      if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
              export DISPLAY=:0 # Set by default display
      fi
      electron js/electron.js $1
      

      !!!
      but electron.js isn’t installed

      trying manually install this with

      sudo npm install electron -g
      

      ended again in Error-Messages

      Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/electron/.electron'
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! electron@4.0.1 postinstall: `node install.js`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the electron@4.0.1 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!     /root/.npm/_logs/2019-01-09T09_13_51_893Z-debug.log
      

      so… now i’m giving up for These days….

      does anybody know where my Failure is ??

      Thank you

      posted in Troubleshooting
      B
      Big11
    • RE: ipwhitelist - a lot of issues... can't connect remotely ..

      @plati

      got it … thank you…

      but the ipwhitelist Parameter are not very handsome

      so i did a

      ipwhitelist: [],
      

      and that works…

      further i will look for the correct Syntax to grant Access for Special addresses outside my LAN…

      posted in Troubleshooting
      B
      Big11
    • RE: Installing on a Pi Zero

      @andyc7687

      i run just

      bash -c “$(curl -sL https://raw.githubusercontent.com/ac2799/MagicMirror/master/installers/raspberry.sh)”

      don’t know if this leads to bare or Pi0 …

      This is your “modified” installer script also for the Pi0…

      posted in Troubleshooting
      B
      Big11
    • ipwhitelist - a lot of issues... can't connect remotely ..

      Some days now, i try to get my MM running on a Raspberry (Zero, B3A+) but without Access

      two main issues occurs…

      i can’t access remotly …

      whatever i tried in “config.js”

      this is what i tried

      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: [],
      //ipWhitelist: [“::fff:0.0.0.0/1”, “::fff:0.8.0.0/1”, “::fff:128.0.0.0/2”, “::fff:192.0.0.0/3”, “::fff:224.0.0.0/4”, “127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “192.168.2.54”],
      //ipWhitelist: [“::ffff:192.168.2.1/120”, “127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // 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”, “::ffff:192.168.1.5”],
      // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],

      for Explanation my Home LAN is addressed with 192.168.2.x…

      i have installed it with PM2

      if i start it locally with

      startx (cause “chromium-browser -Kiosk http://localhost:8080” gives an GTK-Error) and after that
      DISPLAY=:0 chromium-browser -Kiosk http://localhost:8080" it starts but give me an Warn Message that Address “localhost” is already in use …

      any Ideas…

      The last entrys for “ipwhitelist” i found were form one year ago…

      basicliy i want to start it jast locally on my Pi …

      posted in Troubleshooting
      B
      Big11
    • RE: Installing on a Pi Zero

      @andyc7687 said in Installing on a Pi Zero:

      pm2 start ~/MagicMirror/installers/pm2_MagicMirrorPi0.json

      Need help…

      I have installed MM on my PiZero’s many times with no succes to start it just localy and automatically …

      i followed your script and all seems running well and i did what you decided to autostart with PM2…
      but it didn’t

      after rebooting i can see the process “PM2 v3.4.2 GOD” running, but Nothing happens on my screen

      I tried to start the three startscripts manually and i got an Gtk-Error starting chromium-browser which i can’t work

      That it basicly works is shown when i start first the xserver manually (startx) and then whitin starting chromium-browser and Point it to http://localhost:8080…

      What is going wrong?
      where i can see some Errors ?

      Thanks a lot…

      posted in Troubleshooting
      B
      Big11
    • RE: install git on Synology NAS ?

      @sean
      Maybe… or prety sure,
      but
      why to install a huge package if i do really Need just one part of it…
      so the better way is how to get apt-get or ipkg getting on the synology…

      thanks

      posted in Tutorials
      B
      Big11
    • RE: install git on Synology NAS ?

      @bhepler
      no one of the package tolls are installed !..
      neither apt, nor ipkg or else…
      so i tried before !..

      posted in Tutorials
      B
      Big11
    • manual Installation on Raspberry Zero - uninterpretable Error..

      Hello

      does anybody can “translate” this Error Message when i start MM² with npm start

      0 info it worked if it ends with ok
      1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
      2 info using npm@6.4.1
      3 info using node@v10.15.0
      4 verbose run-script [ 'prestart', 'start', 'poststart' ]
      5 info lifecycle magicmirror@2.5.0~prestart: magicmirror@2.5.0
      6 info lifecycle magicmirror@2.5.0~start: magicmirror@2.5.0
      7 verbose lifecycle magicmirror@2.5.0~start: unsafe-perm in lifecycle true
      8 verbose lifecycle magicmirror@2.5.0~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
      9 verbose lifecycle magicmirror@2.5.0~start: CWD: /home/pi/MagicMirror
      10 silly lifecycle magicmirror@2.5.0~start: Args: [ '-c', 'sh run-start.sh' ]
      11 info lifecycle magicmirror@2.5.0~start: Failed to exec start script
      12 verbose stack Error: magicmirror@2.5.0 start: `sh run-start.sh`
      12 verbose stack spawn ENOENT
      12 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
      12 verbose stack     at ChildProcess.emit (events.js:182:13)
      12 verbose stack     at maybeClose (internal/child_process.js:962:16)
      12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
      13 verbose pkgid magicmirror@2.5.0
      14 verbose cwd /home/pi/MagicMirror
      15 verbose Linux 4.14.90+
      16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
      17 verbose node v10.15.0
      18 verbose npm  v6.4.1
      19 error file sh
      20 error code ELIFECYCLE
      21 error errno ENOENT
      22 error syscall spawn
      23 error magicmirror@2.5.0 start: `sh run-start.sh`
      23 error spawn ENOENT
      24 error Failed at the magicmirror@2.5.0 start script.
      24 error This is probably not a problem with npm. There is likely additional logging output above.
      25 verbose exit [ 1, true ]
      
      

      thank you…

      posted in Troubleshooting
      B
      Big11
    • RE: install git on Synology NAS ?

      @bhepler

      nice …
      but i won’t install the whole GIT-Server !..

      just “git” …

      not to provide git Projects, just clone Projects locally…

      posted in Tutorials
      B
      Big11
    • install git on Synology NAS ?

      Re: MagicMirror Servermode on Synology DS

      in this thread is stated
      ……
      Install git and clone the repository
      ……

      can anybody tell me how to install just “git” not the whole “Docker-Gitlab” on Synology DSM 6.1.7 ?

      Thanks a lot…

      posted in Tutorials
      B
      Big11
    • 1 / 1