Climate map won’t show up
- bthoven
- Observer
- Posts: 17
- Joined: Sun Dec 03, 2017 6:30 pm
- Station model: Misol WH2600
- Software: weewx
Climate map won’t show up
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.
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.
- Jachym
- 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
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
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
- bthoven
- Observer
- Posts: 17
- Joined: Sun Dec 03, 2017 6:30 pm
- Station model: Misol WH2600
- Software: weewx
Re: Climate map won’t show up
My link is here
bthoven.dyndns.biz:802/template/pages/climate/map.php
bthoven.dyndns.biz:802/template/pages/climate/map.php
- Jachym
- 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
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.
- bthoven
- Observer
- Posts: 17
- Joined: Sun Dec 03, 2017 6:30 pm
- Station model: Misol WH2600
- Software: weewx
Re: Climate map won’t show up
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.
Thanks, it is working now. I have to add to referer the exact full url of climate url, instead of the wildcard url.
-
- 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
I also have this same error.
My authorized sites are the ones in the 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.
My authorized sites are the ones in the 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 (24.51 KiB) Viewed 1368 times
-
- 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
Not sure you specified correctly the restriction.
You may try specifying the ip address of your raspberry ( 3rd option )
You may try specifying the ip address of your raspberry ( 3rd option )
-
- 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
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 (.)?
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 (.)?
-
- 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
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.
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 (13.09 KiB) Viewed 1337 times