Closed k6lcm closed 1 year ago
I know aviationweather.gov has recently made some changes to their site and it appears that the request in weather.py on line 649 is broken.
request_url = 'http://www.aviationweather.gov/metar/data?ids={}&format=raw&hours=0&taf=off&layout=off&date=0'.format( metar_list)
I tried swapping in a new working URL from the site https://aviationweather.gov/cgi-bin/data/metar.php?ids={}&hours=0&order=id%2C-obs&sep=true
... but I am still getting a blank map and loads of errors in my log for each airport. Example: 2023-10-18 16:29:18,450 - weathermap - WARNING - 2023-10-18 23:29:18.450597 WARN: get_metars():648: get_metars, being set to INVALID EX:'KSBD'
Thank you.
I will investigate a fix for this.
New address resolves issue. Confirmed with deployment.
I know aviationweather.gov has recently made some changes to their site and it appears that the request in weather.py on line 649 is broken.
request_url = 'http://www.aviationweather.gov/metar/data?ids={}&format=raw&hours=0&taf=off&layout=off&date=0'.format( metar_list)
I tried swapping in a new working URL from the site https://aviationweather.gov/cgi-bin/data/metar.php?ids={}&hours=0&order=id%2C-obs&sep=true
... but I am still getting a blank map and loads of errors in my log for each airport. Example: 2023-10-18 16:29:18,450 - weathermap - WARNING - 2023-10-18 23:29:18.450597 WARN: get_metars():648: get_metars, being set to INVALID EX:'KSBD'