@sdetweil cheers, starting from scratch again and adding each module one by one, and running after every minor change. Should allow me to catch a problem before it becomes one.
Read the statement by Michael Teeuw here.
Best posts made by ljhig
-
RE: Black screen after adding modules.
-
Black screen after adding modules.
Hi all,
Forgive my inept attempt to explain the problems I’m encountering, I have every intention to learn.
I am using a Pi 3b with a clean install from a noobs SD.
I installed MagicMirror following the website instructions and the default config works fine. Because of my screen size I wanted to edit the layout to cycle modules in the centre whilst keeping the clock and compliments static.
I have added the modules following instructions and included them in the config file, yet when I run the Magic Mirror I get a black screen.
/* Magic Mirror Config Sample * * By Michael Teeuw https://michaelteeuw.nl * MIT Licensed. * * For more information on how you can configure this file * see https://docs.magicmirror.builders/getting-started/configuration.html#general * and https://docs.magicmirror.builders/modules/configuration.html */ let 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 or empty, is "localhost" port: 8080, zoom: 0.9, basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy // you must set the sub path here. basePath must end with a / ipWhitelist: ["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"], useHttps: false, // Support HTTPS or not, default "false" will use HTTP httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true language: "en", locale: "en-UK", logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging timeFormat: 24, units: "metric", // serverOnly: true/false/"local" , // local for armv6l processors, default // starts serveronly and then starts chrome browser // false, default for all NON-armv6l devices // true, force serveronly mode, because you want to.. no UI on this device modules: [ { module: 'MMM-Carousel', config: { transitionInterval: 20000, ignoreModules: [], mode: 'positional', middle_centre: {enabled: true} } }, { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_centre" }, { module: "compliments", position: "bottom_centre" }, { module: 'MagicMirror-QuoteCatalog', header: 'The Quote Catalog', position: 'middle_centre', config: { timeFormat: 3600 } }, { module: "MMM-NowPlayingOnSpotify", position: "middle_centre", config: { clientID: "removed for post", clientSecret: "removed for post", accessToken: "removed for post ", refreshToken: "removed for post" } }, { module: "weather", position: "middle_centre", config: { weatherProvider: "openweathermap", type: "current", location: "New York", locationID: "2644210", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "removed for post" } }, { module: "weather", position: "middle_centre", header: "Weather Forecast", config: { weatherProvider: "openweathermap", type: "forecast", location: "New York", locationID: "2644210", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "removed for post" } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
Apologies if it’s sloppy I’m working on an iPad using VNC.
pi@raspberrypi:~/MagicMirror $ npm run start npm WARN npm npm does not support Node.js v10.24.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ > magicmirror@2.16.0 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [03.10.2021 12:05.53.187] [LOG] Starting MagicMirror: v2.16.0 [03.10.2021 12:05.53.196] [LOG] Loading config ... [03.10.2021 12:05.53.210] [LOG] Loading module helpers ... [03.10.2021 12:05.53.214] [LOG] No helper found for module: MMM-Carousel. [03.10.2021 12:05.53.216] [LOG] No helper found for module: alert. [03.10.2021 12:05.53.561] [LOG] Initializing new module helper ... [03.10.2021 12:05.53.563] [LOG] Module helper loaded: updatenotification [03.10.2021 12:05.53.564] [LOG] No helper found for module: clock. [03.10.2021 12:05.53.566] [LOG] No helper found for module: compliments. [03.10.2021 12:05.53.568] [LOG] No helper found for module: MagicMirror-QuoteCatalog. [03.10.2021 12:05.54.480] [LOG] Initializing new module helper ... [03.10.2021 12:05.54.482] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [03.10.2021 12:05.54.484] [LOG] No helper found for module: weather. [03.10.2021 12:05.54.486] [LOG] All module helpers loaded. [03.10.2021 12:05.54.680] [LOG] Starting server on port 8080 ... [03.10.2021 12:05.54.706] [LOG] Server started ... [03.10.2021 12:05.54.709] [LOG] Connecting socket for: updatenotification [03.10.2021 12:05.54.711] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify [03.10.2021 12:05.54.712] [LOG] Sockets connected & modules started ... [03.10.2021 12:05.55.131] [LOG] Launching application. [03.10.2021 12:05.58.030] [ERROR] (node:2398) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [03.10.2021 12:05.58.317] [LOG] Refreshed access token because it has expired. Expired at: 12:05:58 now is: 12:05:58 [03.10.2021 12:06.01.802] [LOG] Shutting down server... [03.10.2021 12:06.01.805] [LOG] Stopping module helper: updatenotification [03.10.2021 12:06.01.806] [LOG] Stopping module helper: MMM-NowPlayingOnSpotify pi@raspberrypi:~/MagicMirror $
Latest posts made by ljhig
-
RE: Black screen after adding modules.
@sdetweil thank you! I know I’ve been an absolute pain but just know that I really appreciate experience users offering assistance to simple folk like myself. Have a brilliant day.
-
RE: Black screen after adding modules.
@sdetweil I have used your magic mirror auto start script, how do I disable/enable it so I can access the magic mirror?
Now when I type CTRL+Q it automatically reopens after 5-10 seconds.
-
RE: Black screen after adding modules.
@sdetweil cheers, starting from scratch again and adding each module one by one, and running after every minor change. Should allow me to catch a problem before it becomes one.
-
RE: Black screen after adding modules.
@sdetweil I will eventually use your script once I’ve got this working, I think it’s really useful and will fit my purpose brilliantly. Gift for my sister who is less tech savvy then me!
pi@raspberrypi:~/MagicMirror $ npm run start > magicmirror@2.17.1 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [03.10.2021 17:34.32.637] [LOG] Starting MagicMirror: v2.17.1 [03.10.2021 17:34.32.650] [LOG] Loading config ... [03.10.2021 17:34.32.663] [LOG] Loading module helpers ... [03.10.2021 17:34.32.667] [LOG] No helper found for module: MMM-Carousel. [03.10.2021 17:34.32.669] [LOG] No helper found for module: alert. [03.10.2021 17:34.32.709] [LOG] Initializing new module helper ... [03.10.2021 17:34.32.712] [LOG] Module helper loaded: updatenotification [03.10.2021 17:34.32.715] [LOG] No helper found for module: clock. [03.10.2021 17:34.32.716] [LOG] No helper found for module: compliments. [03.10.2021 17:34.32.718] [LOG] No helper found for module: MagicMirror-QuoteCatalog. [03.10.2021 17:34.33.558] [LOG] Initializing new module helper ... [03.10.2021 17:34.33.559] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [03.10.2021 17:34.33.561] [LOG] No helper found for module: weather. [03.10.2021 17:34.33.562] [LOG] All module helpers loaded. [03.10.2021 17:34.33.754] [LOG] Starting server on port 8080 ... [03.10.2021 17:34.33.798] [LOG] Server started ... [03.10.2021 17:34.33.801] [LOG] Connecting socket for: updatenotification [03.10.2021 17:34.33.803] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify [03.10.2021 17:34.33.805] [LOG] Sockets connected & modules started ... [03.10.2021 17:34.34.230] [LOG] Launching application. [03.10.2021 17:34.37.412] [ERROR] (node:1813) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use `electron --trace-deprecation ...` to show where the warning was created) [03.10.2021 17:34.37.791] [LOG] Refreshed access token because it has expired. Expired at: 17:34:37 now is: 17:34:37 [03.10.2021 17:34.42.539] [LOG] Shutting down server... [03.10.2021 17:34.42.541] [LOG] Stopping module helper: updatenotification [03.10.2021 17:34.42.542] [LOG] Stopping module helper: MMM-NowPlayingOnSpotify
-
RE: Black screen after adding modules.
@sdetweil I don’t believe I use PM2, I type:
cd MagicMirror/ npm run start
That works for the original config but not the adjusted one. Should I learn how to install/use pm2 to launch to find out what the missing library problem is?
-
RE: Black screen after adding modules.
@sdetweil said in Black screen after adding modules.:
u will have to use force as the parm instead of apply
again, apologies for my ignorance but how would I do this? node has been updated and ran your update script buy still getting black screen.
-
RE: Black screen after adding modules.
@sdetweil thank you for taking the time to reply, I appreciate it.
I’m new to the forum too btw, so apologies if I’ve posted in the wrong place/generic problem (due to downvotes).
I will follow your instruction as soon as I’m home.
Thanks again :)
-
Black screen after adding modules.
Hi all,
Forgive my inept attempt to explain the problems I’m encountering, I have every intention to learn.
I am using a Pi 3b with a clean install from a noobs SD.
I installed MagicMirror following the website instructions and the default config works fine. Because of my screen size I wanted to edit the layout to cycle modules in the centre whilst keeping the clock and compliments static.
I have added the modules following instructions and included them in the config file, yet when I run the Magic Mirror I get a black screen.
/* Magic Mirror Config Sample * * By Michael Teeuw https://michaelteeuw.nl * MIT Licensed. * * For more information on how you can configure this file * see https://docs.magicmirror.builders/getting-started/configuration.html#general * and https://docs.magicmirror.builders/modules/configuration.html */ let 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 or empty, is "localhost" port: 8080, zoom: 0.9, basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy // you must set the sub path here. basePath must end with a / ipWhitelist: ["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"], useHttps: false, // Support HTTPS or not, default "false" will use HTTP httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true language: "en", locale: "en-UK", logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging timeFormat: 24, units: "metric", // serverOnly: true/false/"local" , // local for armv6l processors, default // starts serveronly and then starts chrome browser // false, default for all NON-armv6l devices // true, force serveronly mode, because you want to.. no UI on this device modules: [ { module: 'MMM-Carousel', config: { transitionInterval: 20000, ignoreModules: [], mode: 'positional', middle_centre: {enabled: true} } }, { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_centre" }, { module: "compliments", position: "bottom_centre" }, { module: 'MagicMirror-QuoteCatalog', header: 'The Quote Catalog', position: 'middle_centre', config: { timeFormat: 3600 } }, { module: "MMM-NowPlayingOnSpotify", position: "middle_centre", config: { clientID: "removed for post", clientSecret: "removed for post", accessToken: "removed for post ", refreshToken: "removed for post" } }, { module: "weather", position: "middle_centre", config: { weatherProvider: "openweathermap", type: "current", location: "New York", locationID: "2644210", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "removed for post" } }, { module: "weather", position: "middle_centre", header: "Weather Forecast", config: { weatherProvider: "openweathermap", type: "forecast", location: "New York", locationID: "2644210", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "removed for post" } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
Apologies if it’s sloppy I’m working on an iPad using VNC.
pi@raspberrypi:~/MagicMirror $ npm run start npm WARN npm npm does not support Node.js v10.24.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ > magicmirror@2.16.0 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [03.10.2021 12:05.53.187] [LOG] Starting MagicMirror: v2.16.0 [03.10.2021 12:05.53.196] [LOG] Loading config ... [03.10.2021 12:05.53.210] [LOG] Loading module helpers ... [03.10.2021 12:05.53.214] [LOG] No helper found for module: MMM-Carousel. [03.10.2021 12:05.53.216] [LOG] No helper found for module: alert. [03.10.2021 12:05.53.561] [LOG] Initializing new module helper ... [03.10.2021 12:05.53.563] [LOG] Module helper loaded: updatenotification [03.10.2021 12:05.53.564] [LOG] No helper found for module: clock. [03.10.2021 12:05.53.566] [LOG] No helper found for module: compliments. [03.10.2021 12:05.53.568] [LOG] No helper found for module: MagicMirror-QuoteCatalog. [03.10.2021 12:05.54.480] [LOG] Initializing new module helper ... [03.10.2021 12:05.54.482] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [03.10.2021 12:05.54.484] [LOG] No helper found for module: weather. [03.10.2021 12:05.54.486] [LOG] All module helpers loaded. [03.10.2021 12:05.54.680] [LOG] Starting server on port 8080 ... [03.10.2021 12:05.54.706] [LOG] Server started ... [03.10.2021 12:05.54.709] [LOG] Connecting socket for: updatenotification [03.10.2021 12:05.54.711] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify [03.10.2021 12:05.54.712] [LOG] Sockets connected & modules started ... [03.10.2021 12:05.55.131] [LOG] Launching application. [03.10.2021 12:05.58.030] [ERROR] (node:2398) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [03.10.2021 12:05.58.317] [LOG] Refreshed access token because it has expired. Expired at: 12:05:58 now is: 12:05:58 [03.10.2021 12:06.01.802] [LOG] Shutting down server... [03.10.2021 12:06.01.805] [LOG] Stopping module helper: updatenotification [03.10.2021 12:06.01.806] [LOG] Stopping module helper: MMM-NowPlayingOnSpotify pi@raspberrypi:~/MagicMirror $