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

Add simulators #5

Closed
rzr opened this issue Feb 28, 2019 · 1 comment
Closed

Add simulators #5

rzr opened this issue Feb 28, 2019 · 1 comment

Comments

@rzr
Copy link
Owner

rzr commented Feb 28, 2019

They could return random values like done
https://github.com/SamsungInternet/color-sensor-js/blob/master/lib/simulator.js

It should be trivial to implement, then once done I suggest to set simulator as default controllers for all sensors type then I will update:
https://github.com/rzr/mozilla-iot-generic-sensors-adapter/

Relate-to: SamsungInternet/webthings-webapp#4
CC: @Utopiah

MatonAnthony added a commit to MatonAnthony/generic-sensors-lite that referenced this issue Mar 10, 2019
Add the simulator driver for ambientlight API.

- Write a simulator driver for ambientlight
- Use it as a default driver if no driver is specified

Issue-Id: rzr#5 Add simulators
Environment:
    Darwin 18.2.0
    Node 10.15.1
    Node 9.5.0

Signed-off-by: Anthony Maton <me@anthony-maton.me>
@rzr rzr mentioned this issue Mar 10, 2019
@rzr
Copy link
Owner Author

rzr commented Mar 10, 2019

Thanks to @MatonAnthony for your contribution based on @Vinnl works

Now simulator for temperature is remaining to close this issue, other w3c sensors are also welcome (ie: orientation, proximity ... )

Feel free to inspire from:
https://github.com/SamsungInternet/color-sensor-js/blob/master/lib/simulator.js

@rzr rzr closed this as completed in 53685c9 Mar 15, 2019
rzr added a commit that referenced this issue Mar 15, 2019
Fixes #5 add Simulators, Pi is my friend
rzr pushed a commit that referenced this issue Mar 25, 2019
Add the simulator driver for ambientlight API.

- Write a simulator driver for ambientlight
- Use it as a default driver if no driver is specified

Issue-Id: #5 Add simulators
Environment:
    Darwin 18.2.0
    Node 10.15.1
    Node 9.5.0

Signed-off-by: Anthony Maton <me@anthony-maton.me>
rzr pushed a commit that referenced this issue Mar 25, 2019
Change-Id: I7109a2a45493477f5dba45fe3538a76ff73bdf4e
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

1 participant