diff options
author | Byron Peebles <byron.peebles@gmail.com> | 2015-08-17 14:42:24 -0400 |
---|---|---|
committer | Byron Peebles <byron.peebles@gmail.com> | 2015-08-17 14:42:24 -0400 |
commit | 93fd380210b1849204b91a5bc81f3c3c152443bd (patch) | |
tree | 8b1a3380bdb5a80bd3258913feed4085bb595d31 | |
parent | 32206717a2c0f83e7784bcc9f0f24dc5b8480f59 (diff) |
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.
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -41,14 +41,14 @@ Number of commits to the github/github Git repository, by author: ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▁▁▁▁▁▁▁▁▂▁▁▅▁▂▁▁▁▂▁▁▁▁▁▁▁▁▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁ ``` -Magnitude of earthquakes over 1.0 in the last 24 hours: +Magnitude of earthquakes worldwide 2.5 and above in the last 24 hours: ```sh -› curl http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt --silent | +› curl earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.csv --silent | sed '1d' | - cut -d, -f9 | + cut -d, -f5 | spark - ▅▆▂▃▂▂▂▅▂▂▅▇▂▂▂▃▆▆▆▅▃▂▂▂▁▂▂▆▁▃▂▂▂▂▃▂▆▂▂▂▁▂▂▃▂▂▃▂▂▃▂▂▁▂▂▅▂▂▆▆▅▃▆ +▃█▅▅█▅▃▃▅█▃▃▁▅▅▃▃▅▁▁▃▃▃▃▃▅▃█▅▁▃▅▃█▃▁ ``` Code visualization. The number of characters of `spark` itself, by line, ignoring empty lines: |