earthquake feed example
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 9 Sep 2019 17:19:57 +0000 (19:19 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 9 Sep 2019 22:37:53 +0000 (00:37 +0200)
As seen on <https://zachholman.com/spark/#cooler-usage>, but better suited
to demonstrate table markup.

barcat

diff --git a/barcat b/barcat
index 1c567f4f14c38b9f005f9cd8e25df80eea4deb9c..5863c4c952b527438ef29accfc93b9681de71272 100755 (executable)
--- a/barcat
+++ b/barcat
@@ -355,6 +355,11 @@ Any kind of database query with counts, preserving returned alignment:
     echo 'SELECT count(*),schemaname FROM pg_tables GROUP BY 2' |
     psql -t | barcat -u
 
+Earthquakes worldwide magnitude 1+ in the last 24 hours:
+
+    https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_day.csv |
+    column -tns, | graph -f4 -u -l80%
+
 External datasets, like movies per year:
 
     curl https://github.com/prust/wikipedia-movie-data/raw/master/movies.json |