[WordPress] 外掛分享: Earthquake Monitor

WordPress 外掛 Earthquake Monitor 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Earthquake Monitor」是 2011-05-14 上架。
  • 目前有 60 個安裝啟用數。
  • 上一次更新是 2020-03-31,距離現在已有 1860 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.0.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.3 以上。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

crisvangeel |

外掛標籤

widget | monitor | earthquake | geological |

內容簡介

地震監測器是一個可自訂的小工具,可以從美國地質調查局的數據中顯示全球的地震概況。您可以在小工具中顯示它(或使用多個小工具),或使用 [eqmonitor] 短碼。所有請求都可以被緩存,因此它不會減慢您的網站速度。

任意部分

顯示格式字段現在是可自訂的字段。您可以決定小工具如何在此小工具的“限制”內顯示連結。
您可以在顯示格式字段中使用 HTML 標籤。
如果您使位置可鏈接,它將鏈接到美國地質調查局的網站,提供有關地震的詳細信息。
日期格式與 PHP 的 date() 函数兼容。有關詳細信息,請參閱 date。
根據 USGV 網站,過去一小時、一天和七天的餵養每 5 分鐘更新一次。 30 天的餵養每 15 分鐘更新一次。
不要將緩存計時器設置得太低。它將在網站加載時從外部網站檢索新的餵養。這可能會影響您的加載時間。我建議設置為 3600 秒(1 小時)

一些示例,以向您展示模板變量如何工作

Aprox. {hrtime} ago an earthquake with the {mag} struck {locreg} (Time {time}) . The exact latitude = {lat} and the longitude = {long}. The quake was measured at {depth_m} km depth.

將解析為

大約 2 小時前,一個地震 M 0.4 在北加州發生(時間:周四 21:33:17(UTC))。具體緯度為 38.8402,經度為 -122.8250。地震深度為 2.10 公里。

小工具使用的所有地震都放置在此 HTML 框架中


  • 地震文本 1

  • 地震文本 2

只有使用 [eqmonitor] 短碼的地震可以選擇放置在有序列表中。


  1. 地震文本 1

  2. 地震文本 2

PAGER(全球地震迅速評估)背景

PAGER(全球地震迅速評估)是一個自動化系統,可製作有關世界範圍內重大地震影響的內容,為應急響應人員、政府和援助機構以及媒體提供信息,了解潛在災害的範圍。

PAGER 結果通常在重大地震發生後的 30 分鐘內可用,即確定其位置和震級後不久。然而,在地震發生後的幾分鐘和幾小時內,有關搖晃範圍的信息將不確定,通常隨著獲取並集成到地震源模型中的其他傳感器數據和報告強度而改善。

有關黃色、橙色和紅色警報級別的對應致死閾值分別為 1、100 和 1,000。對於損失影響,黃色、橙色和紅色閾值是通過估計達到 1 百萬、1 億和 10 億美元的損失所觸發的。

當 PAGER 信息未知時,將使用灰色作為默認顏色。

有關 PAGER 的更多信息,請參見:[pager](http://earthquake.usgs.gov/research/pager/)

顏色和/或符號的外觀可以在此插件的 /css 文件夾中的 CSS 文件中進行調整。

圖標/圖片

海嘯圖標可以更改。它位於 /wp-content/plugins/earthquakemonitor/images/tsunami.png

CSS 樣式表設置了此圖像的大小。目前為 14px x 14px。(/wp-content/plugins/earthquakemonitor/css/style.css)

原文外掛簡介

Earthquake Monitor is a customizable widget that shows an overview of earthquakes around the world from the U.S. Geological Surveys data. You can show this in a widget (or multiple widgets) or use the shortcode [eqmonitor]. All requests can be cached so it won’t slow down your site.
Arbitrary section

The display format field is now a customizable field. You determine how the widget displays the links within the ‘limits’ of this widget.
You are allowed to use HTML tags in the display format field.
If you make the Location linkable it will link to the USGS website providing detailed information about the quake.
The date format is compatible with the date() function of PHP. See date for more information.
According to the USGV website the feeds for the past hour,day and 7 days are updated every 5 minutes. The 30 day feeds are updated every 15 minutes.
Don’t configure the cache timer too low. It will retrieve a fresh feed from an external website when the site loads. This can impact your loading times. I recommend 3600 seconds (1 hour)

Some examples to show you how the template variables work
Aprox. {hrtime} ago an earthquake with the {mag} struck {locreg} (Time {time}) . The exact latitude = {lat} and the longitude = {long}. The quake was measured at {depth_m} km depth.
would be parsed into
Aprox. 2 hours ago an earthquake with the M 0.4 struck Northern California (Time Thu 21:33:17 (UTC)) . The exact latitude = 38.8402 and the longitude = -122.8250. The quake was measured at 2.10 km depth.
All earthquakes used by the widget are placed in this HTML frame

  • Earthquake text 1
  • Earthquake text 2

Only earthquakes using the shortcode [eqmonitor] can optionally be placed in ordered lists.

  1. Earthquake text 1
  2. Earthquake text 2

PAGER (Prompt Assessment of Global Earthquakes for Response) background
PAGER (Prompt Assessment of Global Earthquakes for Response) is an automated system that produces content concerning the impact of significant earthquakes around the world, informing emergency responders, government and aid agencies, and the media of the scope of the potential disaster.
PAGER results are generally available within 30 minutes of a significant earthquake, shortly after the determination of its location and magnitude. However, information on the extent of shaking will be uncertain in the minutes and hours following an earthquake and typically improves as additional sensor data and reported intensities are acquired and incorporated into models of the earthquake’s source.
Corresponding fatality thresholds for yellow, orange, and red alert levels are 1, 100, and 1,000, respectively. For damage impact, yellow, orange, and red thresholds are triggered by estimated losses reaching $1 million, $100 million, and $1 billion respectively.
When the PAGER information is not known, the color : GREY will be used as default.
For more info about PAGER see : [pager] (http://earthquake.usgs.gov/research/pager/)
Look and feel of the colors and/or bullets can be adjusted in the CSS file located in the /css folder of this plugin.
Icon / Images
The Tsunami Icon can be changed. It is locatet at /wp-content/plugins/earthquakemonitor/images/tsunami.png
The CSS stylesheet sets the size of this image. Currently it’s 14px by 14px. ( /wp-content/plugins/earthquakemonitor/css/style.css )
Shortcode examples and parameters
Example :
[eqmonitor id="unique1" cachetimer="3600" numberedlist="true" showmax="10" showlink="false" minmagnitude="7" showdaysback="190"]

Important! Each shortcode entry must have it’s own unique code (max 21 chars) . If no unique ID is provided the feed will not cache properly.
Shows a numbered list with max. 10 results without links to the USGS website for more details, with a min. magnitude of 7 from the last 190 days. Tsunami icons will be shown as if unset it will follow the defaults. Results will be cached for 3600 seconds.
This are all parameters that can be used :
showdaysback = Show events till x days ago. (default = 30) (max = 365)
showmax = Show max. results (default = 5) (max = 50)
minmagnitude = Min. Magnitute to show (default = 5) (min = -1 , max = 10)
showlink = Results will be links to USGS (default = true)
showpager = Show pager results (yellow, green , red) colors. (default = true)
showtsunami = If a major event was in an oceanic region, show a little tsunami icon. (default = true)
numberedlist = Use a numbered list instead of unnumbered (default = false)
cachetimer = Numbers of seconds results are cached (default = 3600)
id = Unique ID (max 21 chars) for shortcode. Only a-Z and 0-9 allowed. No special chars.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Earthquake Monitor」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


2.0.0 | 2.0.1 |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Mastodon