Skip to main content
GNSS Documentation
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage
Edit page

Config from JSON

Load GNSS configuration from a JSON file instead of hardcoding it.

Source: examples/Python/config_from_json.py, examples/Python/res/

Usage

python3 examples/Python/config_from_json.py res/config.json
python3 examples/Python/config_from_json.py res/config_no_geofencing.json
python3 examples/Python/config_from_json.py res/config_no_timepulse.json

Why

  • Deployment — ship different configs for different HATs / environments
  • Testing — quickly switch between configurations without recompiling
  • Remote management — update config via file transfer