Map stopped working...
 
Notifications
Clear all

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

Map stopped working after a reboot.

4 Posts
2 Users
0 Reactions
165 Views
(@bchirhart)
Active Member
Joined: 3 years ago
Posts: 10
Topic starter  

Pi boots and runs the scripts, but LEDs remain dark.  Any help would be greatly appreciated!!

 

Here is the console log:

 

Startup of metar-v4.py Script, Version v4.501
[I 240827 22:04:35 metar-v4:106] Log Level Set To: 20
[I 240827 22:04:35 metar-v4:314] Watching /NeoSectional/config.py For Change
[I 240827 22:04:35 metar-v4:345] metar-v4.py Settings Loaded
[I 240827 22:04:35 metar-v4:570] Airports File Loaded
[I 240827 22:04:35 metar-v4:579] METAR Data Loading
[I 240827 22:04:35 metar-v4:649] RPI IP Address = 192.168.50.68
[I 240827 22:04:35 metar-v4:650] API URL No chunk: https://aviationweather.gov/api/data/metar?format=xml&hours=2.5&ids=KLNK,KAHQ,KFET,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,KTQE,KSUX,KDNS,KHNR,KCIN,KADU,KAIO,KRDK,KSDA,KICL,KCSQ,KPRO,KBNW
[I 240827 22:04:35 metar-v4:653] Internet Available
[I 240827 22:04:35 metar-v4:654] https://aviationweather.gov/api/data/metar?format=xml&hours=2.5&ids=KLNK,KAHQ,KFET,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,KTQE,KSUX,KDNS,KHNR,KCIN,KADU,KAIO,KRDK,KSDA,KICL,KCSQ,KPRO,KBNW
[I 240827 22:04:35 metar-v4:1206] Starting METAR Data Display
[I 240827 22:04:35 metar-v4:1302] KLNK Duplicate, only saved first metar category
[I 240827 22:04:35 metar-v4:1307] KLNK Duplicate, only saved the first winds
[I 240827 22:04:35 metar-v4:1312] KLNK Duplicate, only saved the first weather
[I 240827 22:04:35 metar-v4:1302] KLNK Duplicate, only saved first metar category
[I 240827 22:04:35 metar-v4:1307] KLNK Duplicate, only saved the first winds
[I 240827 22:04:35 metar-v4:1312] KLNK Duplicate, only saved the first weather

/\ First airport
...
\/ - Last airport

[I 240827 22:04:37 metar-v4:1302] KRDK Duplicate, only saved first metar category
[I 240827 22:04:37 metar-v4:1307] KRDK Duplicate, only saved the first winds
[I 240827 22:04:37 metar-v4:1312] KRDK Duplicate, only saved the first weather
[I 240827 22:04:37 metar-v4:1302] KRDK Duplicate, only saved first metar category
[I 240827 22:04:37 metar-v4:1307] KRDK Duplicate, only saved the first winds
[I 240827 22:04:37 metar-v4:1312] KRDK Duplicate, only saved the first weather
[I 240827 22:04:37 metar-v4:1302] KRDK Duplicate, only saved first metar category
[I 240827 22:04:37 metar-v4:1307] KRDK Duplicate, only saved the first winds
[I 240827 22:04:37 metar-v4:1312] KRDK Duplicate, only saved the first weather
[I 240827 22:04:37 metar-v4:1302] KRDK Duplicate, only saved first metar category
[I 240827 22:04:37 metar-v4:1307] KRDK Duplicate, only saved the first winds
[I 240827 22:04:37 metar-v4:1312] KRDK Duplicate, only saved the first weather
[I 240827 22:04:37 metar-v4:1302] KRDK Duplicate, only saved first metar category
[I 240827 22:04:37 metar-v4:1307] KRDK Duplicate, only saved the first winds
[I 240827 22:04:37 metar-v4:1312] KRDK Duplicate, only saved the first weather
Traceback (most recent call last):
File "/NeoSectional/metar-v4.py", line 1283, in <module>
logger.debug(stationId + ': FAA is reporting '+metar.find('flight_category').text + ' through their API')
TypeError: can only concatenate str (not "NoneType") to str
[I 240827 22:04:47 check-display:68] -- killin metar-v4.py
kill: (1148): No such process
[I 240827 22:04:50 check-display:71] -- Restarting metar-v4.py
[I 240827 22:04:56 metar-v4:105]

Startup of metar-v4.py Script, Version v4.501


   
Quote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

At times the FAA will not include some information that is needed. I try to error check for these situations but at times I'll miss one. In this case, the map will start working normally again once that data point is replaced. I noticed you are using version 4.501, and I made some error checking changes to the latest version 4.503. So it will be worth updating. My guess is that it will work normally at that point. Let me know one way or the other. - Mark


   
ReplyQuote
(@bchirhart)
Active Member
Joined: 3 years ago
Posts: 10
Topic starter  

@markyharris Thanks Mark - I'll update.  I let it sit overnight and woke up to a working map so it must just error out after a long time and then start working?


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Yes, its programmed to restart in the middle of the night for just this type of issue. The fact that the data from the FAA isn't rock solid is a pain, but its the reality. The update will take care of a few of those contingencies. But I'm sure there is another one I've missed. 🙂 Thanks for the update. - Mark


   
ReplyQuote
Share: