Add GPS location configuration and diagnostics stream

- Introduced options for using GPS coordinates for repeater location fields in config.
- Implemented precision control for GPS coordinates.
- Added a new API endpoint for a Server-Sent Events stream of GPS diagnostics.
- Updated GPSService to handle new configuration options and fallback logic.
- Enhanced unit tests for GPS location handling.
This commit is contained in:
Rightup
2026-04-28 23:22:52 +01:00
parent 42b4bbd9e9
commit 76a9785218
7 changed files with 234 additions and 1 deletions
+10
View File
@@ -137,6 +137,16 @@ gps:
# The default 0,0 repeater location is treated as unset.
use_manual_location_until_fix: true
# Opt-in: use GPS coordinates for repeater-originated location fields
# (for example flood adverts). When disabled, repeater.latitude/longitude
# from config are always used.
use_gps_for_repeater_location: false
# Optional privacy/obfuscation control when GPS is used for repeater
# location. If set, coordinates are rounded to this many decimal places
# before use (0-8). Leave null for full reported precision.
repeater_location_precision_digits: null
# Source type:
# serial = read directly from an attached GPS module
# file = read NMEA lines from source_path, useful for gpsd/sidecar bridges