feat: odometer baseline syncs to server — push on save, pull on sync, +/api/device-config/push endpoint

This commit is contained in:
Mathieu Moran
2026-08-11 19:31:52 -04:00
parent 878ba4a958
commit 32de77131c
6 changed files with 63 additions and 23 deletions
+1
View File
@@ -16,6 +16,7 @@ def get_device_config():
"car_model": app_sql.get_setting("device_car_model", ""),
"device_name": app_sql.get_setting("device_device_name", ""),
"avatar_path": app_sql.get_setting("device_avatar_path", ""),
"odometer_baseline": float(app_sql.get_setting("odometer_baseline", "0") or "0"),
"sync_enabled": sync_enabled,
}
# Fill in any missing values from config file or defaults