Programming

What the Death of FirefoxOS Means for Sensor APIs

Posted on

Rather sadly, the FirefoxOS project got binned, which removed the momentum of the device sensor APIs that Mozilla was the big sponsor of. What this means for these APIs is that, while many are actually well through the standardisation process, the browser support is sketchy. Your motion and orientation sensor will show you very low […]

Browsers

Battery Status API

Posted on

The battery status API is quite a special one. While on a basic level you can use it to get information on how long a battery has left, it is what you do with the information that makes it cool. For example, if you have a web app that performs polling in the background, grabbing […]

Programming

Using the Proximity Sensor API in Firefox

Posted on

Following up on my post about Using The Light Sensor API In Firefox and with all the same caveats (new feature, just in one browser so far, specification may change), I thought I would also note down the Proximity Sensor API in Firefox. var proximiyFeatureCallback = function (proximity) { if (proximity.near) { alert(‘You are close!’); […]

Programming

Using the Light Sensor API in Firefox

Posted on

As of Firefox 14 (or 15 if it doesn’t make it in time) you can start using the experimental light-sensor API. This allows you to get the current ambient light in lux, which measures luminous flux per unit area. The caveats for all this are that the device must have a sensor that can detect […]