Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danwild/wind-js-server
Service to expose Grib2 wind forecast data as JSON
https://github.com/danwild/wind-js-server
data-visualisation data-visualization grib grib2json weather wind
Last synced: about 2 months ago
JSON representation
Service to expose Grib2 wind forecast data as JSON
- Host: GitHub
- URL: https://github.com/danwild/wind-js-server
- Owner: danwild
- License: other
- Created: 2016-04-07T02:29:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-06-13T16:49:53.000Z (over 1 year ago)
- Last Synced: 2024-11-10T15:21:40.862Z (2 months ago)
- Topics: data-visualisation, data-visualization, grib, grib2json, weather, wind
- Language: JavaScript
- Homepage: http://danwild.github.io/wind-js-leaflet/
- Size: 14.4 MB
- Stars: 144
- Watchers: 6
- Forks: 74
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wind-js-server [![NPM version][npm-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url]
Simple demo rest service to expose [GRIB2](http://en.wikipedia.org/wiki/GRIB) wind forecast data
(1 degree, 6 hourly from [NOAA](http://nomads.ncep.noaa.gov/)) as JSON.Consumed in [leaflet-velocity](https://github.com/danwild/leaflet-velocity).
Contains a pre-packaged copy of [grib2json](https://github.com/cambecc/grib2json) for conversion.Data Vis demo here: http://danwild.github.io/leaflet-velocity
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)
```bash
# from project root:
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)[npm-image]: https://badge.fury.io/js/wind-js-server.svg
[npm-url]: https://www.npmjs.com/package/wind-js-server
[npm-downloads-image]: https://img.shields.io/npm/dt/wind-js-server.svg