-->October 27th, 2026<--
Thanks again to the FAA for screwing around with the API again. This time it is changing a float value to an integer. So metar_time = 2.5 breaks the API call. The code has been updated so all the calls use metar_time = 3. See post at https://www.livesectional.com/community/main-forum/map-not-working-faa-metar-api-requires-non-fractional-hours-now/#post-1578 for more information.
-->September 6th, 2025<--
Thank you to GolfCharlie and Claude Code for fixing the code to work with the newly changed FAA API! They have saved a lot of time. A new image has been created and will be uploaded today and available later tonight. If you don't want or need the image, you can visit https://github.com/markyharris/livesectional and incorporate the changes into your board now.
--->September 5th, 2025<--
There has been another change to the FAA API which has again broke the map. We are currently working on this. Check back for fix. If you have the fix please post it. - Mark
Today, my two live sectional maps went dark. I've traced the cause to what appears to be a change in the FAA API. It no longer allows fractional hours, so the quick fix is to edit config.py to set metar_age to a whole number.
By default, metar_age is set to 2.5 hours, and put into the URL string. However, the XML returned by a 2.5 hour age is an error. In the log, I can see FAA data requests:
Oct 27 17:14:10 LiveSectional rc.local[574]: [W 261027 17:14:10 metar-v4:632] FAA Data is Not Available
Oct 27 17:14:10 LiveSectional rc.local[574]: [W 261027 17:14:10 metar-v4:633] https://aviationweather.gov/api/data/metar?format=xml& hours=2.5&ids=(MY_LONG_AIRPORT_LIST)
<response version="4.34"><errors><error>Invalid value for hours</error></errors>
<warnings/></response>
Ok, as a related problem, the 2.5 hour mark is also coded into webapp.py and is the reason that the web interface broke at the same time!
A global variable used as the base URL for Internet testing:
led_map_url = "https://aviationweather.gov/api/data/metar?format=xml&hours=2.5&ids="
Then in the Internet check area, lmu_tmp is given the value of led_map_url, and it has the same error (a fractional number of hours). By changing the number of hours to 2, the server passes the Internet check and binds to port 5000 to listen.
I am so sick of the FAA randomly changing the API! I'm sorry very much, but thank you for digging into it and finding the problem.
To clarify, its the float value that is blowing it up. It now has to be an integer, ie metar_age = 3 (not 3.0).
I've updated the source code on GitHub. There were nine files that needed to be changed from 2.5 -> 3. Visit; https://github.com/markyharris/livesectional to download or clone the new code to your map.
Use these commands at the cmdline to update the software from Github to the RPi;
cd /NeoSectional sudo cp config.py config.py.mine sudo cp config-bkup.py config-bkup.py.mine sudo git checkout -- config.py config-bkup.py sudo git pull sudo reboot now.
On another note, I'm working on a streamlined version that doesn't use the API any longer. It's a much cleaner build that I'm currently testing.
Thanks again for the heads up. - Mark
@markyharris I started working on a pull request for you, but it looks like you beat me to the METAR fix.
I submitted the PR anyway because the same bug keeps webapp.py from starting, and that didn't look like it was in your fix yet. (Hopefully it doesn't require too much work to merge -- and I'm amused it took me longer to sync my fork and create a pull request than it took you to just fix the problem!)
@markyharris it looks like you missed the 2.5 in webapp.py, but github seems to think my pull request is easy to merge, so you can have that one, too if you do the right pointy-clicky incarnation.
(Don't ask me how much work it was trying to figure out how to send you the PR. I'm out of practice!)
I’m having the same problem but not nearly as savvy as you guys. Any chance you could give me a step by step to fix it?
I managed to get into ssh in terminal and copied and pasted this but it didn’t fix it. I wasn’t quite following what I was supposed to do on GitHub though.
cd /NeoSectional sudo cp config.py config.py.mine sudo cp config-bkup.py config-bkup.py.mine sudo git checkout -- config.py config-bkup.py sudo git pull sudo reboot now.
i uploaded the most recent v4.7 to microSD and reimaged. can get into main homepage but doesnt seem to be updating board with weather. All lights working just blank now? any help much appreciated
i also uploaded new config.basic
@markyharris I've been out of the loop for a while and went to fire up board. reimaged v4.7 on card. fired up blank map. uploaded your newest config.basic from oct 27. still a blackout...any help much appreciated.....scott goodove
Whatever I did worked. rebooted with new v4.7, config.basic, uploaded my airports, changed to 200 LED......then seemed to work after a couple reboots.......
I'm not familiar with config.basic. If that is what is on the SD card, the software won't recognize it. It needs to be named config.py. Double check the naming to see if that takes care of the issue. - Mark
To clarify, the file when it gets imported onto your RPi gets renamed config.py. If the file on the RPi didn't get properly renamed it would cause the issue you described. It sounds like everything is in order. So great job. - Mark