Update URLs for METAR data by akrherz · Pull Request #190 · python-metar/python-metar · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
2 changes: 1 addition & 1 deletion get_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from urllib.request import urlopen
from metar import Metar

BASE_URL = "http://tgftp.nws.noaa.gov/data/observations/metar/stations"
BASE_URL = "https://tgftp.nws.noaa.gov/data/observations/metar/stations"


def usage():
Expand Down
2 changes: 1 addition & 1 deletion metar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

The METAR reports for all reporting stations for any "cycle" (i.e., hour)
in the last 24 hours is available in a single file at the URL
http://weather.noaa.gov/pub/data/observations/metar/cycles/<cycle>Z.TXT
https://tgftp.nws.noaa.gov/data/observations/metar/cycles/<cycle>Z.TXT
where <cycle> is a 2-digit cycle number (e.g., "00", "05" or "23").
"""

Expand Down
2 changes: 1 addition & 1 deletion misc/getstation
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#
BASE_URL="http://weather.noaa.gov/pub/data/observations/metar/stations"
BASE_URL="https://tgftp.nws.noaa.gov/data/observations/metar/stations"

usage () {
echo "Usage: $0 [-p] <station> [ <station> ... ]"
Expand Down
2 changes: 1 addition & 1 deletion misc/getstation.py