dump1090 icon indicating copy to clipboard operation
dump1090 copied to clipboard

Query arguments no longer supported

Open raccettura opened this issue 2 years ago • 7 comments

Seems like in a somewhat recent version query arguments notably (?banner=hide&sidebar=hide) no longer work.

Quickly tracing this I found:

applyUrlQueryStrings in script.js does fire, however something in resetMap() seems to cause it break and thus it never gets beyond that point.... didn't get any deeper than that.

raccettura avatar Jun 11 '23 21:06 raccettura

Working OK here. What's the full url you're using? Do you have console log output?

eric1tran avatar Jun 12 '23 18:06 eric1tran

Using:

/skyaware/?banner=hide&sidebar=hide

Which has been the case for maybe a year with no issue. Most of the console is boring minus maybe: /skyaware/data-978/receiver.json?_=1686599433516 404 skyaware/upintheair.json 404 and image

raccettura avatar Jun 12 '23 19:06 raccettura

At a glance this is probably due to a missing receiver location. (It shouldn't break in that case, which is a bug, but that is possibly what changed in your setup)

mutability avatar Jun 13 '23 07:06 mutability

I've never had a 978mhz antenna, so no change in my setup in a long time.

raccettura avatar Jun 13 '23 21:06 raccettura

Okay. Do you get a receiver location dot and range circles when you load the page without a query string?

mutability avatar Jun 14 '23 04:06 mutability

Negative. But everything else functions. Only error is:

Error reading SkyAware978 receiver.json. SkyAware978 may be disabled

Which is correct/expected.

raccettura avatar Jun 14 '23 04:06 raccettura

Okay, so as I mentioned above, the trigger for this is likely that you do not have a receiver location set.

mutability avatar Jun 15 '23 03:06 mutability