-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.js
More file actions
37 lines (31 loc) · 807 Bytes
/
test.js
File metadata and controls
37 lines (31 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'use strict';
// Generated by CoffeeScript 2.4.1
(function() {
var APS, async, decode, request;
async = require('async');
request = require('request');
decode = require('./decoder').decode;
APS = [
["UIII", "Irkutsk"],
["UNBB", "Barnaul"],
["UIBB", "Bratsk"],
["UIUU", "Ulan-Ude"],
["ZMUB", "Ulan-Bator"],
["UERR", "Mirniy"],
["UIAA", "Chita"],
["UEEE", "Yakutsk"],
["URMM", "Minvody"]
];
async.forEachSeries(APS, function(ap, next) {
console.log(ap);
return request.get({
url: "http://weather.noaa.gov/pub/data/observations/metar/stations/" + ap[0] + ".TXT"
}, function(err, resp, body) {
console.log(body);
console.log(decode(body));
console.log("");
return next();
});
});
}).call(this);
//.