wind-js-server
v0.0.3
Published
Demo rest service to expose Grib2 wind forecast data as JSON
Downloads
2
Readme
wind-js-server
Simple demo rest service to expose GRIB2 wind forecast data (1 degree, 6 hourly from NOAA) as JSON.
Consumed in wind-js-leaflet. Contains a pre-packaged copy of grib2json for conversion.
Data Vis demo here: http://danwild.github.io/wind-js-leaflet/
Note that this is intended as a crude demonstration, not intended for production use. To get to production; you should improve upon this or build your own.
install, run:
(assumes you have node and npm installed)
npm install
npm start
endpoints
- /latest returns the most up to date JSON data available
- /nearest returns JSON data nearest to requested
- $GET params:
timeIso
an ISO timestamp for temporal targetsearchLimit
number of days to search beyond the timeIso (will search backwards, then forwards)
- $GET params:
- /alive health check url, returns simple message
License
MIT License (MIT)