Skip to content

BarometerReadingEvent

Inherits: Event['Barometer']

A sensor sample from a barometer.

Barometers measure the atmospheric pressure surrounding the sensor, returning values in hectopascals hPa.

Consider that these samples may be affected by altitude and weather conditions, and can be used to predict short-term weather changes or determine altitude.

Note that water-resistant phones or similar sealed devices may experience pressure fluctuations as the device is held or used, due to changes in pressure caused by handling the device.

An altimeter is an example of a general utility for barometer data.

Properties

  • pressure(float) –

    Atmospheric pressure reading, in hectopascals (hPa).

  • timestamp(int) –

    Event timestamp, expressed in microseconds since epoch.

Properties#

pressure instance-attribute #

pressure: float

Atmospheric pressure reading, in hectopascals (hPa).

timestamp instance-attribute #

timestamp: int

Event timestamp, expressed in microseconds since epoch.