diff --git a/config.yaml.example b/config.yaml.example index 648acb1..5e498df 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -127,13 +127,13 @@ repeater: jwt_expiry_minutes: 60 # Local GPS diagnostics. When enabled, the daemon reads NMEA sentences from the -# configured source and exposes parsed attributes at /api/gps and /gps. +# configured source and exposes parsed attributes at /api/gps. gps: enabled: false # Use repeater.latitude/repeater.longitude as the displayed receiver location # until the GPS has a valid non-stale fix. This prevents early no-fix GPS - # estimates from moving the diagnostics globe/map away from the configured site. + # estimates from replacing the configured site location in API clients. # The default 0,0 repeater location is treated as unset. use_manual_location_until_fix: true diff --git a/repeater/data_acquisition/gps_service.py b/repeater/data_acquisition/gps_service.py index f50d929..1564f48 100644 --- a/repeater/data_acquisition/gps_service.py +++ b/repeater/data_acquisition/gps_service.py @@ -4,7 +4,7 @@ GPS/NMEA acquisition and diagnostics support. The service intentionally keeps the NMEA parser local and dependency-light. It accepts raw NMEA sentences from a serial receiver or from a file source used by external bridge processes, then exposes a JSON-serializable snapshot for the -HTTP API and diagnostics UI. +HTTP API. """ from __future__ import annotations diff --git a/repeater/web/html/gps.html b/repeater/web/html/gps.html deleted file mode 100644 index c9b8987..0000000 --- a/repeater/web/html/gps.html +++ /dev/null @@ -1,1275 +0,0 @@ - - - - - - pyMC GPS Diagnostics - - - - - - -
-
-
-

GPS Diagnostics

-

Live NMEA receiver state, parsed fix data, and satellite visibility.

-
- -
- -
- -
-
-
-
Fix State
-
Loading
-
Waiting for /api/gps
-
-
-
Coordinates
-
n/a
-
latitude, longitude
-
-
-
Satellites
-
n/a
-
used / in view
-
-
-
Freshness
-
n/a
-
last update unknown
-
-
- -
-
-
-

Satellite Globe

-

User-centered sky view from satellite azimuth, elevation, and SNR.

-
- 0 sats -
-
- - -
-
- -
-
- -
-
-

Receiver Source

-
-
-
-

Fix

-
-
-
-

Position

-
-
-
-

Motion

-
-
-
-

Accuracy

-
-
-
-

Time

-
-
-
-

NMEA Health

-
-
-
-

Satellites In View + SNR

-
-
-
-

Recent NMEA Sentences

-
-
-
-

Raw Snapshot

-
{}
-
-
-
- - - - - - diff --git a/repeater/web/http_server.py b/repeater/web/http_server.py index 720f6f7..2067313 100644 --- a/repeater/web/http_server.py +++ b/repeater/web/http_server.py @@ -152,19 +152,6 @@ class StatsApp: logger.error(f"Error serving index.html: {e}") raise cherrypy.HTTPError(500, "Internal server error") - @cherrypy.expose - def gps(self, **kwargs): - """Serve the standalone GPS diagnostics page.""" - gps_path = os.path.join(self.html_dir, "gps.html") - try: - with open(gps_path, "r", encoding="utf-8") as f: - return f.read() - except FileNotFoundError: - raise cherrypy.HTTPError(404, "GPS diagnostics page not found.") - except Exception as e: - logger.error(f"Error serving gps.html: {e}") - raise cherrypy.HTTPError(500, "Internal server error") - @cherrypy.expose def default(self, *args, **kwargs): """Handle client-side routing - serve index.html for all non-API routes.""" diff --git a/repeater/web/openapi.yaml b/repeater/web/openapi.yaml index 4a8ec63..023b253 100644 --- a/repeater/web/openapi.yaml +++ b/repeater/web/openapi.yaml @@ -351,7 +351,7 @@ paths: type: object position: type: object - description: Effective receiver position used by the diagnostics UI + description: Effective receiver position for API clients gps_position: type: object description: Raw position reported by the GPS receiver, even before a valid fix