This module makes use of the Google Weather API to display the current temperature, weather condition and a four-day weather forecast, as you can see on the left of the page.
I've implemented the Google Weather Mashup with the use of PHP's cURL library. So please make sure your PHP has the cURL library installed in order to use this module.
Note that this module works only with PHP5 and above because of the use of the PHP function simplexml_load_string which is only available starting with PHP5.
If you find this module useful, and would like to see further development of this project, be a proud sponsor of the kksou Google Weather Module - AJAX version!
You may not edit or remove any copyright or Powered by statements in the kksou Google Weather Module.
However, if you find the module useful and would like to use the module without the "Powered-by" links, you may do so by purchasing a "Powered-by" removal license for only USD $10 per site.
Secured payment is processed by 2checkout.com. All major credit cards are accepted, including Visa, Mastercard and American Express, etc. You can also pay by PayPal. Once the transaction is completed, you will be given a link to download the registered version with the "Powered by" links removed.
Then, make sure your PHP has the cURL library installed. You can do a quick check by doing a simple
<?php
phpinfo();
?>
If your PHP has the cURL library installed, you should see something similar to the following:
If you don't have the cURL library, there are numerous resources on the Internet that gives you very clear instructions on how to install cURL on various platform such as windows, linux, etc.
Download and install the "kksou Google Weather Module".
Make sure the module is published / enabled.
Select a module position where you want to place the module.
That's it! You should now see the kksou Google Weather module displayed in the module position you've specified.
Default City: This is the city that will be displayed when the module is first loaded. For large cities, you can just enter the city name e.g. San Francisco, London, Tokyo, Moscow, without the need to enter the country name.
For some countries (e.g. US, UK and Canada), you can just enter the zip code. E.g. '94305', 'W1A 1AZ'.
Language: Google supported language code in ISO 639-1 format e.g. English is en, French is fr, Italian is it, Japanese is ja, Chinese simplified is zh-cn, Chinese Traditional is zh-tw.
Unit for temperature: Choose between displaying the temperature in °F or °C.
Hide Input Field: If all you want is to display the weather forecast of a particular city, and DO NOT want the user to change that, you can select 'Yes' to hide the input field.
Hide Humidity: Select 'Yes' if you wish to hide the humidity information.
Hide Wind: Select 'Yes' if you wish to hide the wind information.
Hide Forecast: Select 'Yes' if you wish to hide the 4-day weather forecast.
Label for 'City': This is the label that is displayed just before the input field. The default label is 'City'. You can change the label into your own language and label.
Size of Input Field: Size of the input field. Default size is 12.
Request Interval: If you do some research on google, you will see that there arer cases where Google will "ban" your site from accessing the Google Weather API if the request is made too often (e.g. some sites try to get the weather forecast of all cities in US through a robot). By default, I set a interval 3 seconds between each request to Google. This will prevent your users from making too frequent weather forecast requests via your website. If you are not concerned about this, you can reduce this to 1 second.
Set Focus on Input Field: Set the focus (i.e. put the prompt) on the input field for city. Default is Yes.
The entire formatting of the stock quotes is done using CSS. If you do not like the default look and feel of the stock data, you can edit the following CSS file:
Added one more parameter in the config page to allow user to choose whether to set focus on the input field for the city.
v1.0.4 (for Joomla 1.0) and v1.5.4 (for Joomla 1.5)
Released May 06, 2010
Conform to joomla.org guidelines.
User reviews Average user ratings: 4.5 (from 18 users)
Testa December 09, 2009 11:56pm
Doug January 20, 2010 12:37am Perfect
This mod is so simple, so perfect. Once request, on a future update(unless I'm blind and it's here already), the ability to change the place holder pop-up. I'm building a website in the polish language and it used the google language code pl to change everything but the place holder.(I think that's what it is) It says 'change your city...yada yada yada in English but everything else is in Polish.
Thanks again
Malaczarna
kksou January 20, 2010 8:16am
Hi Doug,
Please download the latest version: v1.5.2.
Go to module manager, edit the Google Weather module, and you can now change the popup string to your language in the last 3 fields.
Regards,
/kksou
Doug January 20, 2010 10:36am Amazing
I haven't even d/l'd the new version and I can comment on this...Great!! You also fixed the other concern I was going to mention...The showing of the default city. Nice work again. Thanks
Doug January 20, 2010 11:01am And for ease of use...
I've uninstalled, downloaded, installed and set up the new vision since writing my last comment...That will tell you just how smooth it is.
Doug
Well..it only took 4 minutes but I had to wait 6 more minutes before I could post this...lol
davide January 23, 2010 8:49am not work on my site
Excuse me but does not work on my site, is the circle of research but does not load.
PHP Version 5.2.12
kksou January 23, 2010 8:12pm
Hi,
You need to give more details to allow other people to help you.
Is the cURL library installed in your PHP?
Regards,
/kksou
vtpages January 31, 2010 7:21pm Also getting the endless spinning circle
cUrl is enabled, information is libcurl/7.19.4 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 - site is nemowaterproofing.com. Would really like to be able to use this module, if anyone can help. Thanks.
Terry Hickey February 20, 2010 12:11pm
very nice works perfectly
Andrea Infinito April 20, 2010 1:18pm Problem on Altervista
Hi kksou,
this is a great module! Thank you so much!
Unfortunately it doesn't work on altervista.org site.
I enabled fsock to connect with external sites and curl is enabled as you required.
infinito1971 April 21, 2010 12:55pm Problem solved
The problem was the italian language.
Bye,
infinito1971
bluesky24 April 27, 2010 8:02am Postal zip code
cince a few weeks the city name is in english, before it was in german and i made no changes.
When i entered the zip code, the city was found, now i must enter D-zip code so the german city is found. Without D- the modul found citys in US.
What´s wrong?
Feerico Iglesias May 05, 2010 12:30pm City / Country
I would like to use this module for a newspaper site, but the city does not come up. Instead if I type the city name it comes a smaller one with the same name located in another country. Case in point: Villahermosa, Tabasco Mexico. If you type the "Villahermosa" name it comes Villahermosa Spain.
Question: Is there a way to make sure a specific city would come up? ... and if possible, pre-set some cities within a country?
ed June 10, 2010 8:29pm Date and Time
Love it, but :) How could I also add the current date and time of city?
Tigs July 28, 2010 12:31pm Wind speed UOM
Thank you, for a beginner this was so easy to install. Got it right first time. One question, can one change the wind speed from mph to km/h and if so, how? Request answer in absolute begiiners lingo please.
Kurt August 02, 2010 6:45pm Saint-Barth Island
Please how to add ST BARTHELEMY Island in FRENCH WEST INDIES?
Thx
yt August 10, 2010 12:50pm italian language problem
Even if I define "Label for City" like "City"(in english) or "Città"(in italian), make me show "Citt("à" doesn't show me correct italian alphabet with accent).
But I can correctly see "Città" on my local host. Why?
DigitalBlacksmith August 31, 2010 1:11pm Great Module
One really great feature that would set this apart would be an event planner. I use this on a website where we have a weekly bike ride. It would be nice if the module would show the weather then on the day of the event, switch to an hour by hour. I would think this would be useful to lots of people, how hard would it be to develop?
December 09, 2009 11:56pm
January 20, 2010 12:37am
This mod is so simple, so perfect. Once request, on a future update(unless I'm blind and it's here already), the ability to change the place holder pop-up. I'm building a website in the polish language and it used the google language code pl to change everything but the place holder.(I think that's what it is) It says 'change your city...yada yada yada in English but everything else is in Polish.
Thanks again
Malaczarna
January 20, 2010 8:16am
Hi Doug,
Please download the latest version: v1.5.2.
Go to module manager, edit the Google Weather module, and you can now change the popup string to your language in the last 3 fields.
Regards,
/kksou
January 20, 2010 10:36am
I haven't even d/l'd the new version and I can comment on this...Great!! You also fixed the other concern I was going to mention...The showing of the default city. Nice work again. Thanks
January 20, 2010 11:01am
I've uninstalled, downloaded, installed and set up the new vision since writing my last comment...That will tell you just how smooth it is.
Doug
Well..it only took 4 minutes but I had to wait 6 more minutes before I could post this...lol
January 23, 2010 8:49am
Excuse me but does not work on my site, is the circle of research but does not load.
PHP Version 5.2.12
January 23, 2010 8:12pm
Hi,
You need to give more details to allow other people to help you.
Is the cURL library installed in your PHP?
Regards,
/kksou
January 31, 2010 7:21pm
cUrl is enabled, information is libcurl/7.19.4 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 - site is nemowaterproofing.com. Would really like to be able to use this module, if anyone can help. Thanks.
February 20, 2010 12:11pm
very nice works perfectly
April 20, 2010 1:18pm
Hi kksou,
this is a great module! Thank you so much!
Unfortunately it doesn't work on altervista.org site.
I enabled fsock to connect with external sites and curl is enabled as you required.
Php version: 5.2.9
Curl enabled - Curl information: libcurl/7.18.0 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
I hope this is enough.
Thanks again,
infinito1971
April 21, 2010 12:55pm
The problem was the italian language.
Bye,
infinito1971
April 27, 2010 8:02am
cince a few weeks the city name is in english, before it was in german and i made no changes.
When i entered the zip code, the city was found, now i must enter D-zip code so the german city is found. Without D- the modul found citys in US.
What´s wrong?
May 05, 2010 12:30pm
I would like to use this module for a newspaper site, but the city does not come up. Instead if I type the city name it comes a smaller one with the same name located in another country. Case in point: Villahermosa, Tabasco Mexico. If you type the "Villahermosa" name it comes Villahermosa Spain.
Question: Is there a way to make sure a specific city would come up? ... and if possible, pre-set some cities within a country?
June 10, 2010 8:29pm
Love it, but :) How could I also add the current date and time of city?
July 28, 2010 12:31pm
Thank you, for a beginner this was so easy to install. Got it right first time. One question, can one change the wind speed from mph to km/h and if so, how? Request answer in absolute begiiners lingo please.
August 02, 2010 6:45pm
Please how to add ST BARTHELEMY Island in FRENCH WEST INDIES?
Thx
August 10, 2010 12:50pm
Even if I define "Label for City" like "City"(in english) or "Città"(in italian), make me show "Citt("à" doesn't show me correct italian alphabet with accent).
But I can correctly see "Città" on my local host. Why?
August 31, 2010 1:11pm
One really great feature that would set this apart would be an event planner. I use this on a website where we have a weekly bike ride. It would be nice if the module would show the weather then on the day of the event, switch to an hour by hour. I would think this would be useful to lots of people, how hard would it be to develop?