Closed hmgps closed 4 years ago
We are not using the suggested link, but rather calling IPMA outrselves; I doubt they do it better.
icao = 'LPPT'
url = 'https://brief-ng.ipma.pt/showopmetquery.php'
data = {'icaos': icao, 'type': 'metar'}
response = requests.post(url, data)
metar = re.search(
f'METAR\ .+$',
response.text,
re.MULTILINE,
).group()
Support added in 7e32561
The winds at LPLA are not present on the typical METAR field and only apear in the RMK field at the end of the METAR as a 2 MIN average. These are not possible to get from the common sources of METAR but can be obtained through http://metars.flyatlantic-va.com/metar?ICAO=LPLA or IPMA's selfBriefing portal.