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
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Radio project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-10 12:20 UTC by Stephen Kirkby
Modified: 2023-10-10 11:48 UTC (History)
1 user (show)

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


Attachments

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
3. 
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:

https://github.com/moodytux/portage-overlay/commit/1e9a3e404cc16127cb2382e58518538ad87544ec
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:

https://github.com/moodytux/portage-overlay/blob/master/net-wireless/dump1090/dump1090-5.0-r1.ebuild

To see the aircraft on the map with this version, use port 80 on the following URL: http://localhost/skyaware/
Comment 3 Ansers 2023-10-10 11:48:03 UTC
Hey,

I've been following the development of dump1090 closely, and it's great to see progress being made on resolving some of the longstanding issues. Thanks for your contribution :)

I've had my fair share of frustrations with the local web UI not working properly, so this update is like a breath of fresh air. The integration with lighttpd is a much-needed addition for those of us who want a seamless aircraft tracking experience. Kudos to you for taking the initiative to create this updated version.

I've given you rebuild a try, and I'm happy to report that it's working like a charm. The aircraft map on port 80 is a delight to use – it's responsive and loads quickly. My aircraft tracking setup has never been smoother. just take a look: https://www.moneydonut.co.uk/blog/23/09/web-development-hidden-costs-you-need-to-be-aware-of

For those facing similar issues, I highly recommend giving moodytux's version a shot. It's a game-changer for the dump1090 local web UI.