https://github.com/helixspiral/ndbc
Golang wrapper for the National Data Buoy Center (NDBC)
https://github.com/helixspiral/ndbc
data data-science golang government-data ndbc ndbc-buoy-data noaa noaa-api noaa-buoys noaa-data noaa-weather wrapper wrapper-api wrapper-library
Last synced: 12 months ago
JSON representation
Golang wrapper for the National Data Buoy Center (NDBC)
- Host: GitHub
- URL: https://github.com/helixspiral/ndbc
- Owner: HelixSpiral
- License: gpl-3.0
- Created: 2023-07-24T00:27:12.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T03:24:16.000Z (almost 3 years ago)
- Last Synced: 2025-03-21T10:53:07.327Z (about 1 year ago)
- Topics: data, data-science, golang, government-data, ndbc, ndbc-buoy-data, noaa, noaa-api, noaa-buoys, noaa-data, noaa-weather, wrapper, wrapper-api, wrapper-library
- Language: Go
- Homepage: https://www.ndbc.noaa.gov/
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
NDBC - National Data Buoy Center
---
This is a simple Golang wrapper for parsing data from the [NDBC](https://www.ndbc.noaa.gov/).
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
Craete a new wrapper
```go
n := ndbc.NewAPI()
```
Call any of the exported functions
```go
resp, err := n.GetPictureFromBuoy(44027)
if err != nil {
panic(err)
}
log.Println(resp)
resp2, err := n.GetLatestDataFromBuoy(44027)
if err != nil {
panic(err)
}
log.Println(resp2)
```