10/18/2023 Map Stopped Working?
Visit this post for the fix
Whenever I press any of these buttons the web page becomes unresponsive and the console just hangs at the last command. Ironically "All Off" works. SSH is still up and active so I know the Pi is still working. Only a reboot seems to fix it. This happens in both Chrome and Edge. I just rebuild the Pi so I am using the latest version as of a week ago.
Any thoughts?
Can you attach a picture of the web page that you are referring to? I'm not exactly sure what you are describing. - Mark
Sure - it's on the Airport Editor page. Sorry I wasn't more clear about the location.
Thanks. I'll have to try it on one of my boards to see if I can duplicate it. If you don't hear back from me in a timely fashion feel free to 'nudge' me. - Mark
Here's the console output. I shut off the map, then I try to turn on LED2 and 3, but nothing happens. Then the web page just sits refreshing/spinning and can't load.
Here is the log:
- Startup of shutoff.py Script, Version v4.373
- [I 211025 11:18:10 shutoff:33] Log Level Set To: 20
- [I 211025 11:18:10 shutoff:68] Shutoff Settings Loaded
- [I 211025 11:18:10 shutoff:106] LED's Have Been Turned Off
- [I 211025 11:18:10 shutoff:118] shutoff.py Completed
- [I 211025 11:18:12 webapp:1551] Internet Available
- [I 211025 11:18:12 webapp:1552] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=2.5&mostRecentForEachStation=constraint&stationString=KLNK,NULL,KAHQ,KFET,NULL,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,NULL,KTQE,NULL,NULL,KSUX,NULL,NULL,NULL,KDNS,NULL,KHNR,NULL,NULL,KCIN,NULL,KADU,NULL,KAIO,NULL,KRDK,NULL,KSDA,KICL,NULL,NULL,KCSQ,NULL,NULL,NULL,KPRO,NULL,KBNW,NULL,LGND,LGND,LGND,LGND,LGND,LGNDKLNK,NULL,KAHQ,KFET,NULL,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,NULL,KTQE,NULL,NULL,KSUX,NULL,NULL,NULL,KDNS,NULL,KHNR,NULL,NULL,KCIN,NULL,KADU,NULL,KAIO,NULL,KRDK,NULL,KSDA,KICL,NULL,NULL,KCSQ,NULL,NULL,NULL,KPRO,NULL,KBNW,NULL,LGND,LGND,LGND,LGND,LGND,LGND
- [I 211025 11:18:14 webapp:425] Opening led_map in separate window
- [I 211025 11:18:23 webapp:1358] Startup Map from http://192.168.10.92:5000/ledonoff
- [I 211025 11:18:24 startup:24]
- Startup of startup.py Script, Version v4.373
- [I 211025 11:18:24 startup:25] Log Level Set To: 20
- [I 211025 11:18:24 startup:39] Running thread 0
- [I 211025 11:18:24 startup:39] Running thread 1
- [I 211025 11:18:24 startup:39] Running thread 2
- [I 211025 11:18:24 startup:49] check-display.py
- [I 211025 11:18:24 webapp:845] Controlling LED's on/off
- [I 211025 11:18:25 startup:42] metar-v4.py
- [I 211025 11:18:27 check-display:21]
- Startup of check-display.py Script, Version v4.373
- [I 211025 11:18:27 check-display:22] Log Level Set To: 20
- [I 211025 11:18:28 metar-v4:103]
- Startup of metar-v4.py Script, Version v4.373
- [I 211025 11:18:28 metar-v4:104] Log Level Set To: 20
- [I 211025 11:18:28 metar-v4:312] Watching /NeoSectional/config.py For Change
- [I 211025 11:18:28 metar-v4:343] metar-v4.py Settings Loaded
- [I 211025 11:18:28 metar-v4:568] Airports File Loaded
- [I 211025 11:18:28 metar-v4:574] METAR Data Loading
- [I 211025 11:18:28 metar-v4:602] RPI IP Address = 192.168.10.92
- [I 211025 11:18:28 metar-v4:606] Internet Available
- [I 211025 11:18:29 metar-v4:607] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&mostRecentForEachStation=constraint&hoursBeforeNow=2.5&stationString=KLNK,KAHQ,KFET,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,KTQE,KSUX,KDNS,KHNR,KCIN,KADU,KAIO,KRDK,KSDA,KICL,KCSQ,KPRO,KBNW
- [I 211025 11:18:29 metar-v4:1150] Starting METAR Data Display
- [I 211025 11:18:29 metar-v4:1162] KPRO Not Reporting Flight Category through the API.
- [I 211025 11:18:29 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
- [I 211025 11:18:29 metar-v4:1162] KOFF Not Reporting Flight Category through the API.
- [I 211025 11:18:29 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
- [I 211025 11:18:29 metar-v4:1259] Decoded METAR Data for Display
- [I 211025 11:18:29 metar-v4:1414] Rotary Switch Not Installed. Using Switch Position 0 as Default
- [I 211025 11:18:29 wipes-v4:41]
- Startup of wipes-v4.py Script, Version v4.373
- [I 211025 11:18:29 wipes-v4:42] Log Level Set To: 20
- [I 211025 11:18:29 wipes-v4:755] maxlat = 42.38 minlat = 40.72 maxlon = -93.83 minlon = -96.77
- [I 211025 11:18:29 wipes-v4:756] sizelat = 1.66 sizelon = 2.94 centerlat 41.55 centerlon = -95.3
- [I 211025 11:18:30 wipes-v4:860] Executing Rainbow Wipe
- [I 211025 11:18:33 wipes-v4:865] Turning Off all LEDs
- [I 211025 11:18:33 metar-v4:556] Calling wipes script
- [I 211025 11:18:33 metar-v4:568] Airports File Loaded
- [I 211025 11:18:33 metar-v4:574] METAR Data Loading
- [I 211025 11:18:33 metar-v4:602] RPI IP Address = 192.168.10.92
- [I 211025 11:18:33 metar-v4:606] Internet Available
- [I 211025 11:18:33 metar-v4:607] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&mostRecentForEachStation=constraint&hoursBeforeNow=2.5&stationString=KLNK,KAHQ,KFET,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,KTQE,KSUX,KDNS,KHNR,KCIN,KADU,KAIO,KRDK,KSDA,KICL,KCSQ,KPRO,KBNW
- [I 211025 11:18:33 metar-v4:1150] Starting METAR Data Display
- [I 211025 11:18:33 metar-v4:1162] KPRO Not Reporting Flight Category through the API.
- [I 211025 11:18:33 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
- [I 211025 11:18:33 metar-v4:1162] KOFF Not Reporting Flight Category through the API.
- [I 211025 11:18:33 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
- [I 211025 11:18:33 metar-v4:1259] Decoded METAR Data for Display
- [I 211025 11:18:33 metar-v4:1433] Ambient Sensor set brightness to bright_value
- [I 211025 11:19:13 webapp:1551] Internet Available
- [I 211025 11:19:13 webapp:1552] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=2.5&mostRecentForEachStation=constraint&stationString=KLNK,NULL,KAHQ,KFET,NULL,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,NULL,KTQE,NULL,NULL,KSUX,NULL,NULL,NULL,KDNS,NULL,KHNR,NULL,NULL,KCIN,NULL,KADU,NULL,KAIO,NULL,KRDK,NULL,KSDA,KICL,NULL,NULL,KCSQ,NULL,NULL,NULL,KPRO,NULL,KBNW,NULL,LGND,LGND,LGND,LGND,LGND,LGNDKLNK,NULL,KAHQ,KFET,NULL,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,NULL,KTQE,NULL,NULL,KSUX,NULL,NULL,NULL,KDNS,NULL,KHNR,NULL,NULL,KCIN,NULL,KADU,NULL,KAIO,NULL,KRDK,NULL,KSDA,KICL,NULL,NULL,KCSQ,NULL,NULL,NULL,KPRO,NULL,KBNW,NULL,LGND,LGND,LGND,LGND,LGND,LGNDKLNK,NULL,KAHQ,KFET,NULL,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,NULL,KTQE,NULL,NULL,KSUX,NULL,NULL,NULL,KDNS,NULL,KHNR,NULL,NULL,KCIN,NULL,KADU,NULL,KAIO,NULL,KRDK,NULL,KSDA,KICL,NULL,NULL,KCSQ,NULL,NULL,NULL,KPRO,NULL,KBNW,NULL,LGND,LGND,LGND,LGND,LGND,LGND
- [I 211025 11:19:15 webapp:425] Opening led_map in separate window
- [I 211025 11:19:43 webapp:1372] Shutoff Map from http://192.168.10.92:5000/ledonoff
- [I 211025 11:19:45 webapp:845] Controlling LED's on/off
- [I 211025 11:19:46 shutoff:32]
- Startup of shutoff.py Script, Version v4.373
- [I 211025 11:19:46 shutoff:33] Log Level Set To: 20
- [I 211025 11:19:46 shutoff:68] Shutoff Settings Loaded
- [I 211025 11:19:46 shutoff:106] LED's Have Been Turned Off
- [I 211025 11:19:46 shutoff:118] shutoff.py Completed
- [I 211025 11:19:52 webapp:845] Controlling LED's on/off
- [I 211025 11:19:52 webapp:859] LED 2 On
- [I 211025 11:20:04 webapp:845] Controlling LED's on/off
- [I 211025 11:20:04 webapp:859] LED 3 On
- [I 211025 11:25:42 startup:24]
- Startup of startup.py Script, Version v4.373
- [I 211025 11:25:42 startup:25] Log Level Set To: 20
- [I 211025 11:25:42 startup:39] Running thread 0
- [I 211025 11:25:42 startup:39] Running thread 1
- [I 211025 11:25:42 startup:39] Running thread 2
- [I 211025 11:25:42 startup:49] check-display.py
- [I 211025 11:25:43 startup:42] metar-v4.py
- [I 211025 11:25:45 check-display:21]
- Startup of check-display.py Script, Version v4.373
- [I 211025 11:25:45 check-display:22] Log Level Set To: 20
- [I 211025 11:25:47 metar-v4:103]
- Startup of metar-v4.py Script, Version v4.373
- [I 211025 11:25:47 metar-v4:104] Log Level Set To: 20
- [I 211025 11:25:47 metar-v4:312] Watching /NeoSectional/config.py For Change
- [I 211025 11:25:47 metar-v4:343] metar-v4.py Settings Loaded
- [I 211025 11:25:47 metar-v4:568] Airports File Loaded
- [I 211025 11:25:47 metar-v4:574] METAR Data Loading
- [I 211025 11:25:47 metar-v4:602] RPI IP Address = 192.168.10.92
- [I 211025 11:25:47 metar-v4:606] Internet Available
- [I 211025 11:25:47 metar-v4:607] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&mostRecentForEachStation=constraint&hoursBeforeNow=2.5&stationString=KLNK,KAHQ,KFET,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,KTQE,KSUX,KDNS,KHNR,KCIN,KADU,KAIO,KRDK,KSDA,KICL,KCSQ,KPRO,KBNW
- [I 211025 11:25:47 metar-v4:1150] Starting METAR Data Display
- [I 211025 11:25:47 metar-v4:1162] KPRO Not Reporting Flight Category through the API.
- [I 211025 11:25:47 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
- [I 211025 11:25:47 metar-v4:1162] KOFF Not Reporting Flight Category through the API.
- [I 211025 11:25:48 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
- [I 211025 11:25:48 metar-v4:1259] Decoded METAR Data for Display
- [I 211025 11:25:48 metar-v4:1414] Rotary Switch Not Installed. Using Switch Position 0 as Default
- [I 211025 11:25:48 wipes-v4:41]
- Startup of wipes-v4.py Script, Version v4.373
- [I 211025 11:25:48 wipes-v4:42] Log Level Set To: 20
- [I 211025 11:25:48 wipes-v4:755] maxlat = 42.38 minlat = 40.72 maxlon = -93.83 minlon = -96.77
- [I 211025 11:25:48 wipes-v4:756] sizelat = 1.66 sizelon = 2.94 centerlat 41.55 centerlon = -95.3
- [I 211025 11:25:49 wipes-v4:860] Executing Rainbow Wipe
- [I 211025 11:25:55 wipes-v4:865] Turning Off all LEDs
- [I 211025 11:25:55 metar-v4:556] Calling wipes script
- [I 211025 11:25:55 metar-v4:568] Airports File Loaded
- [I 211025 11:25:55 metar-v4:574] METAR Data Loading
- [I 211025 11:25:55 metar-v4:602] RPI IP Address = 192.168.10.92
- [I 211025 11:25:55 metar-v4:606] Internet Available
- [I 211025 11:25:55 metar-v4:607] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&mostRecentForEachStation=constraint&hoursBeforeNow=2.5&stationString=KLNK,KAHQ,KFET,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,KTQE,KSUX,KDNS,KHNR,KCIN,KADU,KAIO,KRDK,KSDA,KICL,KCSQ,KPRO,KBNW
- [I 211025 11:25:55 metar-v4:1150] Starting METAR Data Display
- [I 211025 11:25:55 metar-v4:1162] KPRO Not Reporting Flight Category through the API.
- [I 211025 11:25:55 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
- [I 211025 11:25:55 metar-v4:1162] KOFF Not Reporting Flight Category through the API.
- [I 211025 11:25:55 metar-v4:1169] FAA xml data is NOT providing the forecast field for this airport
- [I 211025 11:25:55 metar-v4:1259] Decoded METAR Data for Display
- [I 211025 11:25:55 metar-v4:1433] Ambient Sensor set brightness to bright_value
- [I 211025 11:26:08 webapp:66]
- Startup of metar-v4.py Script, Version v4.373
- [I 211025 11:26:08 webapp:67] Log Level Set To: 20
- [I 211025 11:26:08 webapp:142] Settings and Flask Have Been Setup
- [I 211025 11:26:08 webapp:1741] Internet Available
- [I 211025 11:26:08 webapp:1750] Startup - Current RPI IP Address = 192.168.10.92
- [I 211025 11:26:09 webapp:1762] Python Version = 3.7.3 (default, Jul 25 2020, 13:03:44)
- [GCC 8.3.0]
- [I 211025 11:26:09 webapp:1607] Internet Available
- [I 211025 11:26:09 webapp:1608] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=stations&requestType=retrieve&format=xml&stationString=KLNK,NULL,KAHQ,KFET,NULL,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,NULL,KTQE,NULL,NULL,KSUX,NULL,NULL,NULL,KDNS,NULL,KHNR,NULL,NULL,KCIN,NULL,KADU,NULL,KAIO,NULL,KRDK,NULL,KSDA,KICL,NULL,NULL,KCSQ,NULL,NULL,NULL,KPRO,NULL,KBNW,NULL,LGND,LGND,LGND,LGND,LGND,LGND
- [I 211025 11:26:09 webapp:1551] Internet Available
- [I 211025 11:26:09 webapp:1552] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=2.5&mostRecentForEachStation=constraint&stationString=KLNK,NULL,KAHQ,KFET,NULL,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,NULL,KTQE,NULL,NULL,KSUX,NULL,NULL,NULL,KDNS,NULL,KHNR,NULL,NULL,KCIN,NULL,KADU,NULL,KAIO,NULL,KRDK,NULL,KSDA,KICL,NULL,NULL,KCSQ,NULL,NULL,NULL,KPRO,NULL,KBNW,NULL,LGND,LGND,LGND,LGND,LGND,LGND
- [I 211025 11:26:09 webapp:1794] IP Address = 192.168.10.92
- [I 211025 11:26:09 webapp:1795] Starting Flask Session
- [I 211025 11:26:30 webapp:66]
- Startup of metar-v4.py Script, Version v4.373
- [I 211025 11:26:30 webapp:67] Log Level Set To: 20
- [I 211025 11:26:30 webapp:142] Settings and Flask Have Been Setup
- [I 211025 11:26:30 webapp:1741] Internet Available
- [I 211025 11:26:30 webapp:1750] Startup - Current RPI IP Address = 192.168.10.92
- [I 211025 11:26:30 webapp:1762] Python Version = 3.7.3 (default, Jul 25 2020, 13:03:44)
- [GCC 8.3.0]
- [I 211025 11:26:30 webapp:1607] Internet Available
- [I 211025 11:26:30 webapp:1608] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=stations&requestType=retrieve&format=xml&stationString=KLNK,NULL,KAHQ,KFET,NULL,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,NULL,KTQE,NULL,NULL,KSUX,NULL,NULL,NULL,KDNS,NULL,KHNR,NULL,NULL,KCIN,NULL,KADU,NULL,KAIO,NULL,KRDK,NULL,KSDA,KICL,NULL,NULL,KCSQ,NULL,NULL,NULL,KPRO,NULL,KBNW,NULL,LGND,LGND,LGND,LGND,LGND,LGND
- [I 211025 11:26:30 webapp:1551] Internet Available
- [I 211025 11:26:30 webapp:1552] https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=2.5&mostRecentForEachStation=constraint&stationString=KLNK,NULL,KAHQ,KFET,NULL,KMLE,KOFF,KPMV,KOMA,KCBF,KBTA,NULL,KTQE,NULL,NULL,KSUX,NULL,NULL,NULL,KDNS,NULL,KHNR,NULL,NULL,KCIN,NULL,KADU,NULL,KAIO,NULL,KRDK,NULL,KSDA,KICL,NULL,NULL,KCSQ,NULL,NULL,NULL,KPRO,NULL,KBNW,NULL,LGND,LGND,LGND,LGND,LGND,LGND
- [I 211025 11:26:30 webapp:1794] IP Address = 192.168.10.92
- [I 211025 11:26:30 webapp:1795] Starting Flask Session
- [I 211025 11:26:31 webapp:597] Opening Home Page/Index
- [I 211025 11:26:31 webapp:203] Opening open_console in separate window
- [I 211025 11:26:31 webapp:597] Opening Home Page/Index
- [I 211025 11:26:38 webapp:211] Opening stream_log in separate window
I don't lose pings and my SSH session is still active, so the Pi is not "dead" but only a hard reboot seems to bring it back.
@bchirhart I have noticed the same issue recently.
After turning the Map Off via the Map menu, then going to the Airports Menu and trying anything with the LEDs hangs the webserver.
The only way I have been able to get around this is to change the basic configuration to not start on boot, then reboot aver the config change is saved.
Then I can control the lights on the airports page until I turn the map on and off again through the Map menu.
I see the same lines in the log, even with the log level set to debug.
I have tried on 2 different pis both with fresh sd card images (other than updating the base configuration including run at boot).
Bill
Thanks for that insight. I know that the map cannot be running if the individual lights are needed to be controlled via the airports page. So maybe this is crux of the issue. I'll take a look. - Mark