- From: Lars Knudsen via GitHub <sysbot+gh@w3.org>
- Date: Fri, 31 Mar 2017 07:48:43 +0000
- To: public-device-apis-log@w3.org
larsgk has just created a new issue for https://github.com/w3c/sensors: == Dynamic sensor add/remove == Although I see a lot of improvement over earlier scattered sensor APIs, I would strongly suggest that the API will also embrace sensors dynamically added/removed. A use case that might very well happen soon: 1. I am sitting in my house looking at a temperature widget. The web app widget is connected to both my phone temperature sensor and a temperature sensor outside my kitchen window. 2. I walk out to my car, losing connection with the sensor in my house - but keeping connection with the phone's sensor. 3. I start my car and my web app widget discovers the inside and outside temperature sensors in the car and shows them in the widget now... there are a few issues with the current API for this to happen: 1. to have a new TemperatureSensor() in the first place, the browser needs to know about a 'TemperatureSensor' or it needs to be added with some polyfill (= not very generic) 2. I don't see any mechanism/events for adding/removing sensors 3. I see only a short example of a very specific way of addressing multiple sensors in the tire pressure example ... IMO, we need sensor discovery based on physical properties (e.g. tire pressure sensors can (also) be found by searching for sensors related to 'rotating motion' & 'air pressure' ... ) Please view or discuss this issue at https://github.com/w3c/sensors/issues/178 using your GitHub account
Received on Friday, 31 March 2017 07:48:51 UTC