Fuel consumption: consumption by rates

To update parameters of fuel consumption by rates, use the command unit/update_fuel_rates_params:

svc=unit/update_fuel_rates_params&params={"itemId":<long>,	
					  "consSummer":<double>,
					  "consWinter":<double>,
					  "winterMonthFrom":<ubyte>,
					  "winterDayFrom":<ubyte>,
					  "winterMonthTo":<ubyte>,
					  "winterDayTo":<ubyte>}

Parameters

Name Description
itemId unit ID
consSummer summer consumption, litres per 100 km
consWinter winter consumption, litres per 100 km
winterMonthFrom winter from (month: 0-11)
winterDayFrom winter from (day 1-31)
winterMonthTo winter to (month 0-11)
winterDayTo winter to (day 1-31)

Response

{}	/* empty object if execution successful, if not - error code */
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam