Read the statement by Michael Teeuw here.
Black screen after starting
-
@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
-
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 thispm2 restart mm
-
@lavolp3 Ok, I will try tonight. Thank you and then give feedback
-
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
-
@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
-
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;}
-
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
-
@cyrus1337 better to use 0.0.0.0, which means any …
Then it won’t fail again if the address changes
-
But do not I have to enter the IP to run the Remte Module or the MMM NetworkScanner?
I still have another problem :) I do not know if I would like to open a new topic or if I can place it here.
It’s about the module email-mirror, it always shows only “load”, I don’t know what I’m doing wrong
-
@cyrus1337 said in Black screen after starting:
But do not I have to enter the IP to run the Remte Module or the MMM NetworkScanner?
The “listening” address in the config does not affect the behaviour of the other modules. It does not determine the IP of your mirror!
The other modules get the mirror’s IP from somewhere else, don’t worry.
The address e’re talking about here is there to determine on which network device to listen (if I understand correctly!).
0.0.0.0 specifies “use them all”
You won’t do any harm using that.