! Copyright (C) 2013 John Benediktsson
-! See http://factorcode.org/license.txt for BSD license
+! See https://factorcode.org/license.txt for BSD license
USING: accessors arrays ascii assocs calendar calendar.format
classes.tuple combinators command-line continuations csv
] [ drop f ] if ;
: stations-data ( -- seq )
- URL" http://tgftp.nws.noaa.gov/data/nsd_cccc.txt"
+ URL" https://tgftp.nws.noaa.gov/data/nsd_cccc.txt"
http-get nip CHAR: ; [ string>csv ] with-delimiter ;
PRIVATE>
M: station metar cccc>> metar ;
M: string metar
- "http://tgftp.nws.noaa.gov/data/observations/metar/stations/%s.TXT"
+ "https://tgftp.nws.noaa.gov/data/observations/metar/stations/%s.TXT"
sprintf http-get nip ;
GENERIC: metar. ( station -- )
M: station taf cccc>> taf ;
M: string taf
- "http://tgftp.nws.noaa.gov/data/forecasts/taf/stations/%s.TXT"
+ "https://tgftp.nws.noaa.gov/data/forecasts/taf/stations/%s.TXT"
sprintf http-get nip ;
GENERIC: taf. ( station -- )