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.

    trouble with MMM-GoogleTrafficTimes

    Scheduled Pinned Locked Moved Troubleshooting
    traffic
    39 Posts 3 Posters 8.2k 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.
    • S Offline
      sdetweil @laschalkh
      last edited by sdetweil

      @laschalkh said in trouble with MMM-GoogleTrafficTimes:

      /home/pi/MagicMirror/config/config.js:73
      styledMapType: “transparent”,
      ^^^^^^^^^^^^^
      SyntaxError: Unexpected identifier

      rule number 1 debugging syntax errors:

      IF you see ’ Unexpected identifier’, find the line number
      config.js:73

      back up one line (72), and check for the missing , at the end

                                      width: '300px'                                   <  --- 
                                      styledMapType: "transparent",
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • L Offline
        laschalkh
        last edited by

        I see it, damn, I’ve stared at that for way too long, rebooting…

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

          @laschalkh you don’t need to reboot all the time, just restart mm…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • L Offline
            laschalkh
            last edited by

            it’s working now. Thank you for all of the help!

            Kevin

            1 Reply Last reply Reply Quote 0
            • M Offline
              mrhurley
              last edited by

              I have been playing around with this and it works well. However, it doesn’t like when you trying to get times for another travel mode. It will change the icons, but the times are always for driving. I played with the file and forced the cycling mode but then it won’t show up on the screen. I think the issue is the Distance Matrix API returns unexpected information for the other modes.

              Can someone help point me in the right direction? Thanks

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