Notifications
Clear all

10/18/2023 Map Stopped Working?
Visit this post for the fix

[Sticky] Another Bug found.

2 Posts
2 Users
0 Reactions
456 Views
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 557
Topic starter  

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
 
This topic was modified 7 months ago by Mark Harris

   
Quote
 Bill
(@liveadmin)
Member Admin Registered
Joined: 5 years ago
Posts: 0
 

Thanks Mark!  Good find.


   
ReplyQuote
Share: