alkissack / Dump1090-OpenLayers-html

Modifications to the Openlayers html files (part of the dump1090-fa branch)
GNU General Public License v2.0
43 stars 20 forks source link

Dump1090-OpenLayers3-html is not compatible with version 8.2 of dump1090-fa #9

Closed as365n4 closed 1 year ago

as365n4 commented 1 year ago

I set up a test rig with the current FlightAware dump1090-fa and then copied public-html to /usr/share/skyaware and it results only in a blank page with spinning wheel, no map and no planes and no data is being shown.

It worked flawlessly with version 7.2 of dump1090-fa but not with version 8.2, any chance of an update? Can I support fault finding with logs or anything?

as365n4 commented 1 year ago

/var/log/lighttpd/error.log

2023-01-15 00:00:01: (server.c.1867) logfiles cycled UID = 0 PID = 589911 2023-01-16 14:43:35: (server.c.2097) server stopped by UID = 0 PID = 1 2023-01-16 14:44:11: (server.c.1588) server started (lighttpd/1.4.67) 2023-01-18 14:35:06: (server.c.2097) server stopped by UID = 0 PID = 1 2023-01-18 14:35:40: (server.c.1588) server started (lighttpd/1.4.67) 2023-01-18 16:28:32: (server.c.2097) server stopped by UID = 0 PID = 1 2023-01-18 16:29:03: (server.c.1588) server started (lighttpd/1.4.67)

as365n4 commented 1 year ago

/etc/lighttpd/lighttpd.conf lighttpd.conf

/etc/lighttpd/conf-enabled/89-skyaware.conf 89-skyaware.conf

/etc/lighttpd/conf-enabled/88-dump1090-fa-statcache.conf 88-dump1090-fa-statcache.conf

/etc/lighttpd/conf-enabled/90-javascript-alias.conf 90-javascript-alias.conf

alkissack commented 1 year ago

I've just installed the latest flightaware (8.2 from https://flightaware.com/adsb/piaware/build/) on a pi. renamed the /usr/share/skyaware/html/ folder, copied in my public_html and renamed it to html (/usr/share/skyaware/html) and found all to be working. Please ensure you have followed the above in case there is a conflict between the files in the 2 html directories

as365n4 commented 1 year ago

I am on arm64, so I had to build dump1090-fa myself. My workflow to install your add-on was as below:

git clone https://github.com/alkissack/Dump1090-OpenLayers3-html.git cd /usr/share/skyaware sudo mv html original-html cd /home/myuser/Dump1090-OpenLayers3-html sudo cp -R public_html /usr/share/skyaware/html cd /usr/share/skyaware/html sudo nano config.js (to set location coordinates)

I will try again and see how it goes.

as365n4 commented 1 year ago

I've just purged dump1090-fa and skyaware from my machine. Rebuild the dump1090-fa package and installed it with apt, then rebooted my machine. Skyaware is showing map and planes, so dump1090-fa is working. Next removed the html folder from /usr/share/skyaware and then copied public_html to /usr/share/skyaware, renamed it to html and rebooted the machine. Flushed the browser cache and again I get only the endless spinning wheel and blue stripe running across, but no map no planes and no data, systemctl is reporting that dump1090-fa is running and healthy. Very strange :-\

alkissack commented 1 year ago

If you are using Chrome, can you right click and inspect element, look at console and report any errors

as365n4 commented 1 year ago

Ok, purged and reinstalled the dump1090-fa package, then replaced html with public_html and renamed to html. Flushed the browser cache and now I have a map and planes, yay.

Firefox reports the folowing: Screenshot from 2023-01-23 19-33-52

alkissack commented 1 year ago

good news