Skip to content

HelixSpiral/noaa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOAA - National Oceanic and Atmospheric Administration

This is a simple Golang wrapper for parsing data from various APIs provided by NOAA.

There weren't any packages that I could find that performed the functions I needed, so I wrote this one. Woefully incomplete in it's current state but PRs are welcome.

I do intend to fully flesh this out at some point in the future, but for now it solves the immediate problem I had.

Usage - NDBC - National Data Buoy Center

Craete a new wrapper

n := noaa.New()

Call any of the exported functions

// Get the latest picture from a buoy camera
resp, err := n.NDBC.Station(44027).Camera.Latest()
if err != nil {
    panic(err)
}

log.Println(resp)

// Get the last 5 days of data from a buoy
resp2, err := n.NDBC.Station(44027).RealTime.Standard()
if err != nil {
    panic(err)
}

log.Println(resp2)