Unable to find the googleMapsKey.txt file with google maps api key

Post Reply
NickBaggss
Newbie
Newbie
Posts: 3
Joined: Wed Dec 27, 2017 6:07 pm
Station model: Davis Vantage vue
Software: Weatherlink

Unable to find the googleMapsKey.txt file with google maps api key

Post by NickBaggss » Thu Dec 28, 2017 4:23 pm

No matter what i do i get this

Unable to find the googleMapsKey.txt file with google maps api key. Make sure this text file is in the Install directory, if you do not have it there, re-download the main Meteotemplate file and you will find it there.

plus the api tutorial is out of date,

File is in correct directory, google generating bad keys? What am i missing?


3 hours spent so far, ready to chuck it all,

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: Unable to find the googleMapsKey.txt file with google maps api key

Post by Jachym » Thu Dec 28, 2017 4:31 pm

template/install/googleMapsKey.txt

If you do not have that file there you must have deleted it or it was not uploaded by your FTP because it is in the ZIP file you downloaded.

API tutorial - what is out of date, there is no "api tutorial"

NickBaggss
Newbie
Newbie
Posts: 3
Joined: Wed Dec 27, 2017 6:07 pm
Station model: Davis Vantage vue
Software: Weatherlink

Re: Unable to find the googleMapsKey.txt file with google maps api key

Post by NickBaggss » Thu Dec 28, 2017 6:08 pm

the file is there, setup just cant find it,
api tutorial is the 3 page pdf step by step, google changed their page

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: Unable to find the googleMapsKey.txt file with google maps api key

Post by Jachym » Thu Dec 28, 2017 9:17 pm

They did not change it, but the problem is that they have several versions which they use, as far as I can see based on location and language you use. No clue why they do this. Make sure you have correct permissions for that file. Try 650 or 755.

NickBaggss
Newbie
Newbie
Posts: 3
Joined: Wed Dec 27, 2017 6:07 pm
Station model: Davis Vantage vue
Software: Weatherlink

Re: Unable to find the googleMapsKey.txt file with google maps api key

Post by NickBaggss » Fri Dec 29, 2017 11:41 am

Is there a way to manually enter googlemaps key? the file is there, setup just doesnt seem to see it.

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: Unable to find the googleMapsKey.txt file with google maps api key

Post by Jachym » Fri Dec 29, 2017 12:21 pm

Hi,
unfortunately not, it needs to read it in that file, I mean you could hard-code it inside setup.php, however your changes will be reset whenever you update your template. You need to check the permissions. It is also likely that permissions are incorrect on more than just this file, which would cause errors. Try 640, 655, 755 and also check the folder permission, try 640 or 755 and various combinations.

User avatar
aznetcowboy
Advisor
Advisor
Posts: 50
Joined: Wed Apr 04, 2018 6:21 pm
Location: Tucson, AZ
Station model: Davis Vantage Pro2
Software: Cumulus
Contact:

Re: Unable to find the googleMapsKey.txt file with google maps api key

Post by aznetcowboy » Thu Apr 05, 2018 9:52 pm

I am also having an issue with the Google Maps API. I have an API, but it is the only thing that shows up as being a problem in the Error Checker page. I get the following:

API file
API file not found. This means your template is not being updated.

Why is this happening. I show it in the Config file and in the googleMapsKey.txt file. The API is AIz********************************vIw.

It sure seems to me that the API should be seen okay. :?
Tom Wills
Kingston Knolls Terrace, Tucson, AZ 85710

El Gheko Neighborhood Weather Station: http://www.elgheko.us
El Gheko meteoTemplate Weather Station: http://www.elgheko.us/mtp/
El Gheko Neighborhood Association: http://na.elgheko.us
Certified Skywarn Trained Observer #1569
Image

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: Unable to find the googleMapsKey.txt file with google maps api key

Post by Jachym » Fri Apr 06, 2018 6:09 am

API file is not the Google API, it is the api file that updates your template, so this means you have not yet set up the database updates.

User avatar
aznetcowboy
Advisor
Advisor
Posts: 50
Joined: Wed Apr 04, 2018 6:21 pm
Location: Tucson, AZ
Station model: Davis Vantage Pro2
Software: Cumulus
Contact:

Re: Unable to find the googleMapsKey.txt file with google maps api key

Post by aznetcowboy » Sun Apr 08, 2018 11:45 pm

When I go to the WIKI "Getting Google Browser API Key" topic, I downloaded it and printed it off. I tried to follow the instructions, but they don't match what is displayed at the link "https://developers.google.com/maps/docu ... et-api-key". This is where I get that long key which I cannot get it to work with my attempts to get Meteotemplate up and running. it just will not recognize the key provided by Google. :?
Tom Wills
Kingston Knolls Terrace, Tucson, AZ 85710

El Gheko Neighborhood Weather Station: http://www.elgheko.us
El Gheko meteoTemplate Weather Station: http://www.elgheko.us/mtp/
El Gheko Neighborhood Association: http://na.elgheko.us
Certified Skywarn Trained Observer #1569
Image

User avatar
aznetcowboy
Advisor
Advisor
Posts: 50
Joined: Wed Apr 04, 2018 6:21 pm
Location: Tucson, AZ
Station model: Davis Vantage Pro2
Software: Cumulus
Contact:

Re: Unable to find the googleMapsKey.txt file with google maps api key

Post by aznetcowboy » Tue Apr 10, 2018 4:59 pm

Okay, now I must ask what is supposed to be in the $googleMapsAPIKey field if it isn't what I find on Google after following the directions from the Wiki? If that is not correct, which seems to be the case as the MeteoTemplate keeps telling me I haven't an API key? :?:
Tom Wills
Kingston Knolls Terrace, Tucson, AZ 85710

El Gheko Neighborhood Weather Station: http://www.elgheko.us
El Gheko meteoTemplate Weather Station: http://www.elgheko.us/mtp/
El Gheko Neighborhood Association: http://na.elgheko.us
Certified Skywarn Trained Observer #1569
Image

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: Unable to find the googleMapsKey.txt file with google maps api key

Post by Jachym » Tue Apr 10, 2018 7:53 pm

What error do you get and where

User avatar
aznetcowboy
Advisor
Advisor
Posts: 50
Joined: Wed Apr 04, 2018 6:21 pm
Location: Tucson, AZ
Station model: Davis Vantage Pro2
Software: Cumulus
Contact:

Re: Unable to find the googleMapsKey.txt file with google maps api key

Post by aznetcowboy » Thu Apr 12, 2018 9:27 am

The "Check for Problems" Error Checker gives me the message "API file not found. This means your template is not being updated." This comes from the Template panel in the Meteotemplate Control Panel.
Tom Wills
Kingston Knolls Terrace, Tucson, AZ 85710

El Gheko Neighborhood Weather Station: http://www.elgheko.us
El Gheko meteoTemplate Weather Station: http://www.elgheko.us/mtp/
El Gheko Neighborhood Association: http://na.elgheko.us
Certified Skywarn Trained Observer #1569
Image

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: Unable to find the googleMapsKey.txt file with google maps api key

Post by Jachym » Thu Apr 12, 2018 6:05 pm

This is not the Google map api key. It is the Meteotemplate API file, so this means your page is currently not being updated by any software or CRON job.

User avatar
aznetcowboy
Advisor
Advisor
Posts: 50
Joined: Wed Apr 04, 2018 6:21 pm
Location: Tucson, AZ
Station model: Davis Vantage Pro2
Software: Cumulus
Contact:

Re: Unable to find the googleMapsKey.txt file with google maps api key

Post by aznetcowboy » Thu Apr 12, 2018 10:09 pm

I'm making a brazen assumption here that you know what the following means in the cronjob I set up.

5 * * * *
/home/########/domains/elgheko.us/public_html/mtp/update/update.php?password=****


I'm laying odds it is incorrect somehow. :(
Tom Wills
Kingston Knolls Terrace, Tucson, AZ 85710

El Gheko Neighborhood Weather Station: http://www.elgheko.us
El Gheko meteoTemplate Weather Station: http://www.elgheko.us/mtp/
El Gheko Neighborhood Association: http://na.elgheko.us
Certified Skywarn Trained Observer #1569
Image

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: Unable to find the googleMapsKey.txt file with google maps api key

Post by Jachym » Fri Apr 13, 2018 9:18 pm

Try executing the update manually via http://.... in your browser. If that updates the page the problem is with the CRON, if not, the problem is somewhere else. This is important to try to find out where the problem is.

ray666
Newbie
Newbie
Posts: 1
Joined: Mon Jun 18, 2018 4:59 am
Station model: Davis Pro2 Wireless
Software: WU

Re: Unable to find the googleMapsKey.txt file with google maps api key

Post by ray666 » Tue Jun 19, 2018 4:53 am

I must be going stupid in my old age!!

By following the google link I get to a page that wants to charge me or I can do something from the Google Cloud Platform - whilst testing.
It looks nothing like the sample here http://www.meteotemplate.com/web/wiki/wiki3GB.php
Also the pdf on the wiki page (also here) http://www.meteotemplate.com/web/wiki/wiki3GB.php has no resemblance to the page I end up on. No doubt Google uses different pages for different areas!!

Here is a cut and paste of the page I go to in Australia:-
-------------------------------------------------------------------------------------------
Get API Key

To use the Maps JavaScript API, you must register your app project on the Google Cloud Platform Console and get a Google API key which you can add to your app.
Quick guide to getting a key
Step 1: Get an API Key from the Google Cloud Platform Console

Click the button below, which guides you through the process of registering a project in the Google Cloud Platform Console, activates the Maps JavaScript API and any related services automatically, and generates a generic, unrestricted API key.
Get Started

Notes:

Tip: During development and testing, you can register a project for testing purposes in the Google Cloud Platform Console and use a generic, unrestricted API key. When you are ready to move your app or website into production, register a separate project for production, create a browser-restricted API key, and add the key to your application.
Premium Plan customers: For production-ready apps, you must use a browser-restricted API key that is set up in the Google Maps APIs Premium Plan project created for you when you purchased the Premium Plan. Alternatively, you can use a client ID in combination with URL registration (instead of an API key).
For more information, see the detailed guides below for Standard Plan and Premium Plan customers.

Step 2: Add the API key to your application

When loading the Maps JavaScript API, substitute YOUR_API_KEY in the code below with the API key you got from the previous step.

<script async defer src="https://maps.googleapis.com/maps/api/js ... ck=initMap"
type="text/javascript"></script>


Has any one got any ideas?

Any help appreciated.

Ray

Post Reply