[WordPress] 外掛分享: ICIT Weather Widget

首頁外掛目錄 › ICIT Weather Widget
WordPress 外掛 ICIT Weather Widget 的封面圖片
400+
安裝啟用
★★★☆☆
3/5 分(4 則評價)
1796 天前
最後更新
問題解決
WordPress 3.8.1+ v2.5.4 上架:2011-01-04

內容簡介

此外掛使用 OpenWeatherMap API 抓取天氣資料,並新增一個小工具,可將其放置在側邊欄中。它可以透過自訂做適合您主題的方式,而不會達到任何使用上限。

此小工具可進行以下設定:

API 金鑰:必須使用 API 金鑰才能從 OWM 獲取天氣數據;只要輸入一次,就會自動儲存並在未來的小工具中填入
國家:選擇要獲取天氣數據的國家(某些國家沒有平均天氣狀況的結果)
城市:輸入區域名稱以接收天氣結果;如果要使用城市 ID,请前往 OpenWeatherMaps City List。
顯示模式:可以選擇顯示目前天氣的精簡版或顯示當天和接下來三天的天氣預報。
顏色風格:可在兩種風格之間選擇顏色:

風格 1 - 主要顏色:目前天氣的背景色和預報的字體顏色,次要顏色:目前天氣的字體顏色和預報的背景色。
風格 2 - 主要顏色:兩個區段的字體顏色,次要顏色:兩個區段的背景色。

日間主要顏色:使用色彩選取器選擇白天時所需的主要顏色。
夜间主要颜色:使用色彩選取器選擇夜間所需的主要颜色。
日間次要顏色:使用色彩選取器選擇白天時所需的次要顏色。
夜間次要颜色:使用色彩選取器選擇夜間所需的次要颜色。
以攝氏度顯示溫度:將溫度顯示更改為攝氏度而非華氏度。
顯示天氣狀況細節:選擇是否顯示風速、濕度和文字天氣狀況以及溫度和天氣圖標。
以mph顯示風速:將風速顯示更改為英文里每小時而非公里每小時。
快取時間:這是插件在刷新預報數據前的間隔(以分鐘為單位)。
輸出 CSS:切換小工具是否應該輸出其自己的 CSS。
顯示信用鏈接:此外掛完全免費提供。如果您感到友善,請留下此項,以增加我們的網路流量 🙂

您可以透過填入小工具標題文字,覆蓋顯示位置的內容。

詳細使用縮寫的資訊,請參閱常見問題。

已知問題

多個縮寫不會同時在同一篇文章中運作,因為數據是基於小工具 ID 顯示在小工具空間或文章 ID 中使用縮寫時儲存的。
已新增縮短屬性,可讓您向縮寫添加唯一的 ID,以便存儲數據可允許每篇文章多個縮寫。

此小工具應在所有主題中運作,雖然有些主題的樣式會與小工具混合,留下一些看似不適當的部分。

IE7 不支持我們用於天氣顯示的圖示。
可在 IE8+、Chrome、Firefox、Opera 和 Safari 中運作。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.5.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「ICIT Weather Widget」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Weather information is pulled from the OpenWeatherMap API. This plugin adds a widget that can be dropped into any sidebar, can be customised to suit your theme and won’t hit any usage limits.
The widget can be configured as follows:

API key – required to get weather data from OWM, once entered it will be saved and auto filled in future widgets
Country – choose the country to get weather data from. (Some countries do not have an average result for weather conditions)
City – Enter the name of your area to recieve the weather results. If you want to use City ID, go to OpenWeatherMaps City List.
Display Mode – you can choose to show either a compact view of the current weather or show the forecast for the current day and next three days.
Colour Style – Choose between two styles of colouring:

Style 1 – Primary colour: Background colour of current weather and font colour of forecast, Secondary colour: Font colour of current weather and background colour of forecast.
Style 2 – Primary colour: Font colour for both sections, Secondary colour: background colour of both sections.

Primary colour during day – use the colour picker to choose what primary colour you want during the day time.
Primary colour during night – use the colour picker to choose what priamry colour you want during the night time.
Secondary colour during day – use the colour picker to choose what secondary colour you want during the day time.
Secondary colour during night – use the colour picker to choose what secondary colour you want during the night time.
Show Temperature in Celsius – sets the temperature display to degrees celsius rather than farenheit.
Show weather breakdown – choose whether to display the wind, humidity and written weather condition, as well as the temperature and weather icon.
Show Wind Speed in mph – sets the wind speed display to mph rather than km/h.
Cache Time – this is the interval in minutes before the plugin refreshes the forecast data.
Output CSS – toggle whether the widget should output it’s own CSS.
Show Credit Link – this plugin is offered completely free of charge. If you’re feeling kind please leave this in to send some delicious web traffic our way 🙂

You can override what gets displayed for the location by filling in the widget’s title text.
For info on how to use the shortcode, check the FAQs.
Known problems
Multiple shortcodes do not work if they are in the same post, as the data is stored based on the widget ID if displayed in a widget space or the post ID if using the shortcode.
A new shortcode attribute has been added allowing you to add a unique ID to your shortcode which will be used to store data allowing multiple shortcodes per post.
This widget should work in all themes, although some themes styling will mix with the widget leaving bits that look out of place.
IE7 does not support the icons we use for the weather display.
Works in IE8+, Chrome, Firefox, Opera, and Safari.

延伸相關外掛

文章
Filter
Mastodon