@sdetweil Thank you immensely for you help. It is running now.
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-NYC-Transit Module (Black Screen)
-
RE: MMM-NYC-Transit Module (Black Screen)
@sdetweil
Looks like I ran npm install on modules dir.pi@MagicMirror2:~/MagicMirror/modules $ git clone https://github.com/Elaniobro/MMM-nyc-transit.git Cloning into 'MMM-nyc-transit'... remote: Enumerating objects: 67, done. remote: Counting objects: 100% (67/67), done. remote: Compressing objects: 100% (58/58), done. remote: Total 176 (delta 34), reused 19 (delta 7), pack-reused 109 Receiving objects: 100% (176/176), 559.15 KiB | 649.00 KiB/s, done. Resolving deltas: 100% (93/93), done. pi@MagicMirror2:~/MagicMirror/modules $ npm installI will correct as you noted.
-
RE: MMM-NYC-Transit Module (Black Screen)
@sdetweil said in MMM-NYC-Transit Module (Black Screen):
npm start
Looks like some files might be missing.
Here is a dump of messages:[2020-05-22 20:49:37.148] [ERROR] App threw an error during load [2020-05-22 20:49:37.150] [ERROR] Error: Cannot find module 'mta-realtime-subway-departures' Require stack: - /home/pi/MagicMirror/modules/MMM-nyc-transit/node_helper.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at Module._resolveFilename (internal/modules/cjs/loader.js:627:15) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Function.Module._load (internal/modules/cjs/loader.js:531:27) at Module.require (internal/modules/cjs/loader.js:685:19) at require (internal/modules/cjs/helpers.js:16:16) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-nyc-transit/node_helper.js:8:24) at Module._compile (internal/modules/cjs/loader.js:786:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10) at Module.load (internal/modules/cjs/loader.js:645:32) [2020-05-22 20:49:37.155] [LOG] Whoops! There was an uncaught exception... [2020-05-22 20:49:37.158] [ERROR] Error: Cannot find module 'mta-realtime-subway-departures' Require stack: - /home/pi/MagicMirror/modules/MMM-nyc-transit/node_helper.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at Module._resolveFilename (internal/modules/cjs/loader.js:627:15) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Function.Module._load (internal/modules/cjs/loader.js:531:27) at Module.require (internal/modules/cjs/loader.js:685:19) at require (internal/modules/cjs/helpers.js:16:16) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-nyc-transit/node_helper.js:8:24) at Module._compile (internal/modules/cjs/loader.js:786:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10) at Module.load (internal/modules/cjs/loader.js:645:32) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/pi/MagicMirror/modules/MMM-nyc-transit/node_helper.js', '/home/pi/MagicMirror/js/app.js', '/home/pi/MagicMirror/js/electron.js', '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', undefined ] } [2020-05-22 20:49:37.173] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [2020-05-22 20:49:37.175] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [2020-05-22 20:49:37.336] [LOG] Launching application.I did clone the repo as required??
-
RE: MMM-NYC-Transit Module (Black Screen)
@sdetweil Yeah that was my bad… the mirror loads now without the module…
:man_facepalming_medium-dark_skin_tone: -
RE: MMM-NYC-Transit Module (Black Screen)
@sdetweil I figured thats why I said it was weird.
This is what the module looked like in my config
{ module: 'MMM-nyc-transit', disabled: "true", position: "bottom_right", header: "Next Train", config: { apiKey: '9b76b0b756f7f9a76d4fe883075c00cf', displayType: 'list', mtaType: 'train', stations: [ { stationId: 95, walkingTime: 5, dir: { upTown: false, downTown: true } }, { stationId: 95, walkingTime: 5, dir: { upTown: true, downTown: false } } ], updateInterval: 300000 } },These are the steps I just tried…
recreated original circumstances that caused black screen (added Module to config) and yes the black screen still exist.I assume that means there is issue with module config settings.
I tried to launch the Dev console, but it did not launch in same page as black mirror screen but a white page.
I will wait for your response before making changes to config.js file again.
-
RE: MMM-NYC-Transit Module (Black Screen)
@sdetweil I added the module to config, disabled!
The Mirror loads as normal.
Something I find weird is even with the module disabled, its header is still shown.
https://share.icloud.com/photos/09o6PENxnrT-_fTLvp8JN2mhw -
RE: MMM-NYC-Transit Module (Black Screen)
I realized I have since removed the config. I will re-add and check again.
-
RE: MMM-NYC-Transit Module (Black Screen)
@sdetweil Thanks for the response. There are no errors shown.
-
MMM-NYC-Transit Module (Black Screen)
Hi All,
I am getting a black screen after installing this module. Can I get some help reviewing what might have caused it. This is a new install on a RPI 3.
I read this post thinking I may get insight into issue but to no avail. I even registered for a new API key and that wasn’t it.This is my current config.
/* Magic Mirror Config JediJah * * 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.90", // 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: [], // 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: "en", timeFormat: 12, units: "imperial", modules: [ { module: "alert", }, { module: "stocks", position: "top_bar", config: { stocks: "ACB,AMC,AMD,AAPL,BPFH,JBLU,SQ,TSLA,XXII", // stock symbols updateInterval: 37000 // update interval in milliseconds } }, { module: "clock", position: "bottom_left" }, { module: "calendar", header: "Upcoming Events", position: "bottom_left", config: { //maximumNumberOfDays: "15", maximumEntries: "8", colored: "true", coloredSymbolOnly: "true", calendars: [ // "MM Calendar" { symbol: "jedi", color: "#0080FF", url: "webcal://p27-calendars.icloud.com/published/2/pUk76zgtLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL" }, // "Family Calendar" { symbol: "users", color: "#FFFF33", url: "webcal://p27-calendars.icloud.com/published/2/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" } ] } }, { module: "compliments", position: "upper_third", config: { compliments: { anytime: [ "Hey there sexy!" ], morning: [ "It's a beautiful day \nIn Zamunda!", "Enjoy your day!", "How was your sleep?" ], afternoon: [ "Hello!...", "You look sexy!", "Looking good today!" ], evening: [ "Early to Bed, Early to Rise!", "You look nice!", "Hi, sexy!" ] } } }, { module: "currentweather", position: "bottom_right", config: { location: "Brooklyn", locationID: "5110302", //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city appid: "54220318a8f6202d9b47dbccf5102fbe" } }, { module: "weatherforecast", position: "bottom_right", header: "Weather Forecast", config: { location: "New York", locationID: "5110302", //ID from https://openweathermap.org/city appid: "54220318a8f6202d9b47dbccf5102fbe" } }, { module: "newsfeed", position: "top_bar", config: { feeds: [ { title: "The Verge", url: "http://www.theverge.com/rss/full.xml" }, { title: "9to5mac", url: "http://www.9to5mac.com/feed" } ], showSourceTitle: true, showPublishDate: true } }, { module: "updatenotification", position: "bottom_left" }, { module: 'MMM-nyc-transit', position: "bottom_right", header: "Next Train", config: { apiKey: '69c0a4199031a6dd60c00c3da86eae4c', displayType: 'list', mtaType: 'train', stations: [ { stationId: 95, walkingTime: 5, dir: { upTown: false, downTown: true } }, { stationId: 95, walkingTime: 5, dir: { upTown: true, downTown: false } } ], updateInterval: 300000 } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}Any help or insight will be most appreciated.
-
RE: How to post code on the forum - For absolute beginners
Thanks for this post. I am about to put it to good use.
-
RE: Introduce yourself!
Hi All,
I’m Shonari. I’m 34 and live in Brooklyn, NY. I work at a startup building cellphone charging kiosks. Love to make and have a new found affinity for Raspberry Pi. Made a MagicMirror last December and recently decided to upgrade it to a Pi3 and MagicMirror2. Love the modules. Thanks to all those who contribute their time to this great project.Cheers,