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.

    Module MMM-Traffic is not displayed

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    5 Posts 2 Posters 1.9k 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.
    • K Offline
      Klinge
      last edited by

      Hello,

      I have some problems wird the module MMM-Traffic.

      I installed it and in my config.js file I inserted the following example config from the git hub site https://github.com/SamLewis0602/MMM-Traffic

      {
      	module: 'MMM-Traffic',
      	position: 'top_left',
      	classes: 'dimmed medium', //optional, default is 'bright medium', only applies to commute info not route_name
      	config: {
      		api_key: 'your_apikey_here',
      		mode: 'driving',
      		origin: '4 Pennsylvania Plaza, New York, NY 10001',
      		destination: '1 MetLife Stadium Dr, East Rutherford, NJ 07073',
      		mon_destination: '116th St & Broadway, New York, NY 10027',
      		fri_destination: '1 E 161st St, Bronx, NY 10451',
      		arrival_time: '0800', //optional, but needs to be in 24 hour time if used.
      		route_name: 'Home to Work',
      		changeColor: true,
      		showGreen: false,
      		limitYellow: 5, //Greater than 5% of journey time due to traffic
      		limitRed: 20, //Greater than 20% of journey time due to traffic
      		traffic_model: 'pessimistic',
      		interval: 120000 //2 minutes
      	}
      },
      

      I added my API-Key from Google Maps Directions API. I use the “Directions API” from the Google Cloud Platform.

      So, when I start my MM, there are no Informations from this module.

      I have installed the MMM-GoogleMapsTraffic too. In this module I am using the “Maps JavaScript API”. And this module work fine. But this API doesn´t work with the module MMM-Traffic.

      I am not sure, if I use the correct API. Maybe there is another problem.

      Unfortunately, I do not remember what else I can do.

      It would be great if anyone of you could help me.

      Thank you in advance.
      Lars

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

        in case the module is having some trouble, try this

        start the MM like this

        npm start dev
        

        then in the developers window, select the console tab…
        check for any errors (red text) and fix those…

        let us know

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • K Offline
          Klinge
          last edited by

          Thank you for your help.

          I started it like your recommendation and I got an error message. I saved the log-Files. But maybe a screenshot could help you.

          0_1549218955801_20190203_193213.jpg

          If you need the log Files please let me know.

          Thank you in advance again

          Lars

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

            @klinge look at you folder names

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • K Offline
              Klinge
              last edited by

              Oh my god. What a stupid error. I installed the module in den /MagicMirror folder.

              Again a Layer 8 problem.

              Excuse me for wasting your time.

              But I’m so thankful to you. :-)

              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy