• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-Traffic does not work after latest update ??

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 3 Posters 3.0k Views 3 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.
  • I Offline
    ironman_DK
    last edited by yawns May 1, 2017, 7:47 AM Apr 29, 2017, 7:48 AM

    After the newest update the module does not work anymore, everything is in Config.JS and I have installed the update, but after that the module is not on the magic mirror, everthing else is there from the others modules :

    {
        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: 'XXXX',
            mode: 'driving',
            origin: 'XXXX',
            destination: 'XXXXX',
            arrival_time: '0800', //optional, but needs to be in 24 hour time if used.
            route_name: 'XXXX',
            changeColor: true,
            showGreen: true,
            limitYellow: 5, //Greater than 5% of journey time due to traffic
            limitRed: 20, //Greater than 20% of journey time due to traffic
            traffic_model: 'optimistic',
            interval: 120000, //2 minutes
    	showWeekend: true,
    	allTime: true       
        }
    },
    
    1 Reply Last reply Reply Quote 0
    • A Offline
      Anhalter42
      last edited by Apr 29, 2017, 7:50 PM

      I guess some error occurs within the module. So, it might be helpful to start the mirror with console (npm start dev) and post the related, occurring errors (all errors should be related else you got more problems :D) here.

      I 1 Reply Last reply Apr 29, 2017, 8:10 PM Reply Quote 0
      • I Offline
        ironman_DK @Anhalter42
        last edited by Apr 29, 2017, 8:10 PM

        @Anhalter42 said in MMM-Traffic does not work after latest update ??:

        npm start dev

        I ca see there is a error > MMM-Traffic.js:36 Uncaught SyntaxError: Invalid or unexpected token / how can I see where the error is in MMMTraffic.js is

        I A 2 Replies Last reply Apr 29, 2017, 8:15 PM Reply Quote 0
        • I Offline
          ironman_DK @ironman_DK
          last edited by Apr 29, 2017, 8:15 PM

          @ironman_DK Ahhh I got it, there was missing a ’ in a line, thank you for your help

          S 1 Reply Last reply Apr 30, 2017, 8:49 AM Reply Quote 0
          • A Offline
            Anhalter42 @ironman_DK
            last edited by Apr 29, 2017, 8:25 PM

            @ironman_DK said in MMM-Traffic does not work after latest update ??:

            how can I see where the error is in MMMTraffic.js is

            First of all, I’m glad you was able to solve the problem yourself :thumbsup:

            For the future, the line in which the error occurs is printed to the console. “MMM-Traffic.js:36” means you have to check the line 36 in file MMM-Traffic.js.

            1 Reply Last reply Reply Quote 0
            • S Offline
              strawberry 3.141 Project Sponsor Module Developer @ironman_DK
              last edited by Apr 30, 2017, 8:49 AM

              @ironman_DK did you modify the files before, because on github it looks fine

              Please create a github issue if you need help, so I can keep track

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