WP Google Weather

by Hendrik Will. 2 Comments

This WordPress plugin displays a weather widget using the unofficial Google weather API.

  • Version: 0.5
  • Last Updated: 2010-8-12
  • Compatible up to: 3.0.1

Features

  • show today’s weather
  • show weather forecast for next 3 days
  • specifiy output language
  • choose between Celsius or Fahrenheit
  • comes with predefined CSS style
  • shortcodes to add the widget on single pages and posts.
  • valid XHTML output

Example

You can see a working example down right in my sidebar.

Backend

Wordpress Backend Widget Options

Frontend

Frontend style

Installation

  1. Unzip and upload files the files to wp-content/plugins/wp-google-weather
  2. Activate the plugin
  3. Go to Themes > Widgets and drag WP Google Weather widget to your sidebar
  4. Specify title, city, country (optional), temperature as Celsius or Fahrenheit and language (ISO 639-1 code)
  5. decide whether it should display only today’s weather or also a 3 day forecast

Shortcode for single pages or posts

Example:

[ wp_google_weather city="new york" temperature="f" language="en" forecast="1" ]

The value for temperature can be c for Celsius, default is f for Fahrenheit. If you want to see the forecast set it to 1, default is 0. Remove spaces after [ and before ].

Frequently Asked Questions

Q: What are ISO 639-1 codes?
A: Two letter codes for the country.

Some examples

USA: us
England: en
Germany: de
France: fr

A complete list of the codes can be found at
http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

Requirements

You need at least PHP5,  WordPress version 2.8 or higher and a theme which support widgets.

Download

WP Google Weather at WordPress.org

2 Responses to WP Google Weather

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>