Notifications
Clear all

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

[Sticky] V 4.382 won't start

54 Posts
15 Users
2 Reactions
4,607 Views
(@scott-g)
New Member
Joined: 4 years ago
Posts: 4
 

I'm an amateur and my map has been working great for about 2 years, and now is not even coming on.  I assume this is the issue correct?  Is the easiest way to fix by just uploading new image to the Micro SD.  Do you have beginner instructions for doing this so I don't erase anything important and have to start over.

 

Thanks in advance

Scott


   
ReplyQuote
(@marty)
Member
Joined: 4 years ago
Posts: 0
Topic starter  

Hello,

I think I found a fix for the new API.

It works on my end.

Maybe someone else can test it as well to double check. 

 

Changes made in those files. Instead of changing the value you can comment out the original variable with a # and paste in the changes. 

 

metar-v4.py

#Line 577 (maybe different, but in that ballpark)
#Change url to this
url = "https://aviationweather.gov/api/data/metar?format=xml&mostRecentForEachStation=constraint&hoursBeforeNow="+str(metar_age)+"&ids="

#Line 585
#change url for tafs to this
url = "https://aviationweather.gov/api/data/taf?format=xml&mostRecentForEachStation=constraint&hoursBeforeNow="+str(metar_age)+"&ids="

metar-display-v4.py

#Line ~610
#Change url to this

url = "https://aviationweather.gov/api/data/metar?format=xml&mostRecentForEachStation=constraint&hoursBeforeNow="+str(metar_age)+"&ids="

#Line ~620
#Change url to this
 url = "https://aviationweather.gov/api/data/taf?format=xml&mostRecentForEachStation=constraint&hoursBeforeNow="+str(metar_age)+"&ids="

webapp.py

#Line ~117
#change orig_apurl to this

orig_apurl = "https://aviationweather.gov/api/data/stationinfo?format=xml&ids="

#Line
#change led_map_url to this

led_map_url = "https://aviationweather.gov/api/data/metar?format=xml&mostRecentForEachStation=constraint&hoursBeforeNow=2.5&ids="

wipes-v4.py

#Line 669
#change url to this

url = "https://aviationweather.gov/api/data/metar?format=xml&mostRecentForEachStation=constraint&hoursBeforeNow="+str(metar_age)+"&ids="

   
ReplyQuote
(@marty)
Member
Joined: 4 years ago
Posts: 0
Topic starter  

There is one more change I forgot to add:

metar-v4.py

#Line 595
# change contentStart

contentStart = ['<response xmlns:xsd=" removed link " xmlns:xsi=" removed link " version="1.2" xsi:noNamespaceSchemaLocation=" removed link ">']

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

@scott-g 

Yes, downloading the new image would be an easy way to do it, unless you are comfortable editing the files from the command line. The instructions for installing the image is at; https://www.livesectional.com/configuring-the-software/

Also, be sure to save the 3 data files; config, airports, hmdata before making the change. You can do this through the utilities menu. Then when you reburn the new image, you can import your data files to make things go quicker. - Mark


   
ReplyQuote
(@scott-g)
New Member
Joined: 4 years ago
Posts: 4
 

@markyharris Im a beginner at this and want to make sure I do correctly.......can I just pull microsd card and upload image file to it and not erase the other files....correct?

 


   
ReplyQuote
(@marty)
Member
Joined: 4 years ago
Posts: 0
Topic starter  

Here is a quick tutorial to update the map to the new FAA API.

  1. Download & Install WinSCP:
  2. Install & Launch WinSCP:
    • If the login window isn’t automatically visible, select “New Session”.
  3. Download the updated files for your map.

  4. Setup Connection:
    • Choose “New Site”.
    • Input the IP address of your map into the “Host name” field.
    • Set the User name as: pi
    • The password is: livesectional
  5. Advanced Settings:
    • Click on “Advanced”.
    • Navigate to “SFTP” and paste this text: sudo su -c /usr/lib/sftp-server
      into the “SFTP server” field.
    • Confirm by pressing “OK”.
  6. Initiate Connection:
    • Click “Login” to connect to your map.
  7. Navigate to Root Folder:
    • Continuously click on the two dots until you reach the root folder.
    • From there, select the “Neosectional” directory.
  8. Transfer Files:
    • Drag and drop the four specified files into the folder.
  9. Restart Your Map:
    • Power off, then power on your map.

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

Marty and I have been working through this, with the yeoman's amount of the lifting being done by Marty. So thank you Marty.

Marty's fix jumps us to the New API, which is the permanent fix. We will be testing this for a bit longer, then assuming no issues pop up we will upload a new Image. The version number using the new FAA API will be 4.5xx so keep an eye out for it. Obviously an announcement will be posted once this image becomes available.

Thanks for everyone's patience.  - Mark


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

I was afraid my Pi burned out as there was nothing displayed for a couple weeks. Thanks for working on a solution. I'm downloading 4.4 now and hope I get this working again. Now I just need to find my backups of the layout and settings to restore from.


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

Ron, if you want to wait few more days we'll have another image available that will be using the new FAA API which should be the 'Permanent' fix assuming the FAA doesn't change it again. 🙂 Otherwise, if it stops working in the future you can always come back for the latest version.

BTW, you should still be able to download the data files from the web admin even if the LED's are not lighting up. Just pull up the URL in a web browser that is connected to the same Wifi network as the map. - Mark


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

I upgraded to V4.4 and after connecting to wifi and uploading my settings its working again!


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

Great to hear. - Mark


   
ReplyQuote
(@marty)
Member
Joined: 4 years ago
Posts: 0
Topic starter  

I think part of the new API is down again. The one for the station information. I get a 500 error. 

https://aviationweather.gov/api/data/stationinfo?ids=KJFK


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

I tried it on their site, https://aviationweather.gov/data/api/#/Data/dataStationInfo and it errored out there too. Hopefully they will fix it soon. - Mark


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

@markyharris I'll definitely come back in a few days for the permanent fix, it wasn't too hard to do the upgrade. I was surprised how depressed I was not seeing the map lit up. I'm happy again.


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

Since I got V4.4 running two airports do not report weather. I'm not sure if its related but wanted to report it. They are RHV and E16. Foreflight doesn't show weather either.

Also in the early morning both RHV and PAO don't show any weather until after 7 am while all the other airports have a METAR.

This post was modified 1 year ago by Captain_Ron

   
ReplyQuote
Page 2 / 4
Share: