Last active
March 1, 2021 22:38
-
-
Save brunobord/ae72088203b9fbd46dff2cdd330f3310 to your computer and use it in GitHub Desktop.
Earthquakes / Iceland
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL=https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_day.geojson | |
URL=https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson | |
URL=https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.geojson | |
curl $URL | jq '.features[] | |
| select( .properties.place | contains("Iceland")) | |
| { | |
timestamp: .properties.time | (. / 1000 | strftime("%Y-%m-%d %R")), | |
mag: .properties.mag, | |
location: .properties.place, | |
id: .id | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment