Read the statement by Michael Teeuw here.
Geocode API
-
I am trying to do the mmm-googleanalytics connected to MMM-Globe, as done here. http://robstechlog.com/2017/07/22/google-analytics-coordinates-rotating-globe/
I have followed all the steps, and both analytics & globe are working, however the globe is not showing data from analytics(just using the default cities)
I did create a google geocode API(which the steps don’t mention) But I don’t see anywhere to enter the geocode API. When I npm start I get the following error.
{ Error: Status is OVER_QUERY_LIMIT. Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls to avoid service interruption. For further details please refer to http://g.co/dev/maps-no-account at C:\Users\brandon\MagicMirror\modules\MMM-GoogleAnalytics\node_modules\node-geocoder\lib\geocoder\googlegeocoder.js:89:25 at IncomingMessage.<anonymous> (C:\Users\brandon\MagicMirror\modules\MMM-GoogleAnalytics\node_modules\node-geocoder\lib\httpadapter\httpadapter.js:65:9) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1056:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) cause: Error: Status is OVER_QUERY_LIMIT. Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls to avoid service interruption. For further details please refer to http://g.co/dev/maps-no-accountAm I just missing where to put my geocode API key?
-
Is your code published somewhere e.g. on github?
-
I am just using the MMM-GoogleAnalytics code, along with the MMM-Globe code as explained in the walk through. My analytics API is working, as it displays the information on the mirror. The issue comes with the geocode section. I believe this module was written before google started requiring a geocode API.
{ module: 'MMM-GoogleAnalytics', header: 'mywebsite.com - Today', position: 'top_right', config: { viewID : 'ga:XXXXXXX', // see README.md, how to get viewID and your keyfile.json start_date: '1daysAgo', //today,1daysAgo, end_date: 'today', metrics: 'ga:newusers, ga:users, ga:sessions, ga:pageviews, ga:sessionDuration', dimensions: 'ga:city, ga:country', //ga:country, ga:city,ga:source //sort: '-ga:timeOnPage', //filters: 'ga:timeOnPage>10', //ga:timeOnPage>10 Return results where the time on the page is strictly greater than ten seconds. segment: '', start_index: 1, max_results: 50, updateInterval: 10 * 30 * 1000, // every minute showtable: true, showtotalline: true, exportdatatoMMM_Globe: true, debug: false } }, ] }; { module: 'MMM-Globe', position: 'lower_third', // This can be any of the regions. Best results in lower_third config: { size:"small", // Globe size. See configuration options below for more options dayLength: 38, // (Optional) Rotation speed. See configuration options below viewAngle: 15, // (Optional) Globe tilt. See configuration options below. introLinesDuration: 2000, receiveExternalLocations: 1, locations: [ // Fill with location Objects if desired // e.g. // {lat:37.77493,lng:-122.41942, label: "San Francisco"}, // {lat:-23.5475,lng:-46.63611, label: "Sao Paulo"} // Individual values must be seperated by a comma. // You can look up the latitude and longitude for a specific location on Google Maps. ] } }, -
@strawberry-3-141
Code is posted above
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