Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Geocode API

    Troubleshooting
    2
    4
    812
    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.
    • D
      dsmtweaker last edited by yawns

      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-account
      

      Am I just missing where to put my geocode API key?

      1 Reply Last reply Reply Quote 0
      • strawberry 3.141
        strawberry 3.141 Project Sponsor Module Developer last edited by

        Is your code published somewhere e.g. on github?

        D 1 Reply Last reply Reply Quote 0
        • D
          dsmtweaker last edited by yawns

          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.
          	
                          ]
          		}
          	},
          
          1 Reply Last reply Reply Quote 0
          • D
            dsmtweaker @strawberry 3.141 last edited by

            @strawberry-3-141

            Code is posted above

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy