mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-06 14:52:47 +03:00
Add autotracking calibration message (#16431)
* check autotracking calibration values before writing to config * docs * clarify log message
This commit is contained in:
@@ -64,7 +64,9 @@ class PtzAutotrackConfig(FrigateBaseModel):
|
||||
raise ValueError("Invalid type for movement_weights")
|
||||
|
||||
if len(weights) != 5:
|
||||
raise ValueError("movement_weights must have exactly 5 floats")
|
||||
raise ValueError(
|
||||
"movement_weights must have exactly 5 floats, remove this line from your config and run autotracking calibration"
|
||||
)
|
||||
|
||||
return weights
|
||||
|
||||
|
||||
Reference in New Issue
Block a user