Webportal v1

embedded apps

API Reference - Car.GetFuelLevel()

Car.GetFuelLevel()

Type Method
Min Privacy Full
wave 2
wave 3
wave 4

Car.GetFuelLevel()

Description Gets the current fuel level of the vehicle.
Response Number The fuel level of the car in percentage.
Parameter Void

Example

1
2
3
var fuelLevel = Car.GetFuelLevel()
// fuelLevel = 60 %
alert("You are at" + fuelLevel + "of fuel left")

Appeared in Software version 30.04.48.50