Climate map not loading

Post Reply
greenstreet
Newbie
Newbie
Posts: 9
Joined: Fri Dec 21, 2018 10:05 pm
Location: Smeerebbe-Vloerzegem, Belgium
Station model: Davis Vantage Vue
Software: Meteobridge
Contact:

Climate map not loading

Post by greenstreet » Mon Nov 20, 2023 1:49 pm

Hi everone,
I'm still working on a new version of my weatherstation site. Everything seems to work fine, but het climat map won't load. Error message: Oops! Something went wrong loading this page. Google Maps is not loaded .... See Javascript console .. etc.
I opened the Javascript console and noticed that it uses an old API Key I deleted on the Google Maps Platform
Here's wat I did:
1. Deleted an old API Key on the Google Maps Platform
2. Restored my billing information on the same platform
3. Configured the (right) settings to use the key (see screenshot)
4. I changed the key in file GoogleMapsKey.txt (install folder)
5. And still the climate map page uses the old Google Maps API key

I wonder if it is right to execute the "setup.php" again, but I think this will change the configuration of the site completely. So, I'm asking for advice for this issue.

Thanks a lot in advance.

Schermafbeelding 2023-11-20 140930.png
Schermafbeelding 2023-11-20 140930.png (51.13 KiB) Viewed 344 times
Schermafbeelding 2023-11-20 141339.png
Schermafbeelding 2023-11-20 141339.png (48.02 KiB) Viewed 344 times

MM0ZIF
Newbie
Newbie
Posts: 5
Joined: Sun Aug 20, 2017 1:00 pm
Location: Irvine, Scotland
Station model: Ecowitt 1xxx
Software: Weather Display
Contact:

Re: Climate map not loading

Post by MM0ZIF » Fri Nov 24, 2023 4:10 pm

I have exactly the same issues here, I wonder if Google changed something

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Climate map not loading

Post by davidefa » Sat Nov 25, 2023 4:53 pm

The google api key is saved in the config.php file ( see $googleMapsAPIKey near line 206 ).
To change it, you can rerun the meteotemplate main setup again, or if you fear to mess with something, you can edit the config.php file directly ( in this second case make a backup of the file, as messing with it may 'block' your entire site, I edit it directly quite often though )
Image

greenstreet
Newbie
Newbie
Posts: 9
Joined: Fri Dec 21, 2018 10:05 pm
Location: Smeerebbe-Vloerzegem, Belgium
Station model: Davis Vantage Vue
Software: Meteobridge
Contact:

Re: Climate map not loading

Post by greenstreet » Sun Nov 26, 2023 1:27 pm

Hi Davidefa,

Thanks for your advice. It finally works!
Best regards and thank you again,
Luc

Julius
Advisor
Advisor
Posts: 89
Joined: Fri Sep 24, 2021 10:41 pm
Station model: Barani MeteoHelix
Software: meteobridge

Re: Climate map not loading

Post by Julius » Tue Dec 26, 2023 12:50 pm

So, what did you actually do to make it work? For me this is still "loading" and not showing anything..
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Climate map not loading

Post by davidefa » Tue Dec 26, 2023 1:38 pm

Extract this script in pages/climate directory ( will overwrite the existing climate_json.php script ), it should fix your issue.
Attachments
climate_json.zip
(781 Bytes) Downloaded 24 times
Image

greenstreet
Newbie
Newbie
Posts: 9
Joined: Fri Dec 21, 2018 10:05 pm
Location: Smeerebbe-Vloerzegem, Belgium
Station model: Davis Vantage Vue
Software: Meteobridge
Contact:

Re: Climate map not loading

Post by greenstreet » Tue Dec 26, 2023 3:29 pm

Thanks to all of you!
It works fine now, the map is loading again!
Thank you again!

Post Reply