Earthquake monitor

Gets the earthquake report from USGS (last day > magnitude 2.5) - and creates one message per quake with time, lat, lon, depth, magnitude and array that detected it.

The particular feed used is http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.csv there are plenty of others to play with - see http://earthquake.usgs.gov/earthquakes/feed/v1.0/

Updated Version - now uses the CSV node to show simple example of extracting data from the CSV feed.

[{"id":"ad65ea26.529a18","type":"inject","z":"9e538f88.61ac7","name":"Quakes","topic":"","payload":"","payloadType":"none","repeat":"900","crontab":"","once":true,"x":208,"y":1026,"wires":[["3a6ff750.c59008"]]},{"id":"3a6ff750.c59008","type":"http request","z":"9e538f88.61ac7","name":"","method":"GET","url":"http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.csv","x":386.5,"y":1025.999755859375,"wires":[["a566f3e5.5a991"]]},{"id":"a566f3e5.5a991","type":"csv","z":"9e538f88.61ac7","name":"","sep":",","hdrin":true,"hdrout":"","multi":"one","ret":"\\n","temp":"","x":556.0833740234375,"y":1026.208251953125,"wires":[["62f3e615.9d0c18"]]},{"id":"e0c32b1c.1f3cd8","type":"comment","z":"9e538f88.61ac7","name":"Earthquake !!!","info":"","x":201.33334350585938,"y":975.9583129882812,"wires":[]},{"id":"62f3e615.9d0c18","type":"debug","z":"9e538f88.61ac7","name":"","active":true,"console":"false","complete":"payload","x":737,"y":1026,"wires":[]}]
dceejay

Flow Info

created 3 years, 6 months ago
updated 1 year, 8 months ago

Node Types

Core
  • comment (x1)
  • csv (x1)
  • debug (x1)
  • http request (x1)
  • inject (x1)

Tags

  • usgs
  • earthquake
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option