wind-js-server

0.0.3 • Public • Published

wind-js-server NPM version NPM Downloads

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 target
      • searchLimit number of days to search beyond the timeIso (will search backwards, then forwards)
  • /alive health check url, returns simple message

License

MIT License (MIT)

Readme

Keywords

Package Sidebar

Install

npm i wind-js-server

Weekly Downloads

3

Version

0.0.3

License

ISC

Unpacked Size

18.3 MB

Total Files

45

Last publish

Collaborators

  • danwild