-
-
Save teeler/2408375 to your computer and use it in GitHub Desktop.
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
// 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