10/18/2023 Map Stopped Working?
Visit this post for the fix
Yep, you are using v4.346 and there has been changes made so unfortunately you'll need to download the new image and reinstall. Be sure to copy the config.py, airports and hmdata files from your current setup before you re-install the latest image. That way you can import these files into the new build and not skip a beat. Sorry for the hassles. - Mark
@markyharris Ok I may be missing it but the website talks about upgrading from V3 to V4... I know in theory I should have been able to upgrade via the web interface if it worked since i'm on V4. I'd prefer to not have to pull the SD card and reconfigure all of that by creating a new image (getting my wifi card to work on this was a huge PITA). Do I just wget a zip file and unzip to the /NeoSectional folder or what is the upgrade method when you're already on v4?
Thanks
You can download everything from github at; https://github.com/markyharris/livesectional and put it all in the /NeoSectional directory. Just be sure to use your config.py, airports and hmdata files.
Depending on how you copy these over, you may need to delete the current files, or better yet, move them to a different folder for safe keeping then copy the new files over.
Using a file explorer type program would be easiest if you have one available to you. I use Snowflake, but Putty is a popular program too. If you need more specific info, let me know and I'll try to help. - Mark
Strangest thing.. i cloned the repository and copied back over the 3 config files, it STILL doesn't load the web interface... here are the latest logs:
Oct 8 09:28:17 LiveSectionalV4 rc.local[561]: Startup of wipes-v4.py Script, Version v4.373
Oct 8 09:28:17 LiveSectionalV4 rc.local[561]: [I 211008 09:28:17 wipes-v4:42] Log Level Set To: 20
Oct 8 09:28:19 LiveSectionalV4 rc.local[561]: [I 211008 09:28:19 wipes-v4:755] maxlat = 48.85 minlat = 24.55 maxlon = -68.82 minlon = -122.
62
Oct 8 09:28:19 LiveSectionalV4 rc.local[561]: [I 211008 09:28:19 wipes-v4:756] sizelat = 24.3 sizelon = 53.8 centerlat 36.7 centerlon = -95
.72
Oct 8 09:28:20 LiveSectionalV4 rc.local[561]: [I 211008 09:28:20 wipes-v4:865] Turning Off all LEDs
Oct 8 09:28:20 LiveSectionalV4 rc.local[561]: [I 211008 09:28:20 wipes-v4:870] Executing Rabbit Chase Wipe
Oct 8 09:28:34 LiveSectionalV4 rc.local[561]: [I 211008 09:28:34 metar-v4:556] Calling wipes script
Oct 8 09:28:34 LiveSectionalV4 rc.local[561]: [I 211008 09:28:34 metar-v4:568] Airports File Loaded
Oct 8 09:28:34 LiveSectionalV4 rc.local[561]: [I 211008 09:28:34 metar-v4:574] METAR Data Loading
Oct 8 09:28:34 LiveSectionalV4 rc.local[561]: [I 211008 09:28:34 metar-v4:602] RPI IP Address = 10.1.0.111
Oct 8 09:28:35 LiveSectionalV4 rc.local[561]: [I 211008 09:28:35 metar-v4:606] Internet Available
Oct 8 09:28:35 LiveSectionalV4 rc.local[561]: [I 211008 09:28:35 metar-v4:607] https://www.aviationweather.gov/adds/dataserver_current/http
param?dataSource=metars&requestType=retrieve&format=xml&mostRecentForEachStation=constraint&hoursBeforeNow=2.5&stationString=KAIA,KPUB,KECP,
KPNS,KORL,KDDC,KARA,KMYR,KILM,KRBX,KORF,KOXB,KPVD,KBGR,KBTV,KALB,KEWR,KPHL,KRIC,KRMN,KHEF,KCJR,KGVE,KRDU,KFAY,KJZI,KCAE,KCLT,KJQF,KUZA,KEQY,KROA,KBUF,KAGC,KCRW,KGEV,KAVL,KAND,KAGS,KSAV,KCRG,KDED,KX26,KFXE,KEYW,KFMY,KZPH,KTLH,KABY,KOPN,KATL,KPDK,KRKW,KCMH,KYIP,KSLH,KFWA,KCHA,KAUO,KPNS,KMOB,KMGM,KBHM,KHSV,KJWN,KSDF,KIND,KGYY,KMKE,KOSH,KSTF,KGPT,KNEW,KMBO,KMEM,KSTL,KPIA,KCID,KSTP,KBBG,KLIT,KLFT,KSHV,KFSM,KMKC,KOMA,KROX,KFAF,KFSD,KSLN,KICT,KTUL,KF00,KTME,KACT,KRBD,KPWA,KBIS,KRAP,KCPR,KAMA,KABI,KBRO,KSSF,KLBB,KBJC,KBIL,KHVR,KBZN,KJAC,KROW,KDRT,KABQ,KCNY,KSLC,KPIH,KGIC,KGEG,KBOI,KTWF,KRIF,KEKO,KPGA,KELP,KRYN,KPHX,KLAS,KTPH,KRNO,KBDN,KSEA,KPDX,KRDD,KSAC,KSFO,KMRY,KMAE,KBFL,KLAX,KMYF
Oct 8 09:28:35 LiveSectionalV4 rc.local[561]: [I 211008 09:28:35 metar-v4:1150] Starting METAR Data Display
Oct 8 09:28:35 LiveSectionalV4 rc.local[561]: [I 211008 09:28:35 metar-v4:1162] KTME Not Reporting Flight Category through the API.
Oct 8 09:28:35 LiveSectionalV4 rc.local[561]: [I 211008 09:28:35 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
Oct 8 09:28:35 LiveSectionalV4 rc.local[561]: [I 211008 09:28:35 metar-v4:1259] Decoded METAR Data for Display
Oct 8 09:28:35 LiveSectionalV4 rc.local[561]: [I 211008 09:28:35 metar-v4:1433] Ambient Sensor set brightness to bright_value
Oct 8 09:28:36 LiveSectionalV4 rc.local[561]: Traceback (most recent call last):
Oct 8 09:28:36 LiveSectionalV4 rc.local[561]: File "/NeoSectional/webapp.py", line 58, in <module>
Oct 8 09:28:36 LiveSectionalV4 rc.local[561]: import scan_network
Oct 8 09:28:36 LiveSectionalV4 rc.local[561]: File "/NeoSectional/scan_network.py", line 7, in <module>
Oct 8 09:28:36 LiveSectionalV4 rc.local[561]: import nmap
Oct 8 09:28:36 LiveSectionalV4 rc.local[561]: ModuleNotFoundError: No module named 'nmap'
Oct 8 09:42:15 LiveSectionalV4 systemd[1]: Starting Cleanup of Temporary Directories...
Oct 8 09:42:16 LiveSectionalV4 systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
Oct 8 09:42:16 LiveSectionalV4 systemd[1]: Started Cleanup of Temporary Directories.
Oct 8 09:43:37 LiveSectionalV4 rc.local[561]: [I 211008 09:43:37 wipes-v4:41]
Oct 8 09:43:37 LiveSectionalV4 rc.local[561]:
What does it use NMAP for?
Not sure if you're supposed to be able to run webapp on the CLI but this is what i get:
pi@LiveSectionalV4:/NeoSectional $ python webapp.py
File "webapp.py", line 835
ap, *_ = hmdata[index].split()
^
SyntaxError: invalid syntax
Kevin, according to the snippet of log you posted, you are still running the old version of the software;
Oct 8 0917 LiveSectionalV4 rc.local[561]: Startup of wipes-v4.py Script, Version v4.373
So you may have put the new files in a different directory other than /NeoSectional. Its possible you may have created another /NeoSectional directory under the normal one. So look at the directory structure to ensure its correct.
Yes, you can run webapp.py from the CLI, however you need to use python3 not python to do so. Otherwise you'll receive the error you saw. I'd be interested to see what error you get when you do run it using python3, so post it here. - Mark
@markyharris I just cloned the git and then copied recursively to /NeoSectional (didn't delete /NeoSectional first). Here is the error with python3:
pi@LiveSectionalV4:/NeoSectional $ python3 webapp.py
Traceback (most recent call last):
File "webapp.py", line 58, in <module>
import scan_network
File "/NeoSectional/scan_network.py", line 7, in <module>
import nmap
ModuleNotFoundError: No module named 'nmap'
Kevin, you'll be digging in the weeds here and there may be other dependencies that will need to be installed but we'll start with this one and give it a try.
From your SSH session enter;
sudo apt-get update sudo apt-get install nmap sudo reboot now
This will update the OS first (be patient) then it will install nmap. Finally it will reboot the machine.
Let us know how it goes. - Mark
@markyharris deleted /NeoSectional entirely, re-created and cloned the .git into it. Copied over the 3 unique config files, did all the apt upgrades/updates installed nmap and confirmed installation. Still no dice.
Cloned the git via git clone https://github.com/markyharris/livesectional.git
Are you sure all the latest files are up on github? after cloning logs still show i'm running 3.73
Oct 11 07:35:09 LiveSectionalV4 rc.local[561]: /NeoSectional/metar-v4.py:296: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
Oct 11 07:35:09 LiveSectionalV4 rc.local[561]: GPIO.setup(7, GPIO.IN, pull_up_down=GPIO.PUD_UP) #set pin 7 to ground for TAF + 11 hours
Oct 11 07:35:09 LiveSectionalV4 rc.local[561]: [I 211011 07:35:09 metar-v4:312] Watching /NeoSectional/config.py For Change
Oct 11 07:35:09 LiveSectionalV4 rc.local[561]: [I 211011 07:35:09 metar-v4:343] metar-v4.py Settings Loaded
Oct 11 07:35:09 LiveSectionalV4 rc.local[561]: [I 211011 07:35:09 metar-v4:568] Airports File Loaded
Oct 11 07:35:09 LiveSectionalV4 rc.local[561]: [I 211011 07:35:09 metar-v4:574] METAR Data Loading
Oct 11 07:35:09 LiveSectionalV4 rc.local[561]: [I 211011 07:35:09 metar-v4:602] RPI IP Address = 10.1.0.111
Oct 11 07:35:10 LiveSectionalV4 rc.local[561]: [I 211011 07:35:10 metar-v4:606] Internet Available
Oct 11 07:35:10 LiveSectionalV4 rc.local[561]: [I 211011 07:35:10 metar-v4:607] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&mostRecentForEachStation=constraint&hoursBeforeNow=2.5&stationString=KAIA,KPUB,KECP,KPNS,KORL,KDDC,KARA,KMYR,KILM,KRBX,KORF,KOXB,KPVD,KBGR,KBTV,KALB,KEWR,KPHL,KRIC,KRMN,KHEF,KCJR,KGVE,KRDU,KFAY,KJZI,KCAE,KCLT,KJQF,KUZA,KEQY,KROA,KBUF,KAGC,KCRW,KGEV,KAVL,KAND,KAGS,KSAV,KCRG,KDED,KX26,KFXE,KEYW,KFMY,KZPH,KTLH,KABY,KOPN,KATL,KPDK,KRKW,KCMH,KYIP,KSLH,KFWA,KCHA,KAUO,KPNS,KMOB,KMGM,KBHM,KHSV,KJWN,KSDF,KIND,KGYY,KMKE,KOSH,KSTF,KGPT,KNEW,KMBO,KMEM,KSTL,KPIA,KCID,KSTP,KBBG,KLIT,KLFT,KSHV,KFSM,KMKC,KOMA,KROX,KFAF,KFSD,KSLN,KICT,KTUL,KF00,KTME,KACT,KRBD,KPWA,KBIS,KRAP,KCPR,KAMA,KABI,KBRO,KSSF,KLBB,KBJC,KBIL,KHVR,KBZN,KJAC,KROW,KDRT,KABQ,KCNY,KSLC,KPIH,KGIC,KGEG,KBOI,KTWF,KRIF,KEKO,KPGA,KELP,KRYN,KPHX,KLAS,KTPH,KRNO,KBDN,KSEA,KPDX,KRDD,KSAC,KSFO,KMRY,KMAE,KBFL,KLAX,KMYF
Oct 11 07:35:10 LiveSectionalV4 rc.local[561]: [I 211011 07:35:10 metar-v4:1150] Starting METAR Data Display
Oct 11 07:35:10 LiveSectionalV4 rc.local[561]: [I 211011 07:35:10 metar-v4:1162] KROX Not Reporting Flight Category through the API.
Oct 11 07:35:10 LiveSectionalV4 rc.local[561]: [I 211011 07:35:10 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
Oct 11 07:35:10 LiveSectionalV4 rc.local[561]: [I 211011 07:35:10 metar-v4:1162] KSSF Not Reporting Flight Category through the API.
Oct 11 07:35:10 LiveSectionalV4 rc.local[561]: [I 211011 07:35:10 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
Oct 11 07:35:10 LiveSectionalV4 rc.local[561]: [I 211011 07:35:10 metar-v4:1259] Decoded METAR Data for Display
Oct 11 07:35:10 LiveSectionalV4 rc.local[561]: [I 211011 07:35:10 metar-v4:1414] Rotary Switch Not Installed. Using Switch Position 0 as Default
Oct 11 07:35:11 LiveSectionalV4 rc.local[561]: [I 211011 07:35:11 wipes-v4:41]
Oct 11 07:35:11 LiveSectionalV4 rc.local[561]:
Oct 11 07:35:11 LiveSectionalV4 rc.local[561]: Startup of wipes-v4.py Script, Version v4.373
Oct 11 07:35:11 LiveSectionalV4 rc.local[561]: [I 211011 07:35:11 wipes-v4:42] Log Level Set To: 20
Oct 11 07:35:12 LiveSectionalV4 rc.local[561]: [I 211011 07:35:12 wipes-v4:755] maxlat = 48.85 minlat = 24.55 maxlon = -68.82 minlon = -122.62
Oct 11 07:35:12 LiveSectionalV4 rc.local[561]: [I 211011 07:35:12 wipes-v4:756] sizelat = 24.3 sizelon = 53.8 centerlat 36.7 centerlon = -95.72
Oct 11 07:35:13 LiveSectionalV4 rc.local[561]: [I 211011 07:35:13 wipes-v4:865] Turning Off all LEDs
Oct 11 07:35:13 LiveSectionalV4 rc.local[561]: [I 211011 07:35:13 wipes-v4:870] Executing Rabbit Chase Wipe
Oct 11 07:35:27 LiveSectionalV4 rc.local[561]: [I 211011 07:35:27 metar-v4:556] Calling wipes script
Oct 11 07:35:27 LiveSectionalV4 rc.local[561]: [I 211011 07:35:27 metar-v4:568] Airports File Loaded
Oct 11 07:35:27 LiveSectionalV4 rc.local[561]: [I 211011 07:35:27 metar-v4:574] METAR Data Loading
Oct 11 07:35:27 LiveSectionalV4 rc.local[561]: [I 211011 07:35:27 metar-v4:602] RPI IP Address = 10.1.0.111
Oct 11 07:35:28 LiveSectionalV4 rc.local[561]: [I 211011 07:35:28 metar-v4:606] Internet Available
Oct 11 07:35:28 LiveSectionalV4 rc.local[561]: [I 211011 07:35:28 metar-v4:607] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&mostRecentForEachStation=constraint&hoursBeforeNow=2.5&stationString=KAIA,KPUB,KECP,KPNS,KORL,KDDC,KARA,KMYR,KILM,KRBX,KORF,KOXB,KPVD,KBGR,KBTV,KALB,KEWR,KPHL,KRIC,KRMN,KHEF,KCJR,KGVE,KRDU,KFAY,KJZI,KCAE,KCLT,KJQF,KUZA,KEQY,KROA,KBUF,KAGC,KCRW,KGEV,KAVL,KAND,KAGS,KSAV,KCRG,KDED,KX26,KFXE,KEYW,KFMY,KZPH,KTLH,KABY,KOPN,KATL,KPDK,KRKW,KCMH,KYIP,KSLH,KFWA,KCHA,KAUO,KPNS,KMOB,KMGM,KBHM,KHSV,KJWN,KSDF,KIND,KGYY,KMKE,KOSH,KSTF,KGPT,KNEW,KMBO,KMEM,KSTL,KPIA,KCID,KSTP,KBBG,KLIT,KLFT,KSHV,KFSM,KMKC,KOMA,KROX,KFAF,KFSD,KSLN,KICT,KTUL,KF00,KTME,KACT,KRBD,KPWA,KBIS,KRAP,KCPR,KAMA,KABI,KBRO,KSSF,KLBB,KBJC,KBIL,KHVR,KBZN,KJAC,KROW,KDRT,KABQ,KCNY,KSLC,KPIH,KGIC,KGEG,KBOI,KTWF,KRIF,KEKO,KPGA,KELP,KRYN,KPHX,KLAS,KTPH,KRNO,KBDN,KSEA,KPDX,KRDD,KSAC,KSFO,KMRY,KMAE,KBFL,KLAX,KMYF
Oct 11 07:35:28 LiveSectionalV4 rc.local[561]: [I 211011 07:35:28 metar-v4:1150] Starting METAR Data Display
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: [I 211011 07:35:28 metar-v4:1162] KROX Not Reporting Flight Category through the API.
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: [I 211011 07:35:28 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: [I 211011 07:35:29 metar-v4:1162] KSSF Not Reporting Flight Category through the API.
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: [I 211011 07:35:29 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: [I 211011 07:35:29 metar-v4:1259] Decoded METAR Data for Display
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: [I 211011 07:35:29 metar-v4:1433] Ambient Sensor set brightness to bright_value
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: Traceback (most recent call last):
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: File "/NeoSectional/webapp.py", line 58, in <module>
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: import scan_network
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: File "/NeoSectional/scan_network.py", line 7, in <module>
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: import nmap
Oct 11 07:35:29 LiveSectionalV4 rc.local[561]: ModuleNotFoundError: No module named 'nmap'
Oct 11 07:49:22 LiveSectionalV4 systemd[1]: Starting Cleanup of Temporary Directories...
Oct 11 07:49:22 LiveSectionalV4 systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
Oct 11 07:49:22 LiveSectionalV4 systemd[1]: Started Cleanup of Temporary Directories.
Oct 11 07:50:18 LiveSectionalV4 systemd[1]: Started Session 3 of user pi.
pi@LiveSectionalV4:~ $
I'm familiar with NMAP but don't understand what its use is in this application.. can you advise?
Thanks!
Also FWIW, I went to download the new image and the filename seems to indicate it is still the old image...
Kevin,
I see the issue with the version numbers. I fat fingered the version on the download page. It should read 4.373, (not 4.374). I fixed that on the web site. I've asked Bill to double check the server that stores the image to verify that its actually 4.373, even though it shows 4.372. He will have that fixed soon. If worse comes to worse, I'll send a private link to the latest image.
NMAP is used by scan_network.py which is a script that scan's the local network looking for other LiveSectional Maps and if any are found it will create a dropdown displaying them so its easy to switch between them on the web interface. You have to turn this undocumented feature on in the admin.py file if you want to use it. I have 6 maps running at home so this is really helpful for me to administrate them. - Mark
@markyharris So this seems to be isolated to the nmap module not being on the server.. was this a new feature added? I haven't made any changes to the pi instance so I don't know why it would be missing if it previously was there.
At any rate, I commented out the scan_network module within webapp and it seems to be working now.
Kevin, I'm not sure when your original version was released, but the scan_network.py feature is about a year old (give or take). I was going to suggest you comment it out as you have done. I'm glad its working for you, and I'm sorry for the problems. Thanks for the heads up on the version numbers too. - Mark
@markyharris was this ever solved for @whelmle ....I am having same exact issue...was working perfectly for about 6 months
I can no longer connect via computer to the board. it shows on berry lan......it loads up with current weather but never changes and I keep getting the below message. I was going to wipe card and start over but when I go to download page for V4 image it says it's in your trash and cant access.
This site can’t be reached
192.168.68.101 took too long to respond.
Try:
- Checking the connection
- Checking the proxy and the firewall
- Running Windows Network Diagnostics
Yes, see this post and pick one of the 3 ways listed to fix it.
https://www.livesectional.com/community/raspberry-pi-questions/rpi-refuses-to-connect/#post-885
It was caused by a server that holds update files not responding correctly. The fix is simply to comment out this request. Let us know how it goes. - Mark