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.

    Geocode API

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 1.3k 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.
    • D Offline
      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.141S Offline
        strawberry 3.141 Project Sponsor Module Developer
        last edited by

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

        Please create a github issue if you need help, so I can keep track

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

            @strawberry-3-141

            Code is posted above

            1 Reply Last reply Reply Quote 0

            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
            • 1 / 1
            • First post
              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