[WordPress] 外掛分享: WP NG Weather

首頁外掛目錄 › WP NG Weather
WordPress 外掛 WP NG Weather 的封面圖片
20+
安裝啟用
尚無評分
3137 天前
最後更新
問題解決
WordPress 4.5.0+ v1.0.9 上架:2016-05-23

內容簡介

wp-ng-weather是一個簡單的WordPress小工具,可讓您通過使用簡單的縮短代碼,在您的網站中放置天氣小工具,例如:

[ng-weather api-key=”我的API密鑰” city=”Bergamo” locale=”it”]

不需要編程!
wp-ng-weather是Tony Samperi的ng-weather(tonysamperi.github.io/ng-weather/)的包裝器,它是一個AngularJS指令。
天氣數據從http://www.openweathermap.org獲得,但它們需要跟踪API使用情況。
因此,您需要個人的API密鑰才能使用此小工具,請參閱“安裝”以瞭解如何獲取它!
使用免費API密鑰每分鐘可以進行60次調用。

參數

api-key:您從openweathermap.org獲得的API密鑰。必填
city:包含您城市名稱的字符串。如果設置了“city-id”,則不需要此項目
city-id:包含您的城市ID的字符串。如果設置了“city”,則不需要此項目
locale:包含您的國際化設置的字符串。目前僅支持“en”或“it”。默認值為“en”。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.9) 或搜尋安裝

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

原文外掛簡介

wp-ng-weather is a simple widget for WordPress, which allows you to put a weather widget in your website, by using a simple shortcode like this:

[ng-weather api-key=”my-api-key” city=”Bergamo” locale=”it”]

No coding is required!
wp-ng-weather is a wrapper for Tony Samperi’s ng-weather (tonysamperi.github.io/ng-weather/), which is an AngularJS Directive.
Weather data is got from http://www.openweathermap.org, but they need to track api usage.
So you’ll need your personal API KEY to use this widget, see “Installation” to learn how to get one!
With a FREE API KEY it’s possibile to make 60 calls per minute.
parameters

api-key: Your API KEY you got from openweathermap.org. REQUIRED
city: A string with the name of your city. This isn’t required if you set “city-id”
city-id: A string with the ID of your city. This isn’t required if you set “city”
locale: A string with your locale. “en” or “it” are supported at the moment. Default value “en”.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon