Notifications
Clear all

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

[Sticky] Another Bug found.

2 Posts
2 Users
0 Likes
79 Views
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 4 years ago
Posts: 549
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 3 weeks ago by Mark Harris

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

Thanks Mark!  Good find.


   
ReplyQuote
Share: