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.

    MMM-NYC-Transit Module (Black Screen)

    Scheduled Pinned Locked Moved Troubleshooting
    20 Posts 2 Posters 6.0k Views 2 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.
    • S Offline
      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

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        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 Offline
          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

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil Aww OK will adjust

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

              @sdetweil pm2

              After adding disabled: true

              Got "Please create a config file " error

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

                @JediJah come on , the original instructions said

                disabled: true, 
                

                just about any new line requires a comma at the end

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil Yeah that was my bad… the mirror loads now without the module…
                  :man_facepalming_medium-dark_skin_tone:

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

                    @JediJah how do you start MM? using pm2 or manually

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil I use pm2

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

                        @JediJah ok, no stop mm using pm2

                        fix the config.js,
                        change the disabled to false

                        disabled: false,
                        

                        go to the MagicMirror folder with a terminal window or ssh

                        cd ~/MagicMirror
                        npm start 
                        

                        watch the messages

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

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

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

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

                            Cannot find module ‘mta-realtime-subway-departures’

                            but it looks like you didn’t follow the module install instructions

                            1. clone this repo with the following command: git clone https://github.com/Elaniobro/MMM-nyc-transit.git
                            2. install all the npm modules with either yarn install or npm install
                            

                            to do 2, you need to change into the module folder

                            git clone ......
                            cd MMM-nyc-transit
                            npm install
                            

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

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

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

                              I will correct as you noted.

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

                                @sdetweil Thank you immensely for you help. It is running now.

                                1 Reply Last reply Reply Quote 0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                • 1 / 1
                                • First post
                                  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