Read the statement by Michael Teeuw here.
MMM-MyCommute not showing up.
-
Sorry to bump an old post, seemed like a better idea vs creating a new one…
I’m having the same issue. I’m using MagicMirror 2.12. The MMM-MyCommute module shows “Error” in red for my destination. I have an api key. The api key is active. I’ve added the Directions API, Geocoding API and Maps JavaScript API to my Google Cloud Platform account. I’ve tried both apikey and apiKey. I did read on the Google site that the request needs to be something like “key_api” but can’t find that verbiage again to validate. Not sure what else I can do at this point. Any tips? Many thanks!!
code:
{ module: 'MMM-MyCommute', position: 'top_left', header: 'Commute Times', config: { apiKey: '**********************************', origin: '**my home address**', startTime: '00:00', endTime: '23:59', destinations: [ { destination: '6000 N Terminal Pkwy, Atlanta, GA 30320', label: 'Airport' }, ] }
-
@spoonek apikey, all lower case, read the module doc
open the developers window ctrl-shift-i, then select the console tab and scroll up see any errors. u can also filter messages by module, by placing part of the module name in the filter field ‘comm’ for example
-
@sdetweil said in MMM-MyCommute not showing up.:
@spoonek apikey, all lower case, read the doc
open the developers window ctrl-shift-i, then select the console tab and scroll up see any errors. u can also filter messages by module, by placing part of the module name in the filter field ‘comm’ for example
Thanks. There is conflicting info on github. One MyCommute says use apikey. The other fork says to now use apiKey. I tried both, same result…“Error”.
I’ll check out the dev window. I’m a n00b so learning as I go. Appreciate the suggestion!
[edit]. …aaaaaand I’m on a MAC. :man_facepalming_light_skin_tone:
-
@spoonek the same result means the problem is probably in the key. Google requires a credit card to back their accounts, altho they give generous credits against usage for a while
-
@sdetweil Yep, I added a card and activated the account last night. Was hoping it would sync up overnight but same issue this morning.
-
@spoonek use the menu to get the dev window open. or start with
npm start dev
if u normally use pm2, do pm2 stop 0
before the npm start -
@spoonek no sync time. it’s immediate.
-
@sdetweil said in MMM-MyCommute not showing up.:
@spoonek use the menu to get the dev window open. or start with
npm start dev
if u normally use pm2, do pm2 stop 0
before the npm startOK, that is awesome! Thanks for the tip! So maybe I need to generate a new api key and use that?
[2020-08-20 09:07:14.680] [LOG] MMM-MyCommute: You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account
-
@spoonek u didn’t list the maps api I the list of services above
Google Maps Platform APIs
-
@sdetweil thanks. I don’t see it…