Skip to content

Conversation

@igricrbx
Copy link

@igricrbx igricrbx commented Jun 1, 2025

Add HTML source table display for web browsers

Hello! I hope this finds you well. I've been working with your NTRIP caster implementation and wanted to contribute an enhancement that I believe will improve the user experience. I noticed that rtk2go.com serves HTML-formatted source tables when accessed from a web browser instead of raw text. I've implemented the same behavior for this caster. Now it detects browser requests and serves a clean HTML table, while keeping the original plain text format for NTRIP clients. This makes it easier to verify whether the server is working as intended and if the source table is properly loaded from the configuration file.

What this does:

  • Detects browser requests via User-Agent headers
  • Serves formatted HTML tables with proper column headers for CAS, NET, and STR records
  • Maintains 100% backward compatibility
  • Makes it easy for operators to check stream status by just opening the caster URL in a browser (http://your-server:2101)

Additional improvements

As part of this work, I also modernized the Docker deployment by migrating from Ubuntu to Alpine Linux, which reduces the container size by approximately 90% and improves deployment speed

Screenshot

Screenshot_3

I would like to thank you for maintaining this important piece of GNSS infrastructure. I'd be honored to have this enhancement included in the main repository.

@goblimey
Copy link
Owner

Many apologies for sitting on this pull request for so long. I've been busy with another project.

Your idea for an enhanced home page sounds very sensible to me. However, I didn't write the NTRIP caster.  It was written for BKG, a German organisation that supports accurate GNSS.  I simply took their solution and got it running under Docker to make it easier to install.  

BKG still maintain and support the caster, so you need to talk to them.  In any case,  not everybody uses my docker version so giving the changes to them would be more useful.  Also, you should work from their latest version.  The version used here is out of date and needs upgrading.

If you hunt through my (very long-winded) Readme, you will see how to find the BKG organisation.

You also suggest running the caster under a different version of Linux. That decision is mine and I accept your suggestion. I will include that part of your change in my next release.

Regards

Simon

@goblimey
Copy link
Owner

Actually, my Readme just talks about another github repo.

For the original source code you want https://igs.bkg.bund.de/ntrip/

I recall that the source code is stored in a subversion archive, not a git repository. Subversion is open source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants