[WordPress] 外掛分享: National Weather Service Alerts

首頁外掛目錄 › National Weather Service Alerts
WordPress 外掛 National Weather Service Alerts 的封面圖片
100+
安裝啟用
★★★☆☆
3.8/5 分(11 則評價)
2959 天前
最後更新
問題解決
WordPress 3.1+ v1.3.5 上架:2014-11-03

內容簡介

這個National Weather Service Alerts外掛讓您輕鬆地在網站上顯示天氣警報。根據您指定的地點,外掛直接從美國國家氣象局網站(http://alerts.weather.gov)取得警報,然後將其解析、排序並輸出到您的網站。基於指定位置警報的嚴重程度,AJAX將自動更新警報。您可以使用郵政編碼、城市和州或州和縣來設置位置。還有一個選項來選擇警報包括範圍,例如僅限您所在縣的警報、僅限您所在州的警報或整個美國的警報。

如果適用,Google地圖將包含多邊形疊加層,以顯示某些警報類型所影響的地區,例如龍捲風警報或山洪警報。

目前,該National Weather Service Alerts外掛僅適用於美國境內的地區。但是,外掛預期使用通用警報協議(CAP)格式的Atom feeds,因此理論上可以使用任何CAP feed。

特點

簡碼
小工具
NWS Alerts設置頁面,用於添加警報欄
潔淨的html5標記
易於覆蓋默認樣式的CSS類
開發人員API(過濾器)

天氣警報

龍捲風警報
嚴重雷暴警報
山洪警報
洪水警報
暴風雪警報
冬季風暴警報
冰凍警報
沙塵暴警報
強風警報

*可以使用’nws_alerts_allowed_alert_types’和‘nws_alerts_sort_alert_types’過濾鉤來修改默認氣象警報類型。

外掛標籤

開發者團隊

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

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

原文外掛簡介

The National Weather Service Alerts plugin allows you to easily display weather alerts on your website. The
alerts are pulled directly from the National Weather Service (http://alerts.weather.gov) based on the location
that you specify and are then parsed, sorted, and output to your website. The alerts are then automatically updated using
AJAX, based on the severity of the alerts for the specified location. The location can be set by using zipcode,
city and state, or state and county. There is also the option to choose the scope of what alerts to include,
such as alerts only for your county, alerts only for your state, or alerts for the entire United States.
If applicable, a Google Map will be included with polygon overlays to show the affected regions of certain alert
types, such as tornado warnings or flash flood warnings.
Currently the National Weather Service Alerts plugin only works for areas within United States. However, the
plugin expects Atom feeds that use the Common Alerting Protocol (CAP) format so in theory any CAP feed could be
used.
Features

Shortcode
Widget
NWS Alerts settings page for adding the Alerts Bar
Clean html5 markup
CSS classes that make it easy to override default styles
Developer API (filters)

Weather Alerts

Tornado Warning
Severe Thunderstorm Warning
Flash Flood Warning
Flood Warning
Blizzard Warning
Winter Storm Warning
Freeze Warning
Dust Storm Warning
High Wind Warning

*The default weather alert types can be modified using the ‘nws_alerts_allowed_alert_types’
and ‘nws_alerts_sort_alert_types’ filter hooks.

文章
Filter
Apply Filters
Mastodon