Contact us LoginLIVE DEMOFREE TRIAL

get_inputs(…)

Get current state of tracker’s digital inputs and “semantic” inputs (ignition, buttons, car alarms, etc.) bound to them (if any).

parameters:

namedescriptiontype
tracker_idId of the tracker (aka “object_id”). Tracker must belong to authorized user and not be blocked.Int

return:

{"success": true, 
"user_time": <current time in user's timezone, e.g. "2014-07-09 07:50:58"?>,
"inputs": <array of states of all digital inputs, e.g. [true, true, false] means input 1 is on, input 2 is on, input 3 is off >, //array[boolean]
 "states": [
    {
        "type": <one of predefined semantic input types (see table below)>, //string
        "name": <user-defined name for semantic input, or null if not specified>, //string
        "status": <true if input is active, false otherwise>, //boolean
        "input_number": <number of the associated discrete input, e.g. 3> //int
    },
    ...
],
"update_time": <when the data was updated, e.g. "2014-03-06 13:57:00">  //date/time
}

input types:

namedescription
ignitionCar’s ignition. There can be only one sensor of this type.
engineEngine’s working status.
massCar’s “ground” (hell if I know how it’s supposed to work).
car_alarmExpected to be “on” when car alarm is triggered.
sos_buttonAn emergency “red” button.
hood“on” if engine’s hood is open
door“on” if car’s door is open
car_lock“on” if car’s central lock is open
customuser-defined type. In general, should have non empty “name” field.

errors:

  • 204 – Entity not found (if there is no tracker with such id belonging to authorized user)
  • 208 – Device blocked (if tracker exists but was blocked due to tariff restrictions or some other reason)

If you have more questions please contact our support team

Contacts

USA: +1 858 225 46 88

Mexico: +52 558 526 11 25

UK: +44 203 807 64 62

Russia: +7 495 128 35 56

We use сookies to improve our website, products and related services, analyze site traffic, and serve targeted advertisements. If you continue to use our services, you consent to our use of сookies. Read more

Log in