prueker / METARMap

Raspberry Pi project to visualize flight conditions on a map using WS8211 LEDs addressed via NeoPixel
MIT License
118 stars 72 forks source link

Update aviationweather api endpoint #52

Closed lostlocalhost closed 11 months ago

lostlocalhost commented 11 months ago

aviation weather changed their api format.

Update to this in ym own proj: url = "https://aviationweather.gov/cgi-bin/data/dataserver.php?requestType=retrieve&dataSource=metars&format=xml&hoursBeforeNow=5&mostRecentForEachStation=true&stationString=" + ",".join([item for item in list(airport_dict.keys()) if "NULL" not in item])

Also, the line pulling visibility will have to change to just pull the value and not float it due to return being "10+" for most vfr results.

here's the new docs for context: https://aviationweather.gov/data/api/#/Dataserver/dataserverMetars

prueker commented 11 months ago

Already fixed. Refer to #47 and #48

lostlocalhost commented 11 months ago

Looking for facepalm emoji... Guess thats one way to find out who uses your code. ;)