W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2013

Re: Ambient light events and proximity events in CR! Fwd: Ambient Light Events, and Proximity Events are Candidate Recommendations (Call for Implementations)

From: Kostiainen, Anssi <anssi.kostiainen@intel.com>
Date: Mon, 30 Dec 2013 13:42:12 +0000
To: Francesco Iovine <f.iovine@gmail.com>
CC: "public-device-apis@w3.org" <public-device-apis@w3.org>, "Dominique Hazael-Massieux" <dom@w3.org>
Message-ID: <9C2E097A-1744-4A78-867C-50E8DC4C68F0@intel.com>
Hi Francesco, All,

On 24 Dec 2013, at 19:01, Francesco Iovine <f.iovine@gmail.com> wrote:

> Hi guys,
> Mozilla implemented the DeviceLightEvent for Firefox, Firefox Mobile and Firefox OS.
> I wrote a Xmas-themed Ambient Light API article on MDN about it:
> https://developer.mozilla.org/en-US/Apps/Developing/gather_and_modify_data/Responding_to_light_conditions

Thanks for sharing the article and the cool demo :)

It seems you just documented a use case that would benefit from LightLevelEvent. In your demo you need to guess the lux breakpoints for morning, evening, night etc. while an implementation might be in a better position to know what are the typical lux ranges for the userís current environment that are considered dim, normal, and bright. For example, in the Northern Finland the sun never comes above the horizon this time of year.

> Hope it helps!
> However it looks like the work on the LightLevelEvent Interface has stopped:
> https://bugzilla.mozilla.org/show_bug.cgi?id=842952
> Do you have further news on the implementations?
> Is the LightLevelEvent specification stable?

Re the spec stability, I proposed the following change to the spec to combine the interfaces:


This was +1íd by Doug and Anne. Given the known implementations only implement DeviceLightEvent, we could merge the value attribute of the LightLevelEvent interface into the DeviceLightEvent and rename it to e.g. state as I proposed.

The only concern is with the firing frequency, but this is not a major issue.

Does anyone have concerns with merging the DeviceLightEvent and LightLevelEvent interfaces as described in the mail above?

[For consistently, we should keep the DeviceProximityEvent and UserProximityEvent in sync if we do changes here, but that warrants another thread if we proceed with this change.]

> For everyone who celebrates Christmas, wish you a wonderful festive season!


Received on Monday, 30 December 2013 13:42:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:01 UTC