Navigation

    MagicMirror Forum

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

    MMM-MyCommute module black screen

    Troubleshooting
    2
    3
    13
    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.
    • C
      ChanceTime last edited by

      Hey all,

      I’m still relatively new at the Magic Mirror platform and Python in general, so it’s entirely possible my error is a pretty easy one to fix. I’m having issues with adding MMM-MyCommute to my setup - when I insert the code into my config file, the screen stays black after an npm start and I can’t figure out why. (I also had this issue trying to add MMM-MovieList for some reason; for that, as with MMM-MyCommute, the solution seems to have simply been removing it from the config file.)

      The code I have for this config is as follows:

      		      {
      			module: "MMM-MyCommute",
      			position: 'bottom_center',
      			config: {
      			  apiKey: "myAPIkeygoeshere",
      			  origin: "60 George Street, Ottawa, ON, K1N 1J4",
      			  destinations: [
      			    {
      			      destination: "77 Bank Street, Ottawa, ON, K1P 5N2",
      			      label: "Work",
      			      mode: "driving",
      			      color: "#82E5AA"
      			    }
      			  ],
      			  // Additional config for calendar routes:
      			  maxCalendarEvents: 2,
      			  calendarOptions: [
      			    {
      			      mode: "driving"
      			    },
      			    {
      			      mode: "transit",
      			      transitMode: "train"
      			    }
      			  ]
      			}
      		      },
      
      

      I’m using this fork:

      https://github.com/qistoph/MMM-MyCommute

      Thanks in advance!

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

        @ChanceTime two places to look

        in the log from how you start MM, terminal window or pm2 (use pm2 logs --lines=100 command)
        and in the developers window, ctrl-shift-i on the mirror keyboard, select the tab labeled console, and scroll up to see any errors (usually red text)

        1 Reply Last reply Reply Quote 0
        • C
          ChanceTime last edited by

          Aaaaah, thanks sdetwell! I ah, just solved it, and the answer was very silly.

          For any future newbs having this issue across multiple modules, check that the files for modules you are referencing are actually in the Magic Mirror’s modules folder. A few of mine - MMM-MovieListings and MMM-MyCommute somehow got installed in ~/MagicMirror and not ~/MagicMirror/modules , which explains why it was happening in both places. Whoops! MyCommute is now working perfectly.

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