Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you're in the US, go to https://aviationweather.gov/metar and pick your nearest station. For instance LA https://aviationweather.gov/metar/data?ids=KLAX&format=decod.... That gives you the current conditions.

If you want to parse it, get the raw METAR string and parse individual components such as temperature. Not a fun thing to do though.



There are plenty of premade libraries, especially in Python, that are ready to use and adapt.

https://github.com/python-metar/python-metar




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: