-
Sunny
79°F
-
Sat

83/68
-
Sun

78/70
-
Mon

81/71
This is my first Wordpress plugin. It displays a weather widget using the unofficial Google weather API.
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
Frontend
Installation
- Unzip and upload files the files to wp-content/plugins/wp-google-weather
- Activate the plugin
- Go to Themes > Widgets and drag WP Google Weather widget to your sidebar
- Specify title, city, country (optional), temperature as Celsius or Fahrenheit and language (ISO 639-1 code)
- decide whether it should display only today’s weather or also a 3 day forecast
Shortcode for single pages or posts
Example:
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.
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 Wordpress version 2.8 or higher and a theme which allows widgets.
Download
WP Google Weather at Wordpress.org





Recent Comments