To read more on how to use sensor variables, please read the Device sensors guide.
The device's current acceleration. Note that the z
property includes Earth's gravitational acceleration.
The values below describe properties of the sensorVars.accelerometer.latestValue
variable, and as such, the schema of the items in the sensorVars.accelerometer.values
array.
Property | Values | Description |
| Negative or positive decimal, e.g. | Acceleration along the X axis, as m/s². |
| Negative or positive decimal, e.g. | Acceleration along the Y axis, as m/s². |
| Negative or positive decimal, e.g. | Acceleration along the Z axis, as m/s². |
| ISO 8601 format string, e.g. | Timestamp of when the value was recorded. |
The atmospheric pressure around the device.
The values below describe properties of the sensorVars.barometer.latestValue
variable, and as such, the schema of the items in the sensorVars.barometer.values
array.
Property | Values | Description |
| Positive decimal, e.g. | Atmospheric pressure, in kilopascals. |
| ISO 8601 format string, e.g. | Timestamp of when the value was recorded. |
The device's current heading.
The values below describe properties of the sensorVars.compass.latestValue
variable, and as such, the schema of the items in the sensorVars.compass.values
array.
Property | Values | Description |
| Positive decimal between | The direction in which the device is facing, given as degrees from true north. 0 degrees represents true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees). |
| ISO 8601 format string, e.g. | Timestamp of when the value was recorded. |
The device's current position, altitude, heading and speed.
The values below describe properties of the sensorVars.geolocation.latestValue
variable, and as such, the schema of the items in the sensorVars.geolocation.values
array.
Property | Values | Description |
| Negative or positive decimal, e.g. | Latitude of the device, in decimal degrees. |
| Negative or positive decimal, e.g. | Longitude of the device, in decimal degrees. |
| Negative or positive decimal, e.g. | Altitude of the device, in meters, relative to sea level. If the device does not provide this information, this value will be |
| Positive decimal, e.g. | Accuracy of the |
| Positive decimal, e.g. | Accuracy of the |
| Positive decimal between | The direction in which the device is traveling, given as degrees from true north. 0 degrees represents true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees). |
| Positive decimal, e.g. | Velocity of the device, in meters per second. |
| ISO 8601 format string, e.g. | Timestamp of when the value was recorded. |
The device's current rotation.
The values below describe properties of the sensorVars.gyroscope.latestValue
variable, and as such, the schema of the items in the sensorVars.gyroscope.values
array.
Property | Values | Description |
| Negative or positive decimal, e.g. | Angular velocity of the device along its X axis, in m/s². |
| Negative or positive decimal, e.g. | Angular velocity of the device along its Y axis, in m/s². |
| Negative or positive decimal, e.g. | Acceleration along the Z axis, as m/s². |
| ISO 8601 format string, e.g. | Timestamp of when the value was recorded. |
The device's current position relative to the Earth's magnetic field.
The values below describe properties of the sensorVars.magnetometer.latestValue
variable, and as such, the schema of the items in the sensorVars.magnetometer.values
array.
Property | Values | Description |
| Negative or positive decimal. | Magnetic field of the device along its X axis, in microteslas. |
| Negative or positive decimal. | Magnetic field of the device along its Y axis, in microteslas. |
| Negative or positive decimal. | Magnetic field of the device along its Z axis, in microteslas. |
| ISO 8601 format string, e.g. | Timestamp of when the value was recorded. |