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

    Posts

    Recent Best Controversial
    • RE: Fresh install but pm2 error

      @sdetweil

      here is the run-start.sh

      #!/bin/bash -x
        # use bash instead of sh
      ./untrack-css.sh
      
      if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
      	export DISPLAY=:0 # Set by default display
      fi
      # get the processor architecture
      arch=$(uname -m)
      false='false'
      
      # get the config option, if any
      # only check non comment lines
      serveronly=$(grep -v '^\s//'  config/config.js | grep -i serveronly: | awk '{print tolower($2)}' | tr -d ,\"\')
      # set default if not defined in config
      serveronly=${serveronly:-false}
      # check for xwindows running
      xorg=$(pgrep Xorg)
      #check for macOS
      mac=$(uname)
      #
      # if the user requested serveronly OR 
      #    electron support for armv6l has been dropped OR
      #    system is in text mode
      #
      if [ "$serveronly." != "false." -o  "$arch" == "armv6l" ] ||  [ "$xorg." == "." -a $mac != 'Darwin' ]; then
      
      	# if user explicitly configured to run server only (no ui local)
      	# OR there is no xwindows running, so no support for browser graphics
      	if [ "$serveronly." == "true." -o "$xorg." == "." ]; then
      	  # start server mode, 
      	  node serveronly
      	else 
      		# start the server in the background
      		# wait for server to be ready
      		# need bash for this
      		exec 3< <(node serveronly)
      
      		# Read the output of server line by line until one line 'point your browser'
      		while read line; do
      			 case "$line" in
      			 *point\ your\ browser*)
      					echo $line 
      					break
      					;;
      			 *)
      					echo $line
      					#sleep .25
      					;;
      			 esac
      		done <&3
      
      		# Close the file descriptor
      		exec 3<&-	
      
      		# lets use chrome to display here now
      		# get the server port address from the ready message
      		port=$(echo $line | awk -F\: '{print $4}')	
      		# start chromium 
      		echo "Starting chromium browser now, have patience, it takes a minute"
      		chromium-browser -noerrdialogs -kiosk -start_maximized  --disable-infobars --app=http://localhost:$port  --ignore-certificate-errors-spki-list --ignore-ssl-errors --ignore-certificate-errors 2>/dev/null
      		exit		  
      	fi 
      else  
      	# we can use electron directly	
      	electron js/electron.js $1;
      fi
      
      
      posted in Troubleshooting
      H
      Hubschra01
    • RE: Fresh install but pm2 error

      @sdetweil
      here it is…

      PM2        | 2020-01-20T16:05:29: PM2 log: App [MagicMirror:0] exited with code                      [2] via signal [SIGINT]
      PM2        | 2020-01-20T16:05:29: PM2 log: App [MagicMirror:0] starting in -fork                      mode-
      PM2        | 2020-01-20T16:05:29: PM2 log: App [MagicMirror:0] online
      PM2        | 2020-01-20T16:05:31: PM2 log: Stopping app:MagicMirror id:0
      PM2        | 2020-01-20T16:05:31: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:31: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:32: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:32: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:32: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:32: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:32: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:32: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:32: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:32: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:32: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:32: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:33: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:33: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:33: PM2 log: pid=1305 msg=failed to kill - retryin                     g in 100ms
      PM2        | 2020-01-20T16:05:33: PM2 log: Process with pid 1305 still alive aft                     er 1600ms, sending it SIGKILL now...
      PM2        | 2020-01-20T16:05:33: PM2 log: App [MagicMirror:0] exited with code                      [0] via signal [SIGKILL]
      PM2        | 2020-01-20T16:05:33: PM2 log: pid=1305 msg=process killed
      PM2        | 2020-01-20T16:05:33: PM2 log: PM2 successfully stopped
      PM2        | 2020-01-20T16:05:48: PM2 log: =====================================                     ==========================================
      PM2        | 2020-01-20T16:05:48: PM2 log: --- New PM2 Daemon started ----------                     ------------------------------------------
      PM2        | 2020-01-20T16:05:48: PM2 log: Time                 : Mon Jan 20 202                     0 16:05:48 GMT+0100 (GMT+01:00)
      PM2        | 2020-01-20T16:05:48: PM2 log: PM2 version          : 4.2.1
      PM2        | 2020-01-20T16:05:48: PM2 log: Node.js version      : 10.18.1
      PM2        | 2020-01-20T16:05:48: PM2 log: Current arch         : arm
      PM2        | 2020-01-20T16:05:48: PM2 log: PM2 home             : /home/pi/.pm2
      PM2        | 2020-01-20T16:05:48: PM2 log: PM2 PID file         : /home/pi/.pm2/                     pm2.pid
      PM2        | 2020-01-20T16:05:48: PM2 log: RPC socket file      : /home/pi/.pm2/                     rpc.sock
      PM2        | 2020-01-20T16:05:48: PM2 log: BUS socket file      : /home/pi/.pm2/                     pub.sock
      PM2        | 2020-01-20T16:05:48: PM2 log: Application log path : /home/pi/.pm2/                     logs
      PM2        | 2020-01-20T16:05:48: PM2 log: Worker Interval      : 30000
      PM2        | 2020-01-20T16:05:48: PM2 log: Process dump file    : /home/pi/.pm2/                     dump.pm2
      PM2        | 2020-01-20T16:05:48: PM2 log: Concurrent actions   : 2
      PM2        | 2020-01-20T16:05:48: PM2 log: SIGTERM timeout      : 1600
      PM2        | 2020-01-20T16:05:48: PM2 log: =====================================                     ==========================================
      PM2        | 2020-01-20T16:05:48: PM2 log: App [MagicMirror:0] starting in -fork                      mode-
      PM2        | 2020-01-20T16:05:49: PM2 log: App [MagicMirror:0] online
      
      /home/pi/.pm2/logs/MagicMirror-error.log last 100 lines:
      0|MagicMir | ./run-start.sh: Zeile 68: Syntaxfehler beim unerwarteten Wort `fi'
      0|MagicMir | ./run-start.sh: Zeile 68: `fi'
      0|MagicMir | npm ERR! code ELIFECYCLE
      0|MagicMir | npm ERR! errno 2
      0|MagicMir | npm ERR! magicmirror@2.10.1 start: `./run-start.sh`
      0|MagicMir | npm ERR! Exit status 2
      0|MagicMir | npm ERR!
      0|MagicMir | npm ERR! Failed at the magicmirror@2.10.1 start script.
      0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely a                     dditional logging output above.
      0|MagicMir |
      0|MagicMir | npm ERR! A complete log of this run can be found in:
      0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2020-01-20T15_05_29_835Z-debug.log
      0|MagicMir | + ./untrack-css.sh
      0|MagicMir | + '[' -z :0 ']'
      0|MagicMir | ++ uname -m
      0|MagicMir | + arch=armv7l
      0|MagicMir | + false=false
      0|MagicMir | ++ grep -v '^\s//' config/config.js
      0|MagicMir | ++ grep -i serveronly:
      0|MagicMir | ++ tr -d ',"'\'''
      0|MagicMir | ++ awk '{print tolower($2)}'
      0|MagicMir | + serveronly=
      0|MagicMir | + serveronly=false
      0|MagicMir | ++ pgrep Xorg
      0|MagicMir | + xorg=
      0|MagicMir | ++ uname
      0|MagicMir | + mac=Linux
      0|MagicMir | + '[' false. '!=' false. -o armv7l == armv6l ']'
      0|MagicMir | + '[' . == . -a Linux '!=' Darwin ']'
      0|MagicMir | + '[' false. == true. -o . == . ']'
      0|MagicMir | + node serveronly
      0|MagicMir | + ./untrack-css.sh
      0|MagicMir | + '[' -z :0 ']'
      0|MagicMir | ++ uname -m
      0|MagicMir | + arch=armv7l
      0|MagicMir | + false=false
      0|MagicMir | ++ grep -i serveronly:
      0|MagicMir | ++ tr -d ',"'\'''
      0|MagicMir | ++ awk '{print tolower($2)}'
      0|MagicMir | ++ grep -v '^\s//' config/config.js
      0|MagicMir | + serveronly=
      0|MagicMir | + serveronly=false
      0|MagicMir | ++ pgrep Xorg
      0|MagicMir | + xorg=437
      0|MagicMir | ++ uname
      0|MagicMir | + mac=Linux
      0|MagicMir | + '[' false. '!=' false. -o armv7l == armv6l ']'
      0|MagicMir | + '[' 437. == . -a Linux '!=' Darwin ']'
      0|MagicMir | + electron js/electron.js
      
      /home/pi/.pm2/logs/MagicMirror-out.log last 100 lines:
      0|MagicMir |
      0|MagicMir | > magicmirror@2.10.1 start /home/pi/MagicMirror
      0|MagicMir | > ./run-start.sh
      0|MagicMir |
      0|MagicMir | [16:05:33.029] [LOG]    Starting MagicMirror: v2.10.1
      0|MagicMir | [16:05:33.045] [LOG]    Loading config ...
      0|MagicMir | [16:05:33.054] [LOG]    Loading module helpers ...
      0|MagicMir | [16:05:33.057] [LOG]    No helper found for module: alert.
      0|MagicMir | [16:05:33.129] [LOG]    Initializing new module helper ...
      0|MagicMir | [16:05:33.131] [LOG]    Module helper loaded: updatenotification
      0|MagicMir | [16:05:33.132] [LOG]    No helper found for module: clock.
      0|MagicMir |
      0|MagicMir | > magicmirror@2.10.1 start /home/pi/MagicMirror
      0|MagicMir | > ./run-start.sh
      0|MagicMir |
      0|MagicMir | [16:05:56.837] [LOG]    Starting MagicMirror: v2.10.1
      0|MagicMir | [16:05:56.853] [LOG]    Loading config ...
      0|MagicMir | [16:05:56.872] [LOG]    Loading module helpers ...
      0|MagicMir | [16:05:56.875] [LOG]    No helper found for module: alert.
      0|MagicMir | [16:05:57.006] [LOG]    Initializing new module helper ...
      0|MagicMir | [16:05:57.012] [LOG]    Module helper loaded: updatenotification
      0|MagicMir | [16:05:57.014] [LOG]    No helper found for module: clock.
      0|MagicMir | [16:05:58.224] [LOG]    Initializing new module helper ...
      0|MagicMir | [16:05:58.225] [LOG]    Module helper loaded: calendar
      0|MagicMir | [16:05:58.226] [LOG]    No helper found for module: currentweather.
      0|MagicMir | [16:05:58.227] [LOG]    No helper found for module: weatherforecast                     .
      0|MagicMir | [16:05:58.315] [LOG]    Initializing new module helper ...
      0|MagicMir | [16:05:58.316] [LOG]    Module helper loaded: newsfeed
      0|MagicMir | [16:05:58.316] [LOG]    All module helpers loaded.
      0|MagicMir | [16:05:58.318] [LOG]    Starting server on port 8080 ...
      0|MagicMir | [16:05:58.341] [LOG]    Server started ...
      0|MagicMir | [16:05:58.343] [LOG]    Connecting socket for: updatenotification
      0|MagicMir | [16:05:58.345] [LOG]    Connecting socket for: calendar
      0|MagicMir | [16:05:58.346] [LOG]    Starting node helper for: calendar
      0|MagicMir | [16:05:58.347] [LOG]    Connecting socket for: newsfeed
      0|MagicMir | [16:05:58.349] [LOG]    Starting module: newsfeed
      0|MagicMir | [16:05:58.349] [LOG]    Sockets connected & modules started ...
      0|MagicMir | [16:05:59.000] [LOG]    Launching application.
      0|MagicMir | [16:06:02.809] [LOG]    Create new calendar fetcher for url: https:       
      
      posted in Troubleshooting
      H
      Hubschra01
    • RE: Fresh install but pm2 error

      @sdetweil

      -rwxr-xr-x 1 pi pi 1989 Jan 16 20:05 /home/pi/MagicMirror/run-start.sh*
      
      posted in Troubleshooting
      H
      Hubschra01
    • RE: Fresh install but pm2 error

      @sdetweil
      sure here it is:

      0 info it worked if it ends with ok
      1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
      2 info using npm@6.13.4
      3 info using node@v10.18.1
      4 verbose run-script [ 'prestart', 'start', 'poststart' ]
      5 info lifecycle magicmirror@2.10.1~prestart: magicmirror@2.10.1
      6 info lifecycle magicmirror@2.10.1~start: magicmirror@2.10.1
      7 verbose lifecycle magicmirror@2.10.1~start: unsafe-perm in lifecycle true
      8 verbose lifecycle magicmirror@2.10.1~start: PATH: /usr/lib/node_modules/npm/n$
      9 verbose lifecycle magicmirror@2.10.1~start: CWD: /home/pi/MagicMirror
      10 silly lifecycle magicmirror@2.10.1~start: Args: [ '-c', './run-start.sh' ]
      11 silly lifecycle magicmirror@2.10.1~start: Returned: code: 1  signal: null
      12 info lifecycle magicmirror@2.10.1~start: Failed to exec start script
      13 verbose stack Error: magicmirror@2.10.1 start: `./run-start.sh`
      13 verbose stack Exit status 1
      13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/nod$
      13 verbose stack     at EventEmitter.emit (events.js:198:13)
      13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/nod$
      13 verbose stack     at ChildProcess.emit (events.js:198:13)
      13 verbose stack     at maybeClose (internal/child_process.js:982:16)
      13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_pro$
      14 verbose pkgid magicmirror@2.10.1
      15 verbose cwd /home/pi/MagicMirror
      16 verbose Linux 4.19.75-v7+
      17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
      18 verbose node v10.18.1
      19 verbose npm  v6.13.4
      20 error code ELIFECYCLE
      21 error errno 1
      22 error magicmirror@2.10.1 start: `./run-start.sh`
      22 error Exit status 1
      23 error Failed at the magicmirror@2.10.1 start script.
      23 error This is probably not a problem with npm. There is likely additional lo$
      24 verbose exit [ 1, true ]
      
      
      posted in Troubleshooting
      H
      Hubschra01
    • RE: Fresh install but pm2 error

      @sdetweil
      OK i did it. what else?
      if i reboot pm2 log show this.

      pi@raspberrypi:~ $ pm2 log
      [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 15 lines:
      PM2        | 2020-01-20T15:12:28: PM2 log: PM2 version          : 4.2.1
      PM2        | 2020-01-20T15:12:28: PM2 log: Node.js version      : 10.18.1
      PM2        | 2020-01-20T15:12:28: PM2 log: Current arch         : arm
      PM2        | 2020-01-20T15:12:28: PM2 log: PM2 home             : /home/pi/.pm2
      PM2        | 2020-01-20T15:12:28: PM2 log: PM2 PID file         : /home/pi/.pm2/pm2.pid
      PM2        | 2020-01-20T15:12:28: PM2 log: RPC socket file      : /home/pi/.pm2/rpc.sock
      PM2        | 2020-01-20T15:12:28: PM2 log: BUS socket file      : /home/pi/.pm2/pub.sock
      PM2        | 2020-01-20T15:12:28: PM2 log: Application log path : /home/pi/.pm2/logs
      PM2        | 2020-01-20T15:12:28: PM2 log: Worker Interval      : 30000
      PM2        | 2020-01-20T15:12:28: PM2 log: Process dump file    : /home/pi/.pm2/dump.pm2
      PM2        | 2020-01-20T15:12:28: PM2 log: Concurrent actions   : 2
      PM2        | 2020-01-20T15:12:28: PM2 log: SIGTERM timeout      : 1600
      PM2        | 2020-01-20T15:12:28: PM2 log: ===============================================================================
      PM2        | 2020-01-20T15:12:28: PM2 log: App [MagicMirror:0] starting in -fork mode-
      PM2        | 2020-01-20T15:12:28: PM2 log: App [MagicMirror:0] online
      
      /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
      0|MagicMir | npm ERR! code ELIFECYCLE
      0|MagicMir | npm ERR! errno 1
      0|MagicMir | npm ERR! magicmirror@2.10.1 start: `./run-start.sh`
      0|MagicMir | npm ERR! Exit status 1
      0|MagicMir | npm ERR!
      0|MagicMir | npm ERR! Failed at the magicmirror@2.10.1 start script.
      0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      0|MagicMir |
      0|MagicMir | npm ERR! A complete log of this run can be found in:
      0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2020-01-20T14_12_10_107Z-debug.log
      
      /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
      0|MagicMir | [15:12:38.792] [LOG]    Initializing new module helper ...
      0|MagicMir | [15:12:38.793] [LOG]    Module helper loaded: newsfeed
      0|MagicMir | [15:12:38.794] [LOG]    All module helpers loaded.
      0|MagicMir | [15:12:38.795] [LOG]    Starting server on port 8080 ...
      0|MagicMir | [15:12:38.819] [LOG]    Server started ...
      0|MagicMir | [15:12:38.820] [LOG]    Connecting socket for: updatenotification
      0|MagicMir | [15:12:38.822] [LOG]    Connecting socket for: calendar
      0|MagicMir | [15:12:38.823] [LOG]    Starting node helper for: calendar
      0|MagicMir | [15:12:38.825] [LOG]    Connecting socket for: newsfeed
      0|MagicMir | [15:12:38.826] [LOG]    Starting module: newsfeed
      0|MagicMir | [15:12:38.827] [LOG]    Sockets connected & modules started ...
      0|MagicMir | [15:12:39.460] [LOG]    Launching application.
      0|MagicMir | [15:12:43.347] [LOG]    Create new calendar fetcher for url: https:
      
      posted in Troubleshooting
      H
      Hubschra01
    • RE: Fresh install but pm2 error

      Yes it did.
      I Start the Mirror again with

      pm2 restart MagicMirror
      

      and it works.
      Next step i flush the pm2 log and restart pm2 again.
      All works fine no errors.

      But if i reboot the pi the error appear again in the pm2 log…

      posted in Troubleshooting
      H
      Hubschra01
    • RE: Fresh install but pm2 error

      @sdetweil
      sorry i forget this.
      This is the CLI output i tried now.

      pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start
      
      > magicmirror@2.10.1 start /home/pi/MagicMirror
      > ./run-start.sh
      
      [23:11:47.885] [LOG]    Starting MagicMirror: v2.10.1
      [23:11:47.902] [LOG]    Loading config ...
      [23:11:47.911] [LOG]    Loading module helpers ...
      [23:11:47.914] [LOG]    No helper found for module: alert.
      [23:11:48.008] [LOG]    Initializing new module helper ...
      [23:11:48.010] [LOG]    Module helper loaded: updatenotification
      [23:11:48.012] [LOG]    No helper found for module: clock.
      [23:11:48.875] [LOG]    Initializing new module helper ...
      [23:11:48.876] [LOG]    Module helper loaded: calendar
      [23:11:48.877] [LOG]    No helper found for module: currentweather.
      [23:11:48.878] [LOG]    No helper found for module: weatherforecast.
      [23:11:48.935] [LOG]    Initializing new module helper ...
      [23:11:48.936] [LOG]    Module helper loaded: newsfeed
      [23:11:48.937] [LOG]    All module helpers loaded.
      [23:11:48.939] [LOG]    Starting server on port 8080 ...
      [23:11:48.962] [LOG]    Server started ...
      [23:11:48.964] [LOG]    Connecting socket for: updatenotification
      [23:11:48.966] [LOG]    Connecting socket for: calendar
      [23:11:48.967] [LOG]    Starting node helper for: calendar
      [23:11:48.969] [LOG]    Connecting socket for: newsfeed
      [23:11:48.970] [LOG]    Starting module: newsfeed
      [23:11:48.971] [LOG]    Sockets connected & modules started ...
      [23:11:49.186] [LOG]    Launching application.
      [23:11:52.113] [LOG]    Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/XXX/basic.ics - Interval: 30000
      [23:11:52.265] [LOG]    Create new calendar fetcher for url: https://calendar.google.com/calendar/XXXX - Interval: 30000
      [23:11:52.331] [LOG]    Create new news fetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000
      
      
      
      posted in Troubleshooting
      H
      Hubschra01
    • RE: Fresh install but pm2 error

      I think there are no Errors…

      
      > magicmirror@2.10.1 start /home/pi/MagicMirror
      > ./run-start.sh
      
      [07:31:12.357] [LOG]    Starting MagicMirror: v2.10.1
      [07:31:12.375] [LOG]    Loading config ...
      [07:31:12.387] [LOG]    Loading module helpers ...
      [07:31:12.389] [LOG]    No helper found for module: alert.
      [07:31:12.465] [LOG]    Initializing new module helper ...
      [07:31:12.466] [LOG]    Module helper loaded: updatenotification
      [07:31:12.468] [LOG]    No helper found for module: clock.
      [07:31:13.307] [LOG]    Initializing new module helper ...
      [07:31:13.308] [LOG]    Module helper loaded: calendar
      [07:31:13.309] [LOG]    No helper found for module: currentweather.
      [07:31:13.310] [LOG]    No helper found for module: weatherforecast.
      [07:31:13.367] [LOG]    Initializing new module helper ...
      [07:31:13.368] [LOG]    Module helper loaded: newsfeed
      [07:31:13.369] [LOG]    All module helpers loaded.
      [07:31:13.371] [LOG]    Starting server on port 8080 ...
      [07:31:13.393] [LOG]    Server started ...
      [07:31:13.395] [LOG]    Connecting socket for: updatenotification
      [07:31:13.397] [LOG]    Connecting socket for: calendar
      [07:31:13.398] [LOG]    Starting node helper for: calendar
      [07:31:13.399] [LOG]    Connecting socket for: newsfeed
      [07:31:13.401] [LOG]    Starting module: newsfeed
      [07:31:13.401] [LOG]    Sockets connected & modules started ...
      [07:31:13.625] [LOG]    Launching application.
      [07:31:16.629] [LOG]    Create new calendar fetcher for url: https://calendar.google.com/calendarX - Interval: 30000
      [07:31:16.654] [LOG]    Create new calendar fetcher for url: https://calendar.google.com/XX - Interval: 30000
      [07:31:16.762] [LOG]    Create new news fetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000
      ^C
      
      

      But on the Mirror there is only the Desktop from Buster shown, not the Mirror Screen

      posted in Troubleshooting
      H
      Hubschra01
    • Fresh install but pm2 error

      Hi,
      I do a fresh install of the MagicMirror 2. The Mirror seem to work if i look in the logs of pm2 there is show an error.
      I searched the forum but found nothing suitableI.
      What kind of error is this?
      The Hardware is a Pi 3B+ with SD card.

      0 info it worked if it ends with ok
      1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
      2 info using npm@6.13.4
      3 info using node@v10.18.1
      4 verbose run-script [ 'prestart', 'start', 'poststart' ]
      5 info lifecycle magicmirror@2.10.1~prestart: magicmirror@2.10.1
      6 info lifecycle magicmirror@2.10.1~start: magicmirror@2.10.1
      7 verbose lifecycle magicmirror@2.10.1~start: unsafe-perm in lifecycle true
      8 verbose lifecycle magicmirror@2.10.1~start: PATH: /usr/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.10.1~start: CWD: /home/pi/MagicMirror
      10 silly lifecycle magicmirror@2.10.1~start: Args: [ '-c', './run-start.sh' ]
      11 silly lifecycle magicmirror@2.10.1~start: Returned: code: 1  signal: null
      12 info lifecycle magicmirror@2.10.1~start: Failed to exec start script
      13 verbose stack Error: magicmirror@2.10.1 start: `./run-start.sh`
      13 verbose stack Exit status 1
      13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
      13 verbose stack     at EventEmitter.emit (events.js:198:13)
      13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
      13 verbose stack     at ChildProcess.emit (events.js:198:13)
      13 verbose stack     at maybeClose (internal/child_process.js:982:16)
      13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
      14 verbose pkgid magicmirror@2.10.1
      15 verbose cwd /home/pi/MagicMirror
      16 verbose Linux 4.19.75-v7+
      17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
      18 verbose node v10.18.1
      19 verbose npm  v6.13.4
      20 error code ELIFECYCLE
      21 error errno 1
      22 error magicmirror@2.10.1 start: `./run-start.sh`
      22 error Exit status 1
      23 error Failed at the magicmirror@2.10.1 start script.
      23 error This is probably not a problem with npm. There is likely additional logging output above.
      24 verbose exit [ 1, true ]
      

      Thanks André

      posted in Troubleshooting
      H
      Hubschra01
    • RE: MMM-NOAA - Another Weather Module

      Hi
      I do the Gitpull to Update this modul but in the CLI indows i got this…

      Whoops! There was an uncaught exception...
      TypeError: Cannot read property 'length' of undefined
          at Object.parseForecast (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ow.js:179:42)
          at Request.request [as _callback] (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ow.js:51:17)
          at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22)
          at emitTwo (events.js:126:13)
          at Request.emit (events.js:214:7)
          at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10)
          at emitOne (events.js:116:13)
          at Request.emit (events.js:211:7)
          at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12)
          at Object.onceWrapper (events.js:313:30)
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      { coord: { lon: 10.36, lat: 53.42 },
        weather: 
         [ { id: 701, main: 'Mist', description: 'Trüb', icon: '50n' },
           { id: 300,
             main: 'Drizzle',
             description: 'Leichtes Nieseln',
             icon: '09n' } ],
        base: 'stations',
        main: { temp: 9, pressure: 1017, humidity: 87, temp_min: 9, temp_max: 9 },
        visibility: 7000,
        wind: { speed: 3.6, deg: 110 },
        clouds: { all: 75 },
        dt: 1541352000,
        sys: 
         { type: 1,
           id: 4883,
           message: 0.004,
           country: 'DE',
           sunrise: 1541312654,
           sunset: 1541345954 },
        id: 3209070,
        name: 'Marschacht',
        cod: 200 }
      Whoops! There was an uncaught exception...
      TypeError: Cannot read property 'pollution' of undefined
          at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ow.js:264:35)
          at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ow.js:111:27)
          at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22)
          at emitTwo (events.js:126:13)
          at Request.emit (events.js:214:7)
          at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10)
          at emitOne (events.js:116:13)
          at Request.emit (events.js:211:7)
          at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12)
          at Object.onceWrapper (events.js:313:30)
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      Shutting down server...
      
      

      I do not find the icon: '50n' and icon: '09n' in the images folder !?!

      posted in System
      H
      Hubschra01
    • 1 / 1