Skip to content

Instantly share code, notes, and snippets.

@teeler
Forked from kconragan/gist:2408364
Created April 17, 2012 19:15
Show Gist options
  • Save teeler/2408375 to your computer and use it in GitHub Desktop.
Save teeler/2408375 to your computer and use it in GitHub Desktop.
// Takes NDBC Buoy ID, and returns
// series of readings
// Just to generate a URL.
var BuoyURL = function(buoyId) {
return 'http://www.ndbc.noaa.gov/data/5day2/' + buoyId + '_5day.txt';
};
exports.parseBuoyData = function(buoy) {
var buoys = Q.node(request)(BuoyURL(buoy)).then(function(data, err) {
console.log("Data: ", d)
}).end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment