1
0
Fork 0

Make the NOAA METAR URL point to the new address

This commit is contained in:
Alessandro Menti 2016-08-04 21:35:11 +02:00
parent 5a64d51e10
commit 78a51fb6e1

View file

@ -2,7 +2,7 @@
#
# create_metar_dat.py
#
# Script to create metar.dat.gz by checking weather.noaa.gov for stations
# Script to create metar.dat.gz by checking tgftp.nws.noaa.gov for stations
# that have reported recently.
#
# Usage: create_metar_dat.py [OUTPUT_FILENAME]
@ -36,7 +36,7 @@ import urllib.request
filename = "metar.dat.gz" if len(sys.argv) <= 1 else sys.argv[1]
max_age_days = 7
url = "http://weather.noaa.gov/pub/data/observations/metar/stations/"
url = "http://tgftp.nws.noaa.gov/data/observations/metar/stations/"
now = datetime.datetime.now()
script = os.path.basename(__file__)