MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-NYC-Transit Module (Black Screen)

    Troubleshooting
    2
    20
    201
    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.
    • J
      JediJah last edited by

      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.

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @JediJah last edited by

        @JediJah open the developers console, ctrl-shift-i on the mirror keyboard, select the tab labeled console, and put nyc in the filter field

        are there any errors shown, typically red text

        Sam

        Create a working config
        How to add modules

        J 1 Reply Last reply Reply Quote 0
        • J
          JediJah @sdetweil last edited by

          @sdetweil Thanks for the response. There are no errors shown.

          S J 2 Replies Last reply Reply Quote 0
          • S
            sdetweil @JediJah last edited by

            @JediJah ok, take the nyc out of the filter field… black screen means the UI died… so its gotta be there somewhere

            if u add

            disabled: true,

            to the module definition
            right after the module name

            {
             module:'MMM-NYC-Transit',
             disabled: true,                                 // add this line
             ...
             config: {
             }
            }
            

            does the black screen go away?

            Sam

            Create a working config
            How to add modules

            J 1 Reply Last reply Reply Quote 0
            • J
              JediJah @JediJah last edited by

              I realized I have since removed the config. I will re-add and check again.

              1 Reply Last reply Reply Quote 0
              • J
                JediJah @sdetweil last edited by

                @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

                S 1 Reply Last reply Reply Quote 0
                • S
                  sdetweil @JediJah last edited by sdetweil

                  @JediJah it is not disabled according to the picture
                  and the screen is not black

                  if it were disabled, NOTHING about the module would show…

                  same as if that entry was not in config.js at all

                  Sam

                  Create a working config
                  How to add modules

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    JediJah @sdetweil last edited by

                    @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.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sdetweil @JediJah last edited by sdetweil

                      @JediJah said in MMM-NYC-Transit Module (Black Screen):

                                disabled: "true",
                      

                      no, i said

                      disabled: true
                      

                      no quotes

                      how do you start MM? using pm2 or manually

                      Sam

                      Create a working config
                      How to add modules

                      J 2 Replies Last reply Reply Quote 0
                      • J
                        JediJah @sdetweil last edited by

                        @sdetweil Aww OK will adjust

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy