Skip to content

Commit 93fd380

Browse files
committed
Use new USGS API for earthquake list
The USGS apparently has updated their earthquake list so http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt no longer provides a list of earthquakes. I've updated it to the new API, changing to be 2.5+ mag since that was a more reasonable length spark chart today.
1 parent 3220671 commit 93fd380

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ Number of commits to the github/github Git repository, by author:
4141
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▁▁▁▁▁▁▁▁▂▁▁▅▁▂▁▁▁▂▁▁▁▁▁▁▁▁▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁
4242
```
4343

44-
Magnitude of earthquakes over 1.0 in the last 24 hours:
44+
Magnitude of earthquakes worldwide 2.5 and above in the last 24 hours:
4545

4646
```sh
47-
› curl http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt --silent |
47+
› curl earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.csv --silent |
4848
sed '1d' |
49-
cut -d, -f9 |
49+
cut -d, -f5 |
5050
spark
51-
▅▆▂▃▂▂▂▅▂▂▅▇▂▂▂▃▆▆▆▅▃▂▂▂▁▂▂▆▁▃▂▂▂▂▃▂▆▂▂▂▁▂▂▃▂▂▃▂▂▃▂▂▁▂▂▅▂▂▆▆▅▃▆
51+
▃█▅▅█▅▃▃▅█▃▃▁▅▅▃▃▅▁▁▃▃▃▃▃▅▃█▅▁▃▅▃█▃▁
5252
```
5353

5454
Code visualization. The number of characters of `spark` itself, by line, ignoring empty lines:

0 commit comments

Comments
 (0)