metar: switching urls from weather.noaa.gov to tgftp.nws.noaa.gov.
parent
2edda80b5e
commit
4ab9ef90c3
|
@ -40,7 +40,7 @@ ERROR: bad-location str ;
|
||||||
] [ drop f ] if ;
|
] [ drop f ] if ;
|
||||||
|
|
||||||
: stations-data ( -- seq )
|
: stations-data ( -- seq )
|
||||||
URL" http://weather.noaa.gov/data/nsd_cccc.txt"
|
URL" http://tgftp.nws.noaa.gov/data/nsd_cccc.txt"
|
||||||
http-get nip CHAR: ; [ string>csv ] with-delimiter ;
|
http-get nip CHAR: ; [ string>csv ] with-delimiter ;
|
||||||
|
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
@ -578,7 +578,7 @@ GENERIC: metar ( station -- metar )
|
||||||
M: station metar cccc>> metar ;
|
M: station metar cccc>> metar ;
|
||||||
|
|
||||||
M: string metar
|
M: string metar
|
||||||
"http://weather.noaa.gov/pub/data/observations/metar/stations/%s.TXT"
|
"http://tgftp.nws.noaa.gov/data/observations/metar/stations/%s.TXT"
|
||||||
sprintf http-get nip ;
|
sprintf http-get nip ;
|
||||||
|
|
||||||
GENERIC: metar. ( station -- )
|
GENERIC: metar. ( station -- )
|
||||||
|
@ -718,7 +718,7 @@ GENERIC: taf ( station -- taf )
|
||||||
M: station taf cccc>> taf ;
|
M: station taf cccc>> taf ;
|
||||||
|
|
||||||
M: string taf
|
M: string taf
|
||||||
"http://weather.noaa.gov/pub/data/forecasts/taf/stations/%s.TXT"
|
"http://tgftp.nws.noaa.gov/data/forecasts/stations/%s.TXT"
|
||||||
sprintf http-get nip ;
|
sprintf http-get nip ;
|
||||||
|
|
||||||
GENERIC: taf. ( station -- )
|
GENERIC: taf. ( station -- )
|
||||||
|
|
Loading…
Reference in New Issue