• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Black screen after starting

Scheduled Pinned Locked Moved Unsolved Troubleshooting
13 Posts 4 Posters 11.0k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    CyruS1337 Project Sponsor
    last edited by Oct 30, 2018, 4:17 PM

    Hello everybody

    When I start the PI I see the desktop and after 2-3 seconds later the MagicMirror starts. The screen just stays black. The MaigcMirror has worked for 2 months without any problems, that problem is only 2 days.
    I can also post logs here if you tell me which logs are relevant. I can access the PI via putty.

    Thank you very much for your help

    B 1 Reply Last reply Oct 31, 2018, 2:55 AM Reply Quote 0
    • B Offline
      bhepler Module Developer @CyruS1337
      last edited by Oct 31, 2018, 2:55 AM

      @cyrus1337 - Let’s start with the mirror logs. Try pm2 log MagicMirror and let us know what it shows.

      1 Reply Last reply Reply Quote 0
      • C Offline
        CyruS1337 Project Sponsor
        last edited by Oct 31, 2018, 5:29 AM

        @bhepler said in Black screen after starting:

        cyrus1337 - Let’s start with the mirror logs. Try pm2 log MagicMirror and let us know what it shows.

        Ok, thanks for the help. I will post the logs in the evening

        1 Reply Last reply Reply Quote 0
        • L Offline
          lavolp3 Module Developer
          last edited by Oct 31, 2018, 8:14 AM

          Also, it’s always important to check the config file. Do a

          npm run config:check
          

          inside the MagicMirror folder.
          And then, I would always test to just restart it, last time I had the problem it was magically solved by this

          pm2 restart mm
          

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          C 1 Reply Last reply Oct 31, 2018, 10:32 AM Reply Quote 0
          • C Offline
            CyruS1337 Project Sponsor @lavolp3
            last edited by Oct 31, 2018, 10:32 AM

            @lavolp3 Ok, I will try tonight. Thank you and then give feedback

            1 Reply Last reply Reply Quote 0
            • C Offline
              CyruS1337 Project Sponsor
              last edited by Nov 2, 2018, 3:16 PM

              So, when I run npm run this comes:

              > magicmirror@2.5.0 config:check /home/pi/MagicMirror
              > node tests/configs/check_config.js
              
              Checking file...  /home/pi/MagicMirror/config/config.js
              Your configuration file doesn't contain syntax errors :)
              
              

              Here is the pm2 log:

              [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
              /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
              0|MagicMir |     at Object._errnoException (util.js:1024:11)
              0|MagicMir |     at _exceptionWithHostPort (util.js:1046:20)
              0|MagicMir |     at Server.setupListenHandle [as _listen2] (net.js:1334:19)
              0|MagicMir |     at listenInCluster (net.js:1392:12)
              0|MagicMir |     at doListen (net.js:1501:7)
              0|MagicMir |     at _combinedTickCallback (internal/process/next_tick.js:141:11)
              0|MagicMir |     at process._tickCallback (internal/process/next_tick.js:180:9)
              0|MagicMir |     at Function.Module.runMain (module.js:685:11)
              0|MagicMir |     at startup (bootstrap_node.js:196:16)
              0|MagicMir |     at bootstrap_node.js:622:3
              0|MagicMir |   code: 'EADDRNOTAVAIL',
              0|MagicMir |   errno: 'EADDRNOTAVAIL',
              0|MagicMir |   syscall: 'listen',
              0|MagicMir |   address: '192.168.1.154',
              0|MagicMir |   port: 8080 }
              
              /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
              0|MagicMir | Connecting socket for: newsfeed
              0|MagicMir | Starting module: newsfeed
              0|MagicMir | Connecting socket for: MMM-GoogleMapsTraffic
              0|MagicMir | Starting node_helper for module: MMM-GoogleMapsTraffic
              0|MagicMir | Connecting socket for: MMM-SoccerLiveScore
              0|MagicMir | MMM-SoccerLiveScore helper started...
              0|MagicMir | Connecting socket for: MMM-MyCalendar
              0|MagicMir | Starting node helper for: MMM-MyCalendar
              0|MagicMir | Connecting socket for: email
              0|MagicMir | email helper started ...
              0|MagicMir | Sockets connected & modules started ...
              0|MagicMir | Whoops! There was an uncaught exception...
              0|MagicMir | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              0|MagicMir | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
              0|MagicMir | Launching application.
              
              

              pm2 restart MagicMirror brought no success

              1 Reply Last reply Reply Quote 0
              • S Away
                sdetweil
                last edited by Nov 2, 2018, 3:18 PM

                @cyrus1337 said in Black screen after starting:

                EADDRNOTAVAIL

                says that the mm config is trying to listen on a specific address, which is NOT the same as on the machine MM is running on…

                show us your config.js

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • C Offline
                  CyruS1337 Project Sponsor
                  last edited by Nov 2, 2018, 3:23 PM

                  Here is my config

                  /* 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: "192.168.1.154", // 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: ["127.0.0.1", "192.168.1.0/24", "::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"],
                  
                  	language: "de",
                  	timeFormat: 24,
                  	units: "metric",
                  
                  	
                  	modules: [
                  		{
                  			module: "alert",
                  		},
                  		{
                  			module: "updatenotification",
                  			position: "top_bar"
                  		},
                  		{
                  			module: "clock",
                  			position: "top_left"
                  		},
                  			
                  		/*{
                  			module: "compliments",
                  			position: "lower_third"
                  		},*/
                  
                  		{
                  		module: 'MMM-SystemStats',
                  		position: 'top_right', // This can be any of the regions.
                  		classes: 'small dimmed', // Add your own styling. Optional.
                  		config: {
                  			updateInterval: 10000,
                  			animationSpeed: 0,
                  			align: 'right', // align labels
                  			//header: 'System Stats', // This is optional
                  		},
                  	},
                  	
                  		
                  {
                    module: 'MMM-MyCommute',
                    position: 'top_left',
                    header: 'Verkehrssituation',
                    config: {
                      apikey: 'API',
                      origin: 'Dingerten 21, 4624 Härkingen',
                      startTime: '00:00',
                      endTime: '23:59',
                  	travelTimeFormat: 'h[h]:m[min]',
                  	colorCodeTravelTime: true,
                  	showSummary: true,
                      hideDays: [0,6],
                      destinations: [
                  	        {
                          destination: 'Südstrasse 5, 8952 Schlieren',
                          label: 'Adriano Arbeit',
                  		mode: 'driving',
                          color: '#82E5AA',
                  		startTime: '05:00',
                  		endTime: '08:00',
                  		alternatives: true,
                  		waypoints: 'via:Bernerstrasse Süd, 8048 Zürich'
                  		
                        },
                        {
                          destination: 'Zugerstrasse 13, 6030 Ebikon',
                          label: 'Ebikon',
                  		startTime: '05:00',
                  		endTime: '08:00',
                  		alternatives: 'ture'
                        },
                  	  
                      ]
                    }
                  },	
                  
                  		{
                  			module: "newsfeed",
                  			position: "bottom_center",
                  			config: {
                  				feeds: [
                  					{
                  						title: "20min Sport",
                  						url: "https://api.20min.ch/rss/view/67",
                  						
                   				    }
                  				],
                  				showSourceTitle: true,
                  				showPublishDate: true
                  			}
                  		},
                  		{
                  			module: "newsfeed",
                  			position: "bottom_center",
                  			config: {
                  				feeds: [
                  					{
                  						title: "20min Front",
                  						url: "https://api.20min.ch/rss/view/1",
                  					}
                  				],
                  				showSourceTitle: true,
                  				showPublishDate: true
                  			}
                  		},
                  	
                  		
                  {
                              module: 'MMM-GoogleMapsTraffic',
                              position: 'bottom_center',
                              config: {
                                  key: 'API',
                                  lat: 47.3855987,
                                  lng: 8.1395006,
                                  height: '450px',
                                  width: '1000px',
                  				zoom: 10,
                              }			
                  			
                          },
                  		
                  {
                          module: 'MMM-PIR-Sensor',
                          config: {
                  		powerSavingDelay: 5,
                  		powerSaving: true,
                  		sensorPin: 22,/*
                  		powerSavingMessage: "Monitor will be turn Off by PIR module",
                  		sensorState: 1,		
                  		alwaysOffState: 1,
                  		powerSaving: true,
                  		powerSavingNotification: false,
                  		*/
                              }
                       },
                  	
                  					/*{
                  		module: 'MMM-ImageSlideshow',
                  		position: 'middle_center',
                  		config: {
                  			imagePaths: ['modules/MMM-ImageSlideshow/exampleImages'],
                  			fixedImageWidth: '500',
                  			fixedImageHeight: '350',
                  			slideshowSpeed: '25000',
                  			randomizeImageOrder: true,
                  		}
                  	},*/	
                  			
                  		
                  		{
                  	module: 'MMM-SoccerLiveScore',
                  	position: 'top_right',
                  	header: 'Fussball Rangliste',
                  	config: {
                  		leagues: [215,399,1],
                          showNames: true,
                          showLogos: true,
                          displayTime: 60 * 1000,
                          showTables: true
                  	}
                  },
                  
                  		
                   {
                  		module: "MMM-MyCalendar",
                  		position: "top_left",	// This can be any of the regions. Best results in left or right regions.
                  		header: 'Kalender Adri',
                        config: {
                          colored: true,
                  		maxTitleLength: 30, 
                  		maximumEntries: 5,
                  		timeFormat: "HH:mm",
                  		dateFormat: "DD:MM:YYYY",
                  		joiningWord: "um",
                  		calendars: [
                  		{
                  			url: 'ics',
                  			color: "#ff5070",
                  			symbol: 'calendar',
                  			auth: {
                  			    user: 'username',
                  			    pass: 'superstrongpassword',
                  			    method: 'basic'
                  			}
                  		},
                  
                  
                  		],
                  }
                  	},
                  {
                  		module: 'email',
                                  position: 'top_left',
                                  header: 'Email',
                                  config: {
                                      accounts: [
                  
                                          {
                                              user: 'user',
                                              password: 'pw',
                                              host: 'imap.gmail.com',
                                              port: 993,
                                              tls: true,
                                              authTimeout: 50000,
                                              numberOfEmails: 2,
                                          }
                                      ],
                                      fade: true,
                                      maxCharacters: 30
                                  }
                  	},
                  
                  
                  
                  
                  
                  	
                  /*{
                      module: 'MMM-forecast-io',
                      position: 'top_left',  // This can be any of the regions.
                      config: {
                        // See 'Configuration options' for more information.
                  	  apiKey: 'API', // Dark Sky API key.
                        // Only required if geolocation doesn't work:
                        latitude:   47.3097176,
                        longitude: 7.8106514	 
                      }
                    },*/  
                  
                  
                  	
                  	
                  	]
                  
                  };
                  
                  /*************** DO NOT EDIT THE LINE BELOW ***************/
                  if (typeof module !== "undefined") {module.exports = config;}
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    CyruS1337 Project Sponsor
                    last edited by Nov 2, 2018, 3:52 PM

                    aaaaaaaaaaaaaa I found it, thanks to your note.

                    My router has given the PI a new IP, now I have changed the new IP in the config and behold, he works again !!!

                    Thank you so much @sdetweil

                    S 1 Reply Last reply Nov 2, 2018, 6:56 PM Reply Quote 0
                    • S Away
                      sdetweil @CyruS1337
                      last edited by Nov 2, 2018, 6:56 PM

                      @cyrus1337 better to use 0.0.0.0, which means any …

                      Then it won’t fail again if the address changes

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        3/13
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy