W3C Moves Six Sensor APIs to CR Status

Today, the W3C promoted six Sensor APIs to Candidate Recommendation (CR) status. These HTML5 APIs are intended to provide access to sensors in browser-based applications, so that web-based applications, in particular on mobile devices, get closer to the capabilities of native apps, which typically have more direct access to a device's capabilities. The published specifications are a Generic Sensor API, as well as specific APIs for Accelerometer, Magnetometer, Ambient Light, Gyroscope, and Orientation sensors.

  • The Generic Sensor API "defines a framework for exposing sensor data to the Open Web Platform in a consistent way. It does so by defining a blueprint for writing specifications of concrete sensors along with an abstract Sensor interface that can be extended to accommodate different sensor types."

  • The Accelerometer API "defines Accelerometer, LinearAccelerationSensor and GravitySensor interfaces for obtaining information about acceleration applied to the X, Y and Z axis of a device that hosts the sensor."

  • The Magnetometer API "defines a concrete sensor interface to measure magnetic field in the X, Y and Z axis."

  • The Ambient Light Sensor API "defines a concrete sensor interface to monitor the ambient light level or illuminance of the device's environment."

  • The Gyroscope API "defines a concrete sensor interface to monitor the rate of rotation around the device‚Äôs local three primary axes."

  • The Orientation Sensor API "defines a base orientation sensor interface and concrete sensor subclasses to monitor the device's physical orientation in relation to a stationary three dimensional Cartesian coordinate system."

The Author

Erik Wilde

Lead API Technologist

An expert in protocol design and structured data, Erik Wilde consults with organizations to help them get the most out of APIs and microservices. Erik has been involved in the development of innovative technologies since the advent of the Web and is active in the IETF and W3C communities. He obtained his PhD from ETH Zurich and served as Associate Adjunct Professor at Berkeley before working at EMC, Siemens and now CA Technologies.

Join the Conversation