To update parameters of fuel fillings/thefts detection, use the command unit/update_fuel_level_params:
svc=unit/update_fuel_level_params¶ms={"itemId":<long>, "flags":<uint>, "ignoreStayTimeout":<uint>, "minFillingVolume":<double>, "minTheftTimeout":<uint>, "minTheftVolume":<double>, "filterQuality":<ubyte>}
| Name | Description |
|---|---|
| itemId | unit ID |
| flags | flags of fillings and thefts (see Fuel consumption) |
| ignoreStayTimeout | ignore the messages after the start of motion, sec |
| minFillingVolume | minimum fuel filling volume, litres |
| minTheftTimeout | minimum stay timeout to detect fuel theft, sec |
| minTheftVolume | minimum fuel theft volume, litres |
| filterQuality | filter quality (0..255) |
{} /* empty object if execution successful, if not - error code */