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

    Posts

    Recent Best Controversial
    • Magic Mirror 2 won't start

      Hey everyone…

      I just did a complete Udpate of my pi

      sudo apt-get update
      sudo apt full-upgrade
      sudo apt clean
      

      I am now on “Raspbian GNU/Linux 9 (stretch)”.

      After that i switched to the Magic Mirror Folder and did a

      git pull
      

      Everything worked like a charm.
      But now the Magic Mirror 2 won’t start…

      I also did a reinstall of pm2 (i used this -> https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror)

      “pm2 show mm” gives me:

      pi@mirrorpi:~/script $ pm2 show mm
       Describing process with id 1 - name mm
      ┌───────────────────┬─────────────────────────────────┐
      │ status            │ online                          │
      │ name              │ mm                              │
      │ namespace         │ default                         │
      │ version           │ N/A                             │
      │ restarts          │ 6845                            │
      │ uptime            │ 0s                              │
      │ script path       │ /home/pi/mm.sh                  │
      │ script args       │ N/A                             │
      │ error log path    │ /home/pi/.pm2/logs/mm-error.log │
      │ out log path      │ /home/pi/.pm2/logs/mm-out.log   │
      │ pid path          │ /home/pi/.pm2/pids/mm-1.pid     │
      │ interpreter       │ bash                            │
      │ interpreter args  │ N/A                             │
      │ script id         │ 1                               │
      │ exec cwd          │ /home/pi                        │
      │ exec mode         │ fork_mode                       │
      │ node.js version   │ N/A                             │
      │ node env          │ N/A                             │
      │ watch & reload    │ ✘                               │
      │ unstable restarts │ 0                               │
      │ created at        │ 2020-07-26T14:26:42.028Z        │
      └───────────────────┴─────────────────────────────────┘
       Divergent env variables from local env
      ┌────────────────┬──────────────────────┐
      │ SSH_CONNECTION │ fe80::6d33:b8d3:9d81 │
      │ PWD            │ /home/pi/.pm2/module │
      │ SSH_CLIENT     │ fe80::6d33:b8d3:9d81 │
      └────────────────┴──────────────────────┘
      
       Add your own code metrics: http://bit.ly/code-metrics
       Use `pm2 logs mm [--lines 1000]` to display logs
       Use `pm2 env 1` to display environment variables
       Use `pm2 monit` to monitor CPU and Memory usage mm
       Describing process with id 2 - name mm
      ┌───────────────────┬─────────────────────────────────┐
      │ status            │ online                          │
      │ name              │ mm                              │
      │ namespace         │ default                         │
      │ version           │ N/A                             │
      │ restarts          │ 6841                            │
      │ uptime            │ 0s                              │
      │ script path       │ /home/pi/mm.sh                  │
      │ script args       │ N/A                             │
      │ error log path    │ /home/pi/.pm2/logs/mm-error.log │
      │ out log path      │ /home/pi/.pm2/logs/mm-out.log   │
      │ pid path          │ /home/pi/.pm2/pids/mm-2.pid     │
      │ interpreter       │ bash                            │
      │ interpreter args  │ N/A                             │
      │ script id         │ 2                               │
      │ exec cwd          │ /home/pi                        │
      │ exec mode         │ fork_mode                       │
      │ node.js version   │ N/A                             │
      │ node env          │ N/A                             │
      │ watch & reload    │ ✘                               │
      │ unstable restarts │ 0                               │
      │ created at        │ 2020-07-26T14:32:37.082Z        │
      └───────────────────┴─────────────────────────────────┘
       Divergent env variables from local env
      ┌────────────────┬──────────────────────┐
      │ SSH_CONNECTION │ fe80::6d33:b8d3:9d81 │
      │ PWD            │ /home/pi             │
      │ SSH_CLIENT     │ fe80::6d33:b8d3:9d81 │
      └────────────────┴──────────────────────┘
      
       Add your own code metrics: http://bit.ly/code-metrics
       Use `pm2 logs mm [--lines 1000]` to display logs
       Use `pm2 env 2` to display environment variables
       Use `pm2 monit` to monitor CPU and Memory usage mm
      

      If i try to stop and start the mirror i get:

      pi@mirrorpi:~/script $ pm2 start mm
      [PM2] Applying action restartProcessId on app [mm](ids: [ 1, 2 ])
      [PM2] [mm](1) ✓
      [PM2] [mm](2) ✓
      [PM2] Process successfully started
      ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
      │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
      ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
      │ 1  │ mm                 │ fork     │ 6905 │ online    │ 0%       │ 2.5mb    │
      │ 2  │ mm                 │ fork     │ 6902 │ online    │ 0%       │ 2.6mb    │
      └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
      Module
      ┌────┬────────────────────┬──────────┬──────────┬──────────┐
      │ id │ name               │ status   │ cpu      │ mem      │
      ├────┼────────────────────┼──────────┼──────────┼──────────┤
      │ 0  │ pm2-logrotate      │ online   │ 0%       │ 48.1mb   │
      └────┴────────────────────┴──────────┴──────────┴──────────┘
      
      

      why do i have 2 id’s??

      My startup script looks like this:

      cd /~MagicMirror
      DISPLAY=:0 npm start
      

      If i try to start the mirror manualy, i get:

      pi@mirrorpi:~ $ cd ./MagicMirror
      pi@mirrorpi:~/MagicMirror $ npm start
      
      > magicmirror@2.12.0 start /home/pi/MagicMirror
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [2020-07-28 23:54:26.833] [ERROR]  App threw an error during load
      [2020-07-28 23:54:26.861] [ERROR]  TypeError: Bind must be called on a function
          at bind (<anonymous>)
          at /home/pi/MagicMirror/js/logger.js:32:38
          at /home/pi/MagicMirror/js/logger.js:16:20
          at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:21:3)
          at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:46:3)
          at Module._compile (internal/modules/cjs/loader.js:711:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
          at Module.load (internal/modules/cjs/loader.js:620:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
          at Function.Module._load (internal/modules/cjs/loader.js:551:3)
      A JavaScript error occurred in the main process
      Uncaught Exception:
      TypeError: Bind must be called on a function
          at bind (<anonymous>)
          at /home/pi/MagicMirror/js/logger.js:32:38
          at /home/pi/MagicMirror/js/logger.js:16:20
          at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:21:3)
          at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:46:3)
          at Module._compile (internal/modules/cjs/loader.js:711:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
          at Module.load (internal/modules/cjs/loader.js:620:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
          at Function.Module._load (internal/modules/cjs/loader.js:551:3)
      
      

      And now i am at a point where i just don’t know what to do…
      Well i could try to update Javascript.

      The strange thing is: i did this a couple of times - and all the times everything just worked out of the box…
      What is going on here?

      Plus i now have a steady cpu load around 50%…

      what the hell?

      Looking forward to any suggestions/ideas/etc.

      thank you all

      stefan

      posted in Troubleshooting
      S
      Stef
    • RE: Issue with pm2: a wild Memory Access Error occured (Speicherzugriffsfehler)

      Thank you @sdetweil
      but sadly it did not work:

      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
      the log will be saved in /home/pi/MagicMirror/installers/pm2_setup.log
      bash: Zeile 188:  4212 Speicherzugriffsfehler  sudo npm uninstall $up -g pm2
      bash: Zeile 188:  4296 Speicherzugriffsfehler  $pm2cmd delete MagicMirror > /dev/null 2>&1
      bash: Zeile 188:  4342 Speicherzugriffsfehler  $pm2cmd start $HOME/MagicMirror/installers/$PM2_FILE
      bash: Zeile 188:  4348 Speicherzugriffsfehler  $pm2cmd save
      
      

      “Zeile” = Row
      “Speicherzugriffsfehler” = Memory Access Error

      The log says:

      pm2 setup starting - Fr Apr 10 14:28:47 CEST 2020
      system is Linux mirrorpi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.11 (stretch) Release: 9.11 Codename: stretch
      node version v12.14.0
      force installing latest npm version via npm
      npm version
      pm2 installed
      pm2 installed, but does not work, uninstalling
      pm2 not installed, installing
      get the pm2 platform specific startup command
      startup command =
      pm2 startup command done
      configure the pm2 config file for MagicMirror
      start MagicMirror via pm2 now
      save MagicMirror pm2 config now
      pm2 setup completed - Fr Apr 10 14:36:37 CEST 2020
      
      
      posted in Troubleshooting
      S
      Stef
    • Issue with pm2: a wild Memory Access Error occured (Speicherzugriffsfehler)

      am using pm2 to start my Magic Mirror 2 instance - everything works fine for a year now (i only had one issue with the logs, but i found the flush command, so that is not a problem anymore) and all of a sudden my pi is stuck the Desktop… The Magic Mirror won’t start…

      Every command with pm2 gives me: “Speicherzugriffsfehler” - it’s german and stands for Memory Access Error.

      Besides that, the Pi works fine.
      I am still able to download and install software. vnc viewer and putty are still working
      I’m on an Raspberry Pi 3 Model B Rev 1.2 which is auto rebooting every day at 3 am.

      The Report is not working either:
      $ pm2 report
      Speicherzugriffsfehler

      any ideas?

      posted in Troubleshooting
      S
      Stef
    • RE: MMM-DHT-Sensor Update how to

      Thanks!

      That was to easy :D

      posted in Utilities
      S
      Stef
    • MMM-DHT-Sensor Update how to

      Hello all,

      This awesome moudle is showing me, that it needs an update - but how do i do that?
      i can’t find any command that will just update this module… am i missing something here?

      thanks in advance

      posted in Utilities
      S
      Stef
    • RE: MMM-NowPlayingOnSpotify does not work

      I reinstalled everything - YES! THE WHOLE PI! - and it is still not working…

      posted in Troubleshooting
      S
      Stef
    • RE: MMM-NowPlayingOnSpotify does not work

      yes i am an premium member…

      posted in Troubleshooting
      S
      Stef
    • MMM-NowPlayingOnSpotify does not work

      Hi all,

      i installed the Module as posted on github.
      Everything did work out.
      I got my Client ID, pasted everything in my config file and even have the spotify icon on my mirror.
      BUT if i play songs on Spotify, the module does nothing…

      my config is as followed:

      module: "MMM-NowPlayingOnSpotify",
        			position: "bottom_left",
       			config: {
          				clientID: "my id",
          				clientSecret: "mysecret",
         				accessToken: "mytoken",
      				refreshToken: "myothertoken"
      				}
      

      i noticed that the modules needs “Node.js version >= 7”, so i made a quick check with

      node -v
      

      and it turns out, that i have version 10 installed (v10.15.3)…

      Any ideas on how to fix that (at least for me) broken module?

      posted in Troubleshooting
      S
      Stef
    • RE: MMM-PIR-Sensor black screen

      Hey all,
      turns out, that the MMM-PIR-Sensor Module is buggy - well, at least for me.
      Can’t get it to work, but i found an alternative: MagicMirror-Display-Controller

      Works like a Charme!

      Case closed :)

      Have a nice weekend!

      posted in Troubleshooting
      S
      Stef
    • RE: MMM-PIR-Sensor black screen

      I did a little research and stumbled over severall issues on the github page - this one catched my eye, but didn’t brought me any luck…

      So, what did i do excatly?

      1. Install:
      cd ~/MagicMirror/modules/
      git clone https://github.com/paviro/MMM-PIR-Sensor.git
      npm install
      sudo usermod -a -G gpio pi
      sudo chmod u+s /opt/vc/bin/tvservice && sudo chmod u+s /bin/chvt
      sudo reboot
      
      1. New wiringPI version:
      sudo apt-get purge wiringpi
      hash -r
      sudo apt-get install git-core
      cd
      git clone git://git.drogon.net/wiringPi
      cd ~/wiringPi
      git pull origin
      ./build
      sudo reboot
      
      1. reinstall EPOLL:
      cd ~/MagicMirror/modules/
      sudo npm install --save-dev electron-rebuild ./node_modules/.bin/electron-rebuild
      
      1. recompile Electron:
      npm list | grep electron
      cd ~/MagicMirror/modules/MMM-PIR-Sensor
      npm rebuild --runtime=electron --target=1.4.5 --disturl=https://atom.io/download/atom-shell --abi=50
      sudo reboot
      

      Expectation: It Works now…
      Reality: It does not…

      my Config is:

      {
                module: 'MMM-PIR-Sensor',
                config: {
                             sensorPin: 23,
                             powerSaving: true,
                             powerSavingDelay: 120 // 2 Minutes
                             }
      },
      

      I just excluded this part of my config - and my mirror displays everything again…

      Andy ideas left? :)

      posted in Troubleshooting
      S
      Stef
    • RE: MMM-PIR-Sensor black screen

      @sdetweil thanks for the headsup - but this does not work… i see the mous coursor though, but that’s it.
      I even can’t “cancel” the fullscreen mode of the magic mirror by pressing F11 (usually this brings me back to the desktop) :/

      posted in Troubleshooting
      S
      Stef
    • MMM-PIR-Sensor black screen

      Hello everyone,

      i just found out about this module - didn’t even know this exists - and i hat to try it!
      I’m planning on saving some energy by powering off the Monitor.

      The install worked fine and the PIR Sensor is working (i have a litte .py script that’s prints a message in the shell if a movement is dedected) BUT the screen stays black!

      The Monitor is powerd on - i even see the desktop seconds bevor MM boots up, but the screens stays black and nothing is displayed.

      I noticed this before when i was trying to turn my monitor on and off again with tvservice --off / tvservice --preferred.
      If i use vcgencmd display_power 1 / vcgencmd display_power 0 my Monitor perfectly switches on and off again.

      But, i checked the “node_helper.js” on github and the helper file is using the “vcgencmd script”

      What is going here? Any ideas how i can solve this?

      posted in Troubleshooting
      S
      Stef
    • RE: Maximum File Size of ics FIle?

      Uhoh… i almost forgot:
      It all works like a charme now!

      Thank you @ninjabreadman!

      …Maybe i will write a litlle howto… but after all it was pretty straight forward.

      This Thread can be closed now.

      posted in Troubleshooting
      S
      Stef
    • RE: Maximum File Size of ics FIle?

      YES! Thanks!
      I didn’t realised that…

      posted in Troubleshooting
      S
      Stef
    • RE: Maximum File Size of ics FIle?

      Yes i know :(
      But everytime i enter

      touch ~/.vdirsyncer/config

      i get, that it can’t find the directory…
      (" touch: ‘/home/pi/.vdirsyncer/config’ kann nicht ber▒hrt werden: Datei oder Verzeichnis nicht gefunden")

      posted in Troubleshooting
      S
      Stef
    • RE: Maximum File Size of ics FIle?

      Ok… I am stuck…

      The Google API creation wasn’t a problem, and installing the vdirsyncer worked well also.

      But now i am supposed to create a conifg file in ~/.vdirsyncer/config - but i get an error everytime, that this File or Folder can’t be found…

      If i run ls -l in usr/bin, i get the following output:
      lrwxrwxrwx 1 root root 30 Feb 3 21:32 vdirsyncer -> /home/pi/.local/bin/vdirsyncer

      So… it is an folder… but why can’t i access it??
      Am i missing something?

      thanks!

      posted in Troubleshooting
      S
      Stef
    • RE: Maximum File Size of ics FIle?

      @ninjabreadman (nice name btw)
      Thanks for your headsup.
      Yes this is directly from Google.
      Unfortuantley, adding the start/end dates won’t work. It seems to me, that i have to make my calendar public, in order to use this… and i do not want this.

      I’ll try to find the time to check out your other Hint with vdirsyncer. Looks easy enough.

      I’ll keep you posted!

      Thanks and a nice weekend

      posted in Troubleshooting
      S
      Stef
    • Maximum File Size of ics FIle?

      Hey everyone,

      i stumbled over the MagicMirror Project almost a year ago and was already then hooked!
      I am now currently building my own, but i got a problem with the Calender plugin.

      My main Google Calender won’t load. All i get is “Loading…”
      I tried to open the FIle via Chrome and it imediatly downloaded it (https://calendar.google.com/calendar/ical/myname%40gmail.com/private-key/basic.ics).

      The file size is 1,35MB - is this a problem for the mirror? Because any other File (like a Holiday ics from the web with 27KB or even my quick created test gmail account with only one appointment) will load and display the events on the mirror…

      Is there any way to fix this?

      I’m running the newest version of the MagicMirror on a Raspi 3
      PRETTY_NAME=“Raspbian GNU/Linux 9 (stretch)”
      NAME=“Raspbian GNU/Linux”
      VERSION_ID=“9”
      VERSION=“9 (stretch)”

      Any help is apreciated - even if it is a workaround…
      Thanks!

      posted in Troubleshooting
      S
      Stef
    • 1 / 1