Meteorite Landing Map

The flow injects the various meteorite landings from NASA's public API into a worldmap node, which you can then view once deployed.

[{"id":"f31ebe63cc338205","type":"tab","label":"Flow 4","disabled":false,"info":"","env":[]},{"id":"634830032d2f686f","type":"comment","z":"f31ebe63cc338205","name":"Meteorite Landings","info":"Press the button on the `inject` node to get the list of earthquakes from the USGS public API.\nThis returns a CSV - which we then parse using the `CSV` node into individual objects.\nThese are then passed through a `function` to remap the property names into ones suitable for the map node, and passed to the `web-socket` out node.\nThe map will be served at http://localhost:1880/worldmap\nYou will need to zoom out :-)","x":350,"y":160,"wires":[]},{"id":"f540d162c6f534f6","type":"inject","z":"f31ebe63cc338205","name":"meteorites","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":330,"y":220,"wires":[["7f929cd8e8602b5f"]]},{"id":"7f929cd8e8602b5f","type":"http request","z":"f31ebe63cc338205","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://data.nasa.gov/resource/gh4g-9sfh.csv","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":530,"y":220,"wires":[["591196e3a68e25a8"]]},{"id":"591196e3a68e25a8","type":"csv","z":"f31ebe63cc338205","name":"","sep":",","hdrin":true,"hdrout":"none","multi":"one","ret":"\\n","temp":"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":690,"y":220,"wires":[["3c7c0813d2d9f0d3"]]},{"id":"3c7c0813d2d9f0d3","type":"function","z":"f31ebe63cc338205","name":"remap property names","func":"msg.payload.lat = msg.payload.reclat;\nmsg.payload.lon = msg.payload.reclong;\nmsg.payload.name = msg.payload.name;\n\ndelete msg.payload.latitude;\ndelete msg.payload.longitude;\ndelete msg.payload.type;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":640,"y":340,"wires":[["5cd14df041b1ce12","f69f3b8fc7bdb9e5"]]},{"id":"f69f3b8fc7bdb9e5","type":"worldmap","z":"f31ebe63cc338205","name":"","lat":"20","lon":"0","zoom":"2","layer":"OSMG","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"false","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"false","showruler":"false","allowFileDrop":"false","path":"/worldmap","overlist":"DR,CO,RA,DN","maplist":"OSMG,OSMC,EsriC,EsriS,UKOS","mapname":"","mapurl":"","mapopt":"","mapwms":false,"x":880,"y":340,"wires":[]},{"id":"5cd14df041b1ce12","type":"debug","z":"f31ebe63cc338205","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":880,"y":240,"wires":[]}]

Flow Info

Created 1 year, 10 months ago
Rating:

Owner

Actions

Rate:

Node Types

Core
  • comment (x1)
  • csv (x1)
  • debug (x1)
  • function (x1)
  • http request (x1)
  • inject (x1)
Other
  • tab (x1)
  • worldmap (x1)

Tags

  • worldmap
  • meteor
  • space
  • nasa
  • meteorite
  • meteor-landing
  • meteorite-landing
  • map
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option