dump1090
dump1090 copied to clipboard
gmap.html not found, if current dir is not dump1090's dir
If I launch dump1090 from my homedir (~/sw/dump1090/dump1090 --net), it cannot load the "gmap.html" file and displays message: "Error opening HTML file: No such file or directory", when the address is accessed by web browser. "/data.json" is accessible though. If I change the current dir to dump1090's one and then launch it, it works as expected.
Yes. There should be a configuration option to locate gmap.html or at least it should look at current dir and possibly /usr/share/dump1090.
Other suggestion: search for gmap.html in this order:
- in the directory where the binary is located.
- in the current working directory
@nunojpg /usr/share/dump1090 makes sense only if you have manually installed it there. I guess looking for this location would make sense if the package is installed through your distribution's repos (as I'd like to package it for Debian), but there could be so many different places where the user decides to place this code (/opt, /home, etc.) that it doesn't make it practical to have the binary search in all these places by default.
Then the path should be configureable by a make-flag on the commandline at compile-time.
Anything new about this issue?
@iquadtree Have tried this fork: https://github.com/bdavenport/dump1090
Configuring paths at compile time is never a good thing, basically... there should be an argument to pass IMHO, defaulting to current directory.
@terribl, that fork doesn't work for me. According to strace it tries to find public_html directory inside the current one and read gmap.html file:
stat("./public_html/gmap.html", 0x7fffef972290) = -1 ENOENT (No such file or directory)
and then it just reports that file was not found.
Any news on this one?