Code Monkey home page Code Monkey logo

buoy-js's Introduction

Build Status Coverage Status

buoy-js

Parse data from http://www.ndbc.noaa.gov/ and http://tidesandcurrents.noaa.gov

This project is used to parse data in Buoy Buddy Buoy Buddy, an iOS app showing wave and tide data.

Buoy Data

Buoy data can be loaded from the latest observation url: http://www.ndbc.noaa.gov/data/latest_obs/latest_obs.txt

And then passed to Buoy.lastestObservation(rawData) to get an object of stations and their current conditions.

Or it can be loaded from: http://www.ndbc.noaa.gov/data/realtime2/{stationID}.txt

And passed to Buoy.realTime(rawData) to get a single station an its history of conditions.

Tide Data

Tide data can be loaded by using: http://tidesandcurrents.noaa.gov/api/

And then passed to Tide.parse(rawData)

This returns a tide object, that can be passed to Tide.getCurrent(tideObject, forDate) to return the current tide.

To find the next high or low tide, use Tide.getNextHighOrLow(tideObject, forDate)

For both methods, the second argument is Date object, and the default value is now, if left unspecified.

For parsing published Tide Table data, use Tide.parseTideTable(rawData)

Tide Tables can be found on pages like: http://tidesandcurrents.noaa.gov/noaatidepredictions/NOAATidesFacade.jsp?Stationid=8516881

buoy-js's People

Contributors

giannif avatar tunasurf avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.