mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-08-11 03:12:51 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user