File tree 4 files changed +720
-9
lines changed
4 files changed +720
-9
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,25 @@ Contains a pre-packaged copy of [grib2json](https://github.com/cambecc/grib2json
8
8
9
9
Data Vis demo here: http://danwild.github.io/wind-js-leaflet/
10
10
11
+ Note that this is intended as a crude demonstration, not intended for production use.
12
+ To get to production; you should improve upon this or build your own.
13
+
14
+ ## install, run:
15
+
16
+ (assumes you have node and npm installed)
17
+
18
+ ``` bash
19
+ npm install
20
+ npm start
21
+ ```
22
+
23
+ ## endpoints
24
+ - * /latest* returns the most up to date JSON data available
25
+ - * /nearest* returns JSON data nearest to requested
26
+ - $GET params:
27
+ - `timeIso` an ISO timestamp for temporal target
28
+ - `searchLimit` number of days to search beyond the timeIso (will search forwards/backwards)
29
+ - * /alive* health check url, returns simple message
30
+
11
31
## License
12
32
MIT License (MIT)
Original file line number Diff line number Diff line change @@ -15,13 +15,7 @@ var whitelist = [
15
15
'http://localhost:63342' ,
16
16
'http://localhost:3000' ,
17
17
'http://localhost:4000' ,
18
- 'http://danwild.github.io' ,
19
- 'http://portal.ereefs.info' ,
20
- 'http://52.65.8.160' ,
21
- 'http://oa-21-mel.it.csiro.au' ,
22
- 'https://oa-21-mel.it.csiro.au' ,
23
- 'http://52.65.28.172' ,
24
- 'http://lw.oznome.csiro.au:3000'
18
+ 'http://danwild.github.io'
25
19
] ;
26
20
27
21
var corsOptions = {
You can’t perform that action at this time.
0 commit comments