Read the statement by Michael Teeuw here.
MMM-MyCommute
-
@sdetweil said in MMM-MyCommute:
This API project is not authorized to use this API.
seems pretty clear… the api Project you selected, doesn’t authorize use of the API…
open the google developers console, find the api project and check for the api… maybe Javascript
Dear @sdetweil.
Thee same behavior also has it @wagon40, I thought it was something about the module…but if you’re sure it’s just an API problem … I’ll do a check!Thanks.
-
so Ive installed MyCommute and activated the directions api in google and Im getting this error in log…
[14:09:09.679] [LOG] MMM-MyCommute: You must use an API key to authenticate each request to Google Maps Platform APIs.Im using the same API key for GoogleMapsTraffic.
heres my config section:
// My Commute Start { module: "MMM-MyCommute", position: "bottom_right", config: { apikey: 'API - Key', origin: 'Start Address', startTime: '07:00', endTime: '23:30', destinations: [ { destination: 'Destination', label: 'Engine Center', mode: 'driving', color: '#82E5AA' }, { destination: 'Destination', label: 'WHE - Office', mode: 'driving', color: '#82E5AA' }, ] } },any ideas?
Thanks
-
@banbutcher you have to sign on to the Google API console and enable the API.
And u must enter a credit card as part of that. -
@sdetweil
if your taking about the API for directions, ive already done that. have entered credit card details too, needed that for GoogleMapsTraffic. -
@banbutcher Google maps traffic uses the JavaScript map API. This module needs another api
-
i have both turned on, at least im sure i do…
https://drive.google.com/open?id=18ZReMNCAscxCxtJjd1dEo8s2D2u3MOY-
thanks again
-
@banbutcher did that solve the problem? I can’t see whatever is on that Google drive, as it tries to find it on mine
-
another question… as im running GoogleMapsTraffic as a full screen page i was wondering if its possible to show the quickest routes on the map between origin and destination?
-
@banbutcher I don’t know what API parameters are available or used by that module
-
its just a pic of the list of enabled Apis and directions is on there… no still hasnt solved problem.
is their a different key for directions api and another different key for the javascript map api?
-
@banbutcher no. Just have to use the same project and key to enable the apis
-
thats what i thought, i have the right ones enabled and using the same key! :/
-
turns out i didnt have the address formatted correctly! took them directly from google maps and it worked great!
thanks,
Richie -
is there any way of knowing if calendar events are being passed? Ive added this code to mine and nothing gets added to my commute:
maxCalendarEvents: 2, maxCalendarTime: 24 * 60 * 60 * 1000, calendarOptions: [ { mode: 'driving' } ],am i missing something?
-
Created issue for calendar events regarding arrival time & transit option.
Also worth noting that calendar events are only first added when the module refreshes traffic (after 10 minutes from startup) -
@testdruif is this module getting cal events as broadcast by the calendar module? How often does the cal module refresh/broadcast?
-
@testdruif said in MMM-MyCommute:
Created issue for calendar events regarding arrival time & transit option.
Also worth noting that calendar events are only first added when the module refreshes traffic (after 10 minutes from startup)When the calendar events are added the code crashes further down the line.
Code doesn’t add the calendar collor variable. -
@sdetweil Yes, the module gets events from calendar module broadcast.
Another issue: when you have multiple calendar modules configured the array gets wiped at unexpected times.
So you can only use it correctly with 1 calendar module.because the commute module loads before all calendar entries are processed they are processed on the next “commute update” which is 10m by default config.
-
@testdruif hm… I have a module that uses calendar events broadcast, and gets it right away…
-
Is there a way to remove the arrival time ?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
