METAR data site changed?

89 views
Skip to first unread message

Nate Bargmann

unread,
Nov 5, 2023, 4:27:18 AM11/5/23
to WeeWX user list
It appears the METAR site has changed and the metargenerator.py
extension no longer is able to send the correct URL and/or parse the new
layout. Is anyone else seeing this?

- Nate

--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

signature.asc

MikeQ

unread,
Nov 5, 2023, 11:37:20 AM11/5/23
to weewx-user
Correct. Back on the 26th the NWS rolled out their new Aviation Weather Center website and it is a total re-write of the old site. The old extension screen-scraped the web page to obtain the METAR & TAF data. That doesn't work with the new site and you have to use the AWC Data API to obtain the data. It is available in 5 formats (raw, json, geojson, xml, html). The documentation is poor and you need to find the Help page using the '?' at the top of the Data API page to figure out the correct format for the URL calling the data.  The metargenerator.py file requires a major rewrite and I decided to return the data as text and then let the weewx skin format it instead of trying to use the html feed since the new NWS html format did not work well with my skin.  

Nate Bargmann

unread,
Nov 5, 2023, 12:32:01 PM11/5/23
to weewx...@googlegroups.com
I'm guessing you'll be pushing the changes out when you're more
satisfied with it.
signature.asc

MikeQ

unread,
Nov 5, 2023, 1:21:29 PM11/5/23
to weewx-user
I did not work on the original metargenerator.py, I'm just confirming your question about it not working.
Reply all
Reply to author
Forward
0 new messages