Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Google now requires API key for map display - quake-json.php

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Google now requires API key for map display - quake-json.php

Post by saratogaWX »

Looks like Google is (sometimes slowly) changing the API for the Google Maps.. previously, they didn't require an API key for the maps used in scripts like quake-json, global-map and details with nws-alerts. As of July 1st, they've begun denying Maps with a message "Check the JavaScript Console" and you'll see 'Missing API Key'. Sigh...

So now you need first get an API key for your site(s)

https://developers.google.com/maps/docu ... et-api-key

Standalone users update quake-json.php from the scripts page then change quake-json.php to have your API key

Code: Select all

$googleAPI = '-replace-this-with-your-API-key-here-'; 
The quakes.php sample page is also changed a bit so follow it's example for your standalone page.

Saratoga template users should use the updates page to get what you need, and add an entry to your Settings.php file with

Code: Select all

$SITE['googleAPI'] = '-replace-this-with-your-API-key-here-';
You'll also need to replace the wxquake.php (USA, World) or wxquakew.php (Canada) as both have slightly changed to accommodate the new API key requirement.

Best regards,
Ken
User avatar
JennyLeez
Posts: 314
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Google now requires API key for map display - quake-json

Post by JennyLeez »

Gee I would love a dollar for every time I have changed this one. Bet you would also Ken.

All up and running.

Many thanks :)

Jenny
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Google now requires API key for map display - quake-json

Post by ConligWX »

Thanks for the update!
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
Post Reply