這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Weather Spider

描述

Use this plugin to place current weather and/or weather forecast (up to 5 days) from weatherbug.com within your blog and sidebar. Options to show or hide both the current weather and weather forecast. If displaying forecast, choose to display 3, 4, or 5 day forecasts. Comes with a handy widget for your sidebars and an easy-to-use short code for your Pages and Posts.

This plugin requires an API Key which can be obtained for free from http://developer.weatherbug.com/. This plugin will cache the weather data for 15 minutes and uses Ajax to build the weather forecast using semantic markup.

http://www.leonamarant.com/2012/02/07/weather-spider-wordpress-plugin/

螢幕截圖

  • 5 Day (lg) Forecast Display with Current Weather
  • Weather Spider Widget

安裝

Install the plugin

  1. Upload the “weather-spider-display-weather-forecast-on-your-blog” folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Next, Get your API Key from weatherbug.com:

  1. Go to: http://developer.weatherbug.com/
  2. Register for an account
  3. Apply for an API key (be sure to get the REST key – not the GEO key)

Finally, go to Settings > Weather Spider and enter the API Key

Once installed, you can:

  • Add weather forecasts to any sidebar using the WeatherSpider widget
  • Add weather forecasts to a Blog or Page with the shortcode [weatherspider]

常見問題

How do I get an API key from weatherbug.com?
  1. Go to: http://developer.weatherbug.com/
  2. Register for an account
  3. Apply for an API key (be sure to get the REST key – not the GEO key)
How do I use the short code?

To display a weather forecast in a page or a post, you can use the [weatherspider] shortcode. The shortcode has four options, listed below.

  • zip (optional, default=90210): The zip code of the location you want to show the forecast for.
  • size (optional, default=sm): The size of the forecast display. Options: sm (200px wide/3 day forecast), med (250px wide/4 day forecast), lg (300px wide/5 day forecast)
  • showCurrent (optional, default=true): Show the current temperature in the display. Options: true, false
  • showForecast (optional, default=true): Show the current temperature in the display. Options: true, false

EXAMPLE:

[weatherspider zip=”02842″ size=”lg” showCurrent=”false” showForecast=”true”]

評價

There are no reviews for this plugin.

貢獻者及開發者

“Weather Spider” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Weather Spider 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • Initial Release