
前言介紹
- 這款 WordPress 外掛「National Weather Service Alerts」是 2014-11-03 上架。
- 目前有 100 個安裝啟用數。
- 上一次更新是 2018-02-08,距離現在已有 2641 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.1 以上版本才可以安裝。
- 有 11 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
NWS | SPC | alert | Storm Prediction Center | National Weather Service |
內容簡介
這個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’過濾鉤來修改默認氣象警報類型。
原文外掛簡介
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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「National Weather Service Alerts」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.1 | 1.1.0 | 1.1.1 | 1.2.0 | 1.3.0 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.5 | trunk |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。
