MagicMirror Forum

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

    UNSOLVED MMM-Traffic does not work after latest update ??

    Troubleshooting
    3
    6
    2274
    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
      ironman_DK last edited by yawns

      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
        Anhalter42 last edited by

        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 Reply Quote 0
        • I
          ironman_DK @Anhalter42 last edited by

          @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 Reply Quote 0
          • I
            ironman_DK @ironman_DK last edited by

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

            strawberry 3.141 1 Reply Last reply Reply Quote 0
            • A
              Anhalter42 @ironman_DK last edited by

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

              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
              • strawberry 3.141
                strawberry 3.141 Project Sponsor Module Developer @ironman_DK last edited by

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