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

Mycommute is not working for me

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 435 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.
  • M Offline
    matelot20
    last edited by May 12, 2020, 3:01 AM

    I got the API from Google. Tested with google link below and was able to see the results in json format.
    (https://maps.googleapis.com/maps/api/directions/json?origin=Disneyland&destination=Universal+Studios+Hollywood&key=enter_my_api_key)

    When I tried running in MM, I get “Must use an API key to authenticate each request”. Any pointers?

    My config is as follow

        module: "MMM-MyCommute",
        position: "top_center",
        header: "Traffic",
        config: {
           apikey:  [my api key],
           origin: "Disneyland",
           destinations: [
                { destination: "Universal+Studios+Hollywood",
                  label: "Fun",
                  mode: "driving" }
                ]
        }
    
    1 Reply Last reply Reply Quote 0
    • G Offline
      gwiz
      last edited by gwiz May 12, 2020, 9:11 PM May 12, 2020, 8:53 PM

      Hi @matelot20,

      I know that MMM-MyCommute was having some issues on my mirror yesterday as well, but fixed itself later in the day without me having to do anything (still not sure why exactly that was happening, but it’s better now). I know that for it to recognize your destinations you have to have the address as it shows in Google Maps, for example: Disneyland Anaheim would be “1313 Disneyland Dr, Anaheim, CA 92802” instead of “Disneyland” as you have it in your config. As for the API message, it could be something different.

      Please let me know if that helps!

      Edit - I just realized that if you are running the latest update of MMM-MyCommute, there was an update that changed the config text “apikey” to “apiKey”, so

      apikey:  [my api key],
      

      would now be

      apiKey:  [my api key],
      

      That could be where your API issue stems from

      1 Reply Last reply Reply Quote 1
      • M Offline
        matelot20
        last edited by May 13, 2020, 3:36 AM

        @gwiz you are right on. It was the apiKey that causes the problem. Thanks so much for pointing it out. Would have never guessed it. Have a good day.

        G 1 Reply Last reply May 13, 2020, 8:54 AM Reply Quote 0
        • G Offline
          gwiz @matelot20
          last edited by May 13, 2020, 8:54 AM

          @matelot20 Awesome, glad I could help!

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