I did not want another alert app on my phone. I already had apps that shouted at me for everything: a small quake on the other side of the planet, a solar storm that never touched my radio, a weather warning for a county I do not live in. After a week of that, I stopped reading any of them. That is the worst outcome for an urgent alert. If it shouts all the time, you learn to ignore it, and then the one time it matters, you ignore that too.
So I built the opposite: a Worker that stays quiet most days, and only speaks when a threshold I set myself is really crossed. One new Cloudflare Worker, the same Bark relay from the earlier articles, and five official sources. Nothing else moves. This is the eighth article in the series, and it follows the same rules as the others: everything below is done by hand, in a browser, with checkpoints, and the full code is in this article, so you can copy it from here.
Why I chose these sources, and no others
I picked sources by two tests only: reliability and stability. If a source failed either test, I left it out, even if it looked interesting.
Reliability means the data comes from a sensor or an official agency, first hand. The US Geological Survey, USGS, measures earthquakes with its own seismic network. The Space Weather Prediction Center, SWPC, part of NOAA, measures solar activity and the geomagnetic field. The National Weather Service, NWS, also part of NOAA, issues tsunami warnings. The Global Disaster Alert and Coordination System, GDACS, run by the European Commission and the United Nations, grades disasters by impact. None of these are social media posts, none are second-hand aggregators, none are someone’s guess. When one of them says something happened, something really happened, measured by an instrument or declared by the agency in charge.
Stability means the source will still be there next year, in the same format. All five have lived for years, with stable feeds: USGS GeoJSON, SWPC JSON, the NWS API, GDACS RSS. I am not scraping a web page that can change layout tomorrow, and I am not depending on a volunteer feed that can go dark. An article like this one cannot be updated every week, so the sources in it have to be boring in the best sense: same address, same format, year after year.
That is also why I did not add local weather warnings, social media earthquake reports, or crowd-sourced spotter networks. They are not bad sources, but they fail one of my two tests for this job: too many, too local, too changeable, or too easy to get wrong. A system that pushes you at 3 a.m. has to be right, and it has to be right in the same way next year.
The thresholds I settled on
Here are the five lines, exactly as they are in the code below. If you copy the code, you get these lines. If you want different lines, change only the numbers in the code, and say so to yourself plainly: you are choosing more noise, or less warning, on purpose.
- Earthquake: USGS magnitude 6.0 or more. Magnitude is the size of the quake, on the scale seismologists use. Below 6.0, quakes happen too often around the world to push every one. At 6.0 and above, it is a serious quake, worth waking up for, wherever it is.
- Solar storm: NOAA Kp index 7 or more, that is G3 or more. The Kp index measures how disturbed Earth’s magnetic field is, from 0 to 9. NOAA grades storms G1 to G5. G1 is Kp 5, G2 is Kp 6, G3 is Kp 7. I first drafted G2, then raised it to G3. At G2 my phone would speak too often for storms that barely touched my radio. At G3, the storm is strong, radio propagation really changes, and the push is worth it. That is the trade, stated plainly.
- Solar flare: GOES X-ray flux at X-class. GOES satellites measure X-ray flux from the Sun, in watts per square metre. X-class means 1e-4 or more. M-class is ten times smaller, and happens far more often. I only push X-class, because that is the level where a flare is big enough to matter on its own.
- Tsunami: NWS Tsunami Warning only. The National Weather Service issues four levels: Information Statement, Watch, Advisory, and Warning. Only Warning means a tsunami is expected and you should act. I push Warning only. A Watch or an Advisory is not an action message, and pushing it as if it were would be wrong.
- Other disasters: GDACS Red only. GDACS grades Green, Orange, and Red by expected impact. Red is the top grade. I push Red only, and I do not push GDACS earthquake items at all, for a reason explained in the next section.
Which data duplicates, and what I do about it
You asked for this part, so here it is, plainly. Yes, some of these sources overlap. Keeping them anyway is a choice, and it only works if you handle the overlap on purpose, not by accident.
USGS and GDACS both report big earthquakes. That is a real duplicate. GDACS builds its earthquake alerts largely from USGS data, then adds an impact estimate. If I pushed both, you would get two pushes for one quake, minutes apart, saying almost the same thing. So in my code, GDACS earthquake items are dropped on purpose. USGS is faster and it is the primary measurement, so USGS wins. GDACS in my setup only adds disasters USGS does not cover: floods, tropical cyclones, volcanoes, and similar Red events. Keeping GDACS is still worth it, because of those other disasters. Keeping its earthquake items is not.
An earthquake and a tsunami warning for the same event are not a duplicate, even though they come from the same quake. The earthquake push tells you a big quake happened. The tsunami Warning tells you a wave is expected, for a named coast, and you should move inland. Those are two different actions. I keep both, and the code treats them as separate events, with separate dedup keys, so one does not suppress the other.
Kp and X-ray flux are not duplicates either. They measure two different things. X-ray flux measures a flare, a burst from the Sun. Kp measures what that burst, or a solar wind stream, does to Earth’s magnetic field hours later. A big flare does not always cause a big geomagnetic storm, and a big storm can come without an X-class flare. I push both, because they warn you about different stages. If you only pushed one, you would miss the other half of the story.
What the code does, in one sentence: every event gets a key made of its source and its own event id, and a key that was already pushed is never pushed again. GDACS earthquake items never get a key at all, because they are dropped first. That is the whole dedup logic. It is simple on purpose. A clever dedup that tries to match events across sources by location and time will guess wrong sooner or later, and a wrong guess here means a missed warning or a double warning. I would rather drop one known duplicate class outright than guess at matching the rest.
Pros and cons, source by source
USGS earthquake feed. Good: fastest authoritative magnitude and location, stable GeoJSON, updated every minute. Bad: magnitudes get revised after the first report, and small quakes are numerous, so the 6.0 filter is not optional, it is the whole point. If you lower it to 5.0, your phone will not stop.
NOAA SWPC Kp index. Good: official, global, one number for the whole planet, easy to threshold. Bad: Kp is a 3-hour index. It does not move minute by minute, and a G3 push can arrive well after the storm started. Treat it as a condition alert, not a minute alert. If you need minute data, Kp is the wrong tool, and no threshold will fix that.
GOES X-ray flux. Good: real-time, quantitative, a clear X-class line. Bad: an X-class flare alone does not guarantee a geomagnetic storm. The flare has to be aimed at Earth. So an X push means “a big flare happened”, not “your radio will fail tonight”. Read it that way.
NWS tsunami warnings. Good: official, action-only at Warning level, very low false alarm rate at that level. Bad: warnings are area-specific. A Warning for one coast is not a Warning for yours. Read the area in the title before you act, and never forward a warning without its area.
GDACS Red alerts. Good: impact-based, one feed for many disaster types, useful for floods and cyclones that no other source in this system covers. Bad: it is derived, not primary, so it is slower than USGS, and its impact grade is an estimate, not a measurement. Use it as “something big is happening”, then check the primary agency for details.
How it works, in brief
Every five minutes, Cloudflare runs the Worker. The Worker fetches the five feeds, filters each one by the thresholds above, drops GDACS earthquake items, checks the dedup store, and pushes anything new through your relay Worker from the earlier articles. Every push is title-only, no body. I explained why in the first article: from a speaker, you hear only the beginning, about ten to twenty words. A title like “地震 M6.2” or “太阳风暴 G3” is heard in full. A long title is not.
Only Cloudflare moves. Bark does not move, your relay does not move, GitHub does not move. You do not need a new Bark key, and you do not need a token for this deployment. The code below is pasted in full, so you can copy it from this article. It needs no library and no build step.
The code, in full
Copy everything in the box below, from the first line to the last line. Do not copy only part of it. The code uses only fetch, which Cloudflare Workers already provide. It needs a KV binding named DEDUP, explained in the deploy steps, so the same event is never pushed twice.
async function push(env, title) {
const res = await fetch(env.RELAY_URL + '/push', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'X-Relay-Secret': env.RELAY_SECRET },
body: JSON.stringify({ title: title })
});
return res.ok;
}
async function alreadyPushed(env, key) {
if (env.DEDUP) {
const v = await env.DEDUP.get(key);
if (v) { return true; }
await env.DEDUP.put(key, '1');
}
return false;
}
function itemText(xml, tag) {
const a = xml.indexOf('<' + tag + '>');
if (a === -1) { return ''; }
const b = xml.indexOf('</' + tag + '>', a);
if (b === -1) { return ''; }
return xml.slice(a + tag.length + 2, b).trim();
}
async function checkQuakes(env, out) {
const r = await fetch('https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson');
if (r.ok) {
const data = await r.json();
const feats = data.features || [];
for (let i = 0; i < feats.length; i++) {
const p = feats[i].properties || {};
if (p.mag >= 6.0) {
const key = 'usgs-' + feats[i].id;
if (await alreadyPushed(env, key)) { continue; }
const d = new Date(p.time);
const t = (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + String(d.getMinutes()).padStart(2, '0');
out.push('地震 M' + p.mag + ' ' + t);
}
}
}
}
async function checkKp(env, out) {
const r = await fetch('https://services.swpc.noaa.gov/json/planetary_k_index_1m.json');
if (r.ok) {
const data = await r.json();
const last = data[data.length - 1];
if (last) {
const kp = Number(last.kp_index);
if (kp >= 7) {
const lastPush = env.DEDUP ? await env.DEDUP.get('kp-last') : null;
const now = Date.now();
if (lastPush === null) { if (env.DEDUP) { await env.DEDUP.put('kp-last', String(now)); } out.push('太阳风暴 G3 Kp' + kp); }
else {
if (now - Number(lastPush) > 6 * 3600 * 1000) { if (env.DEDUP) { await env.DEDUP.put('kp-last', String(now)); } out.push('太阳风暴 G3 Kp' + kp); }
}
}
}
}
}
async function checkFlare(env, out) {
const r = await fetch('https://services.swpc.noaa.gov/json/goes/primary/xrays-1-day.json');
if (r.ok) {
const data = await r.json();
const last = data[data.length - 1];
if (last) {
const flux = Number(last.flux);
if (flux >= 0.0001) {
const key = 'goes-' + last.time_tag;
if (await alreadyPushed(env, key)) { return; }
out.push('太阳耀斑 X级 ' + last.time_tag);
}
}
}
}
async function checkTsunami(env, out) {
const r = await fetch('https://api.weather.gov/alerts/active?event=Tsunami%20Warning', { headers: { 'User-Agent': 'bark-alert-worker' } });
if (r.ok) {
const data = await r.json();
const feats = data.features || [];
for (let i = 0; i < feats.length; i++) {
const p = feats[i].properties || {};
const key = 'nws-' + feats[i].id;
if (await alreadyPushed(env, key)) { continue; }
const area = (p.areaDesc || '').slice(0, 40);
out.push('海啸预警 ' + area);
}
}
}
async function checkGdacs(env, out) {
const r = await fetch('https://www.gdacs.org/xml/rss.xml');
if (r.ok) {
const xml = await r.text();
const parts = xml.split('<item>');
for (let i = 1; i < parts.length; i++) {
const level = itemText(parts[i], 'gdacs:alertlevel');
const etype = itemText(parts[i], 'gdacs:eventtype');
if (level !== 'Red') { continue; }
if (etype === 'EQ') { continue; }
const guid = itemText(parts[i], 'guid');
const key = 'gdacs-' + guid;
if (await alreadyPushed(env, key)) { continue; }
const title = itemText(parts[i], 'title').replace('&', 'and');
out.push('GDACS 红色 ' + title.slice(0, 60));
}
}
}
async function checkAll(env, dry) {
const out = [];
try { await checkQuakes(env, out); } catch (e) {}
try { await checkKp(env, out); } catch (e) {}
try { await checkFlare(env, out); } catch (e) {}
try { await checkTsunami(env, out); } catch (e) {}
try { await checkGdacs(env, out); } catch (e) {}
if (dry === false) {
for (let i = 0; i < out.length; i++) { await push(env, out[i]); }
}
return out;
}
export default {
async scheduled(event, env, ctx) { await checkAll(env, false); },
async fetch(request, env, ctx) {
const url = new URL(request.url);
if (url.pathname === '/check') {
const out = await checkAll(env, true);
return new Response(JSON.stringify({ would_push: out }), { headers: { 'Content-Type': 'application/json' } });
}
return new Response('bark-alert-worker is running.');
}
};
Read the code once before you paste it, so you know what you are running. The Kp check is the only one with a time rule instead of an event id: Kp is an index, not an event, so the code pushes at most once every six hours while Kp stays at 7 or more. Without that rule, a storm lasting a day would push every five minutes. The GDACS check drops earthquake items before dedup, exactly as explained above. The tsunami check asks the NWS API for Warning only, not Watch or Advisory, because the URL says so.
Deploy it, step by step
1. Write down two things first
Your relay Worker’s address, without /push at the end, and your relay passphrase, the same one you set for the relay Worker in the earlier articles. Cloudflare encrypts secrets, so you cannot view an old passphrase again. If you forgot it, reset it on the relay Worker first, then use the new one here too. If the two do not match, the relay will refuse the push with 401.
2. Create the Worker
Sign in to dash.cloudflare.com, open Workers & Pages, click Create, choose Worker, name it bark-alert-worker, and click Deploy. You now have an empty Worker. That is normal.
3. Paste the code above
Open bark-alert-worker, click Edit code, delete everything in the editor, paste the full code from the box above, and click Deploy. Check at this point: the Worker deploys with no error, and opening its address shows “bark-alert-worker is running.”
4. Fill in the two variables
On the Worker’s page, click Settings, find Variables and Secrets, and add RELAY_URL as a plain variable, your relay address only, and RELAY_SECRET as a secret, the same passphrase as your relay Worker. Nothing here is mine, and nothing here goes in the code.
5. Bind KV, or the same event will push again
In Cloudflare, find KV, create a namespace named bark-alert-dedup, then back on bark-alert-worker, add a KV binding with variable name DEDUP, selecting that namespace. Without this binding, the dedup checks in the code do nothing, and Cloudflare running many copies will push the same quake more than once. Do not skip this step.
6. Turn on the cron trigger
On the Worker’s page, find Triggers, then Cron Triggers, and add */5 * * * *, every five minutes. Without a trigger, the Worker only runs when you open its address, and no alert will ever arrive on its own.
7. Test it before you trust it
Open the Worker’s address with /check at the end, in a browser. A good result is a JSON list, usually empty, because most days no threshold is crossed. An empty list is normal, not an error. If the list is not empty, read it carefully: each entry is something that would push right now. Do not turn on the cron trigger and walk away until /check opens cleanly and the KV binding is in place. Then wait for a real event. When one crosses a threshold, your phone should speak a short title, and nothing else. That quiet, most days, is the point.
Appendix: three pitfalls that will actually stop you
Only three, because only three really stop people. The rest is in the steps above.
1. A magnitude gets revised. USGS first reports a quake fast, then revises the magnitude as more stations report. A first push saying M6.1 can later be revised to M5.9. Do not treat the first number as final, and do not forward a push without checking the official USGS page first. The push tells you to look, it is not the final record.
2. Kp does not move minute by minute. Kp is a 3-hour index. A G3 push can arrive well after the storm started, and Kp can stay high for hours. If you expect a minute-by-minute alert, you will think the system is broken when it is simply measuring a slow thing. Judge it by the condition, not by the minute.
3. A tsunami Warning is for a named coast, not for everywhere. The push title carries the area, cut short. Read it before you act, and never forward a warning without its area. A Warning for one coast, forwarded without its area, becomes a false alarm for everyone else, and that is exactly how a good alert system loses trust.
Sources
- USGS earthquake feed: https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson
- NOAA SWPC planetary Kp index: https://services.swpc.noaa.gov/json/planetary_k_index_1m.json
- NOAA SWPC GOES X-ray flux: https://services.swpc.noaa.gov/json/goes/primary/xrays-1-day.json
- NWS tsunami warnings: https://api.weather.gov/alerts/active?event=Tsunami%20Warning
- GDACS alerts: https://www.gdacs.org/xml/rss.xml
- The relay this Worker pushes through, from the second article: One App, Two Websites: Instant Ham Radio Reminders
中文版
我不想要手机上再多一个什么都喊的提醒软件。我以前用的那些,地球另一边一个小地震也喊,根本没影响到我的太阳风暴也喊,不是我住的县的天气预警也喊。喊了一个星期,我就全都不看了。这对紧急提醒来说是最坏的结果:天天喊,你就学会了不理它,等真正要紧的那一次来了,你还是不理它。
所以我做了反过来的东西:一个平时基本不说话的 Worker,只有我自己定的线真的被越过了,它才说一句话。一个新的 Cloudflare Worker,前面文章里那个 Bark 中转,还是五个官方来源,别的东西都不动。这是系列第八篇,规矩跟前面一样:下面每一步都是在浏览器里亲手做的,都有核对点,代码全文贴在上面,你可以从这里直接复制。
为什么只选这几个来源
我选来源只看两条:可靠、稳定。哪条不过,我就不要,哪怕它看起来很有意思。
可靠,是说数据来自传感器或者官方机构,是第一手。美国地质调查局 USGS,用自己的地震台网测地震;美国海洋大气局 NOAA 下面的空间天气预报中心 SWPC,测太阳活动和地磁场;同样 NOAA 下面的国家气象局 NWS,发海啸预警;欧盟和联合国合办的全球灾害预警系统 GDACS,按影响给灾害分级。这些都不是社交媒体上的传言,不是二手聚合,不是某个人猜的。它们说发生了,就是仪器测到了,或者主管机构宣布了。
稳定,是说明年、后年它还在,而且格式不变。上面五个都活了很多年了,接口也稳定:USGS 的 GeoJSON、SWPC 的 JSON、NWS 的 API、GDACS 的 RSS。我不是在爬一个明天可能改版的网页,也不是靠一个随时可能停的个人源。这篇文章不可能每周更新,所以里面的来源必须无聊一点才好:地址不变、格式不变,年年都一样。
也是因为这两条,我没加本地天气预警、社交媒体上的地震消息、众包观测网。它们不是不好,是对这个活儿来说不过关:太多、太本地、变得太快、太容易错。半夜三点把你喊起来的提醒,必须是对的,而且明年还得用同样的方式对。
我定的五条线
下面五条,就是代码里写的那五条。你复制代码,就得到这五条。你想改,只改代码里的数字,但要跟自己说清楚:你是在主动选择多一点吵,还是少一点提醒。
- 地震:USGS 震级 6.0 以上。震级就是地震学家用的那个大小。6.0 以下,全世界的地震太多了,每条都推,手机就没停过。6.0 以上,是正经的大地震,不管在哪儿,都值得被叫醒。
- 太阳风暴:NOAA Kp 指数 7 以上,也就是 G3 以上。Kp 指数是量地球磁场扰动程度的,0 到 9。NOAA 把风暴分成 G1 到 G5,G1 是 Kp 5,G2 是 Kp 6,G3 是 Kp 7。我最早草拟的是 G2,后来提到了 G3。G2 的时候手机说得太勤了,很多风暴根本没怎么影响我的电台。G3 是强风暴,电波传播真的变了,这时候推一句才值。这个取舍,我就明说了。
- 太阳耀斑:GOES X 射线流量到 X 级。GOES 卫星测太阳的 X 射线流量,单位是瓦每平方米。X 级就是 1e-4 以上。M 级小十倍,常见得多。我只推 X 级,因为只有这个级别的耀斑,单凭自己就够大了。
- 海啸:NWS 海啸预警 Warning 一档才推。国家气象局分四档:信息说明、观察、建议、预警。只有预警 Warning 是说海啸要来了、要行动。我只推这一档。观察和建议不是行动消息,把它们当行动消息推,就是推错了。
- 其他灾害:GDACS 红色一档才推。GDACS 按影响分绿、橙、红,红是最高档。我只推红,而且 GDACS 的地震条目我根本不推,原因在下一节。
哪些数据会重复,我是怎么处理的
这部分是你让我讲明白的,我就直说了。是的,有的来源确实重叠。留着它们可以,但重叠必须是有意处理的,不能靠运气。
USGS 和 GDACS 都会报大地震,这是真重复。GDACS 的地震预警,很大程度上就是拿 USGS 的数据,再加一个影响估计。两边都推,你就会为一次地震收到两条,隔几分钟,内容差不多。所以我的代码里,GDACS 的地震条目是故意扔掉的。USGS 更快、是原始测量,USGS 赢。GDACS 在我这里只补 USGS 不管的灾害:洪水、热带气旋、火山,等等。留 GDACS 是为了这些,留它的地震条目不是。
一次地震和它引发的海啸预警,不是重复,哪怕是同一次地震。地震那条告诉你大地震发生了。海啸预警那条告诉你某个海岸要有浪来了、要往内陆走。这是两个不同的行动。我两条都留,代码里也是两个不同的去重键,一条不会把另一条压掉。
Kp 和 X 射线流量也不是重复。它们测的是两样东西。X 射线流量测的是耀斑,太阳上的一次爆发。Kp 测的是这次爆发、或者太阳风,几个小时后对地球磁场做了什么。一个大耀斑不一定带来大地磁暴,没有 X 级耀斑也可能有大地磁暴。我两条都推,因为它们讲的是不同阶段。只推一条,就会漏掉另一半。
代码里的去重,一句话就能说清:每个事件都有一个键,是来源加它自己的事件编号,推过的键就不再推。GDACS 的地震条目连键都没有,因为第一步就扔掉了。就这么简单。我不想搞一个靠猜位置和时间来跨来源配对的聪明去重,那种猜法迟早猜错,猜错在这里就是漏报或者 double 提醒。我宁可把一类已知的重复直接扔掉,也不要去猜剩下的。
每个来源的优劣对比
USGS 地震源。优点:最快的权威震级和位置,GeoJSON 稳定,每分钟更新。缺点:震级事后会修正,而且小地震太多了,所以 6.0 这条过滤线不是可有可无,是整个系统的命。你把它降到 5.0,手机就停不下来了。
NOAA SWPC 的 Kp 指数。优点:官方、全球、一个数字就能定线。缺点:Kp 是 3 小时的指数,不是一分钟一变的,G3 的提醒可能在风暴开始很久以后才到。把它当成状态提醒,别当成分钟提醒。要分钟级数据,Kp 本来就不是那个工具,换什么阈值都没用。
GOES 的 X 射线流量。优点:实时、有数字、X 级那条线很清楚。缺点:X 级耀斑本身不保证一定有地磁暴,耀斑得正对着地球才行。所以 X 的提醒意思是“发生了一次大耀斑”,不是“你今晚的电台一定会坏”。按这个意思去读它。
NWS 的海啸预警。优点:官方、只推预警一档的话误报率非常低。缺点:预警是按地区发的。某个海岸的预警,不是你的海岸的预警。标题里的地区一定要看,转发的时候绝不能把地区丢掉。
GDACS 红色预警。优点:按影响分级,一个源能覆盖很多种灾害,洪水、气旋这些是这个系统里别的来源不管的。缺点:它是派生的,不是原始测量,所以比 USGS 慢,而且它的影响等级是估计,不是测量。把它当成“出大事了”的信号,细节再去查主管机构。
部署步骤,跟英文版一样
先写下两样东西:中转 Worker 的地址(不要带 /push),和中转的口令,跟前面文章里那个口令一样。忘了口令就先在中转上重置,再两边用同一个新的,不然中转会用 401 拒绝你。
然后在 Cloudflare 新建一个 Worker,起名 bark-alert-worker,点 Deploy。打开它,点 Edit code,把编辑器里的东西全删掉,把上面英文部分那段完整代码粘贴进去,点 Deploy。地址打开显示 “bark-alert-worker is running.”,这一步就过了。
再去 Settings 里的 Variables and Secrets,加 RELAY_URL(普通变量,中转地址)和 RELAY_SECRET(保密,就是那个口令)。然后去 KV 新建一个叫 bark-alert-dedup 的命名空间,回到 Worker 上绑定,变量名写 DEDUP。没有这一步,去重是不起作用的,Cloudflare 跑很多个副本,同一个地震能推你好几次,别跳过。
最后加 Cron 触发器,写 */5 * * * *,每五分钟跑一次。没有触发器,Worker 只有你打开地址的时候才跑,提醒永远不会自己来。
测一下再信它:浏览器打开 Worker 地址,后面加 /check。平时大概率是个空列表,空是正常的,不是坏了。列表不空的话,逐条看清楚,每条都是现在就会推的东西。等 /check 能干净打开、KV 也绑好了,再去等一次真事件。真事件来了,手机只说一句短标题,别的什么都不说。平时安静,就是这个系统想要的样子。
附录:真正会卡住人的三条
只写三条,因为真正卡人的就三条,别的都在上面的步骤里了。
1. 震级会被修正。USGS 报得快,事后会根据更多台站修正震级。第一条推说 M6.1,后来可能改成 M5.9。别把第一条数字当最终结果,行动之前先去 USGS 官方页看一眼。提醒是让你去看,不是最终记录。
2. Kp 不是分钟级的东西。Kp 是 3 小时的指数。G3 的提醒可能在风暴开始很久以后才到,而且 Kp 高起来能持续好几个小时。你要是按分钟提醒的标准去 judge 它,就会觉得它坏了,其实它只是在量一个慢的东西。按状态去看它,别按分钟去看它。
3. 海啸预警是按地区发的,不是全世界通用的。标题里带的地区,一定要看。转发的时候把地区丢掉,就是把一个地方的预警变成所有人的假警报,好系统就是这么丢掉信任的。