edward-shen / MMM-pages

Add pages to your MagicMirror²!
MIT License
107 stars 30 forks source link

Doesn't work with MMM-TFL Arrivals #25

Closed sparx266 closed 3 years ago

sparx266 commented 4 years ago

Hello

The MMM-TFL-Arrivals doesn't show anything when run in MMM-Pages. When run without MMM-Pages it works fine.

The config looks like this:

modules: [

            {module: 'MMM-pages',
            config: {
            modules:
                [[ "MMM-TFL-Arrivals"],
                 [ ""],
                 [ ""],
                 [ ""],
                 [ ""],
                 [ ""],
                 [  ""],
                 [ "" ],                     
                 [ ""],
                 [ ""]],
            fixed: ["MMM-page-indicator"],
            rotationTime:"0",
            }
            },

              {
      module: 'MMM-TFL-Arrivals',
          position: 'top_left',
          header: "Bus Arrivals",
               config: {
           app_id: "", //keys removed,
           app_key: "", //Keys removed
           naptanId: "", // StopPoint id removed
           animationSpeed: 1000,
           fade: true,
           fadePoint: 0.25, // Start on 1/4th of the list.
           limit: 5,
           initialLoadDelay: 5,
           color: true,
           debug: false
    },

        }

]

Any idea what is causing the blank/black screen with MMM-Pages?

Thanks in advance.

edward-shen commented 4 years ago

What happens if you remove all those extra pages? e.g. just have modules be equal to [["MMM-TFL-Arrivals"]]?

You're also free to remove rotationTime, as the default value is zero.

If that doesn't work, can you hit ctrl+shift+i when running the magic mirror application? a console window should appear that gives the output of the magic mirror. Can you attach that output here?

sparx266 commented 4 years ago

Removing the other pages didn't change anything. Or removing rotationTime.

I have attached the console output which is identifying the stop name and buses correctly, just not displaying them when in MMM-Pages.

Thanks for your help on this.

Console.zip

edward-shen commented 4 years ago

Please attach the full console log. The log you provided does not assist in debugging the interaction between TFL arrivals and MMM-pages.

sparx266 commented 4 years ago

Thanks Edward

I don't know how to do this! Please can you describe how to get the information? This would also be useful for other modules which may require troubleshooting.

Thanks again

edward-shen commented 4 years ago

I've already explained how to do so in my previous comment—You'll need to hit ctrl+shift+i while running magic mirror with a keyboard attached to the pi. Then you should navigate to the console tab, and save the console log to disk.

sparx266 commented 4 years ago

Logs.zip Is this what you are after?

edward-shen commented 4 years ago

Hey, that's the right step, but still not correct. What you posted were the console logs of the service running Magic Mirror (btw two of those files were empty). I'm looking for the application logs. You need to view the Magic Mirror application itself and hit ctrl+shift+i as that will bring up the chromium logs, which reports runtime errors.

sparx266 commented 4 years ago

OK, this is where I am getting lost. Where are these log files saved to please?

edward-shen commented 4 years ago

They're not being saved anywhere; they are runtime logs you would see if you hit ctrl+shift+i on chrome or firefox. The magic mirror application is really just a web-browser, so you need to access the application (browser) and press ctrl+shift+i.

sparx266 commented 4 years ago

Yes. You were sent what can be seen previously with those institutions.

If there is something I'm missing or directions that will help to understand why things are not working correctly, please let me know in small, simple sreps.

Best regards

On Sun, 1 Dec 2019 22:33 Edward Shen, notifications@github.com wrote:

They're not being saved anywhere; they are runtime logs you would see if you hit ctrl+shift+i on chrome or firefox.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/edward-shen/MMM-pages/issues/25?email_source=notifications&email_token=AEY43F3UFVCVIK2DYVND4ATQWQ3TZA5CNFSM4JRATSXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFRX2AQ#issuecomment-560168194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEY43F6CI5N6P5WWEM3YLZTQWQ3TZANCNFSM4JRATSXA .

edward-shen commented 3 years ago

I'm closing this issue due to old age. Please feel free to reopen this issue if you still have a problem.