get_report_settings
To obtain the parameters used in reports, use the unit/get_report_settings command.
svc=unit/get_report_settings¶ms={"itemId":<long>}
Parameters
The request must contain the itemId parameter, specifying the unit ID.
Response
If the request is completed successfully, the response contains the parameters used in reports.
{
"speedLimit":<uint>, /* Speed limit, km/h */
"maxMessagesInterval":<uint>, /* Maximum interval between messages, seconds */
"dailyEngineHoursRate":<uint>, /* Daily rate of engine hours, seconds */
"urbanMaxSpeed":<uint>, /* Urban speed limit, km/h */
"mileageCoefficient":<uint>, /* Mileage coefficient */
"fuelRateCoefficient":<uint>, /* Fuel rate */
"speedingTolerance":<uint>, /* Allowed speeding, km/h (used if speedingMode = 1) */
"speedingMinDuration":<uint>, /* Minimum speeding time, seconds */
"speedingMode":<uint> /* Speeding detection mode: 0 - use speedLimit, 1 - use map data */
}
If speedingMode = 0 and speedLimit = 0, the Speedings table is not generated.
If the request fails, the response contains error code 7, indicating that the user doesn’t have the required access right (ADF_ACL_ITEM_VIEW_PROPERTIES).