Climate map won’t show up

Post Reply
User avatar
bthoven
Observer
Observer
Posts: 17
Joined: Sun Dec 03, 2017 6:30 pm
Station model: Misol WH2600
Software: weewx

Climate map won’t show up

Post by bthoven » Sun Dec 17, 2017 6:34 am

I believe I got the google map api and put its key in the main setup.

When I click the Climate Map menu, the map show up briefly and gave error.

Please give me some clue how I should fix it....thanks.
4E89ED7D-7936-4589-9189-C250F13F71BE.jpeg
4E89ED7D-7936-4589-9189-C250F13F71BE.jpeg (242.75 KiB) Viewed 2900 times

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Climate map won’t show up

Post by Jachym » Sun Dec 17, 2017 10:31 am

Hi,
this is a Google Maps error. If you are using Chrome or Firefox, click F12 and in the console you should see the error.

Or post a link here so that I can have a look myself

User avatar
bthoven
Observer
Observer
Posts: 17
Joined: Sun Dec 03, 2017 6:30 pm
Station model: Misol WH2600
Software: weewx

Re: Climate map won’t show up

Post by bthoven » Sun Dec 17, 2017 11:02 pm

My link is here
bthoven.dyndns.biz:802/template/pages/climate/map.php

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Climate map won’t show up

Post by Jachym » Mon Dec 18, 2017 12:12 am

The current URL loading the Google Maps JavaScript API has not been added to the list of allowed referrers. Please check the referrer settings of your API key on the Google API Console.

User avatar
bthoven
Observer
Observer
Posts: 17
Joined: Sun Dec 03, 2017 6:30 pm
Station model: Misol WH2600
Software: weewx

Re: Climate map won’t show up

Post by bthoven » Mon Dec 18, 2017 1:34 am

Hi Jachym,

Thanks, it is working now. I have to add to referer the exact full url of climate url, instead of the wildcard url.

El_Viejo
Advisor
Advisor
Posts: 80
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Netatmo

Re: Climate map won’t show up

Post by El_Viejo » Wed Apr 20, 2022 3:45 pm

I also have this same error.
My authorized sites are the ones in the image.
Image
What am I doing wrong, should I change the syntax of the authorized page?
It is necessary to clarify that my "template" is hosted on a Raspberry Pi 4 and is only accessible by computers placed on my local area network (LAN). It is not accessible via the Internet (WAN).
Thank you very much for your help.
Attachments
Sitios_autorizados.png
Sitios_autorizados.png (24.51 KiB) Viewed 1368 times

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 won’t show up

Post by davidefa » Wed Apr 20, 2022 8:38 pm

Not sure you specified correctly the restriction.
You may try specifying the ip address of your raspberry ( 3rd option )

apikey.png
apikey.png (31.08 KiB) Viewed 1364 times
Image

El_Viejo
Advisor
Advisor
Posts: 80
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Netatmo

Re: Climate map won’t show up

Post by El_Viejo » Thu Apr 21, 2022 1:59 pm

Thank you very much for your interest.
If I enable "IP address ..." I get an error "Invalid cidr addressblock", when I type http://192.168.150/ or http://*.192.168.1.150/*.
I think the correct option is "HTTP referrers", but my mistake is in the syntax.
I'm typing http://*.netatmo/template/pages/climate/map.php/*
How should I use the (*) and the (.)?

El_Viejo
Advisor
Advisor
Posts: 80
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Netatmo

Re: Climate map won’t show up

Post by El_Viejo » Fri Apr 22, 2022 2:11 pm

Solved.
I activate "HTTP referres" and change the syntax as you can see in the image.
The example suggested by Google is confusing.
My compliments to Jachyn's excellent work.
Best regards.
Attachments
API_Key_correcto.png
API_Key_correcto.png (13.09 KiB) Viewed 1337 times

Post Reply