Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic sensor add/remove #178

Closed
larsgk opened this issue Mar 31, 2017 · 3 comments
Closed

Dynamic sensor add/remove #178

larsgk opened this issue Mar 31, 2017 · 3 comments

Comments

@larsgk
Copy link

larsgk commented Mar 31, 2017

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' ... )
@tobie
Copy link
Member

tobie commented Mar 31, 2017

That's a duplicate of #7. Closing as such.

@tobie tobie closed this as completed Mar 31, 2017
@larsgk
Copy link
Author

larsgk commented Mar 31, 2017

can't see how I missed that one.

still: I don't think the discussions in #7 describe all issues mentioned above very clearly.

@tobie
Copy link
Member

tobie commented Mar 31, 2017

I agree. Mind pasting your comment over?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants