A simple Yahoo Weather widget
After you have installed the plugin, open the widgets page from your WordPress admin. Drag the Yahoo Weather widget to the sidebar.
A working example of this plugin: http://comenius-bs.slipknotee.com
There are 3 attributes: places, unit and cachetime.
Places. Must be formatted
To get the WOEID for a city, use this website: http://woeid.rosselliot.co.nz
Unit is the temperature unit. ‘c’ for Celsius, ‘f’ for Fahrenheit. (If no unit is set, it displays the default Celsius)
Cachetime is optional. If not set, it will be the default 300 seconds. It means that the script will update the weather data every 300 seconds (5 minutes). You problably don’t ever have to change it.
You can also style the weather. The weather is in a span with a class
- Fixed a small admin panel bug
- Important update: now using WOEIDs for locations. You must update your settings
- Updated the admin panel screenshot with WOEID
- Updated readme.txt (added a working example link)
- Fixed a screenshot
- Updated description
- Added screenshots
- MAJOR UPDATE
- Changed the weather code format. See the Usage section in FAQ
- Removed the support for adding weather to a page. Only widget for now
- Updated the widget admin panel look
- Fixed some HTML misalignment bugs
- Weather in a page was always displayed before all other content. Now displaying where you’ve written the shortcode.
- Weather in a page shortcode city names escaping, now they can include spaces, slashes or any signs
- A change in plugin’s php file description
- Fixed a mistake in HTML
- Fixed the ‘no image’ 3200.png
- Little HTML typo fix
- Fixed a layout bug, now using tables
- Fixed a layout bug
- A few fixes
- Changed plugin’s name to ‘Yahoo Weather’
- Complete rewrite of plugin (now 2x faster)
- Now can display weather in a page/post