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

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:

  http://lists.w3.org/Archives/Public/public-device-apis/2013Apr/0043.html

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!

Thanks!

-Anssi

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