feat: odometer baseline syncs to server — push on save, pull on sync, +/api/device-config/push endpoint
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user