Notifications
Clear all

-->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

[Sticky] Another Bug found.

2 Posts
2 Users
0 Reactions
3,581 Views
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 7 years ago
Posts: 582
Topic starter   [#255]

In version 4.501 a bug was found when the FAA doesn't provide a flight category in the returned data. The script will stop running when this happens. It can be fixed by editing the script named 'metar-v4.py'. It is located in the '/NeoSectional' directory. To get there use the command line and enter;

cd /NeoSectional
sudo nano -c metar-v4.py

Then change line 1215 to;

 if metar.find('flight_category').text is None or metar.find('flight_category').text == 'NONE':
 
Use the line that is there and add the '.text' to the 2 locations
Then enter;
ctrl-x
y
to save.
 
This will be incorporated into the next image. - Mark
 


   
Quote
 Bill
(@liveadmin)
Member Admin Registered
Joined: 7 years ago
Posts: 35
 

Thanks Mark!  Good find.



   
ReplyQuote
Share: