Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 769881 - net-wireless/dump1090 local web UI doesn't work
Summary: net-wireless/dump1090 local web UI doesn't work
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Radio project
Depends on:
Reported: 2021-02-10 12:20 UTC by Stephen Kirkby
Modified: 2022-01-09 11:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Kirkby 2021-02-10 12:20:13 UTC
dump1090 has the ability to show a map locally with the aircraft data that has been received, but this isn't working with this ebuild. I've been able to get this to work with some changes:
* there is no mention of lighttpd being a dependency so added that manually
* the /usr/share/dump1090/lighttpd.conf wasn't included in /etc/lighttpd/lighttpd.conf, so added:
include "/usr/share/dump1090/lighttpd.conf"
* I explicitly needed to enable mod_alias in /usr/share/dump1090/lighttpd.conf by uncommenting near the top
* the /usr/share/dump1090/lighttpd.conf referenced and expected its html files under a different base, so symlinked /usr/share/dump1090 => /usr/share/dump1090-fa
* restarted lighttpd and could see the map but no plains
* created the expected /run/dump1090-fa directory, and chmod 777'd it
* ran the dump1090 command with the extra --write-json parameter, e.g. dump1090 --interactive --net --enable-agc --write-json /run/dump1090-fa/

This could be fixed with the following changes (or similar) to this ebuild:
* put the project files in /usr/share/dump1090-fa rather than /usr/share/dump1090
* add lighttpd as an optional dependency by adding a use flag to the ebuild
* if lighttpd is enabled, create a /run/dump1090-fa directory as 777
* if lighttpd is enabled, add instructions for the user to add the 'include "/usr/share/dump1090/lighttpd.conf"' into /etc/lighttpd/lighttpd.conf, as well as apply the --write-json /run/dump1090-fa/ parameter when running dump1090

Reproducible: Always

Steps to Reproduce:
1. Run dump1090 --interactive --net --enable-agc
2. Visit localhost:8080
Actual Results:  
No web interface is shown

Expected Results:  
Web interface should be shown with aircraft data plotted
Comment 1 Stephen Kirkby 2021-03-06 13:06:21 UTC
I've created an ebuild with support for running dump1090 as a server so that it can be used with lighttpd (as outlined previously). It's available in my personal overlay:
Comment 2 Stephen Kirkby 2022-01-09 11:59:45 UTC
The latest stable dump1090-5.0 ebuild now has some of the original issues resolved, but still doesn't provide lighttpd integration to view a working local map showing aircraft.

For those interested in using the local map UI, I've created an updated dump1090-5.0-r1 (link below) which aligns with the latest stable release ebuild but adds working lighttpd integration:

To see the aircraft on the map with this version, use port 80 on the following URL: http://localhost/skyaware/