hobinjk / clap-sensor-adapter Goto Github PK
View Code? Open in Web Editor NEWClap sensing adapter add-on for the Mozilla IoT Gateway
License: Mozilla Public License 2.0
Clap sensing adapter add-on for the Mozilla IoT Gateway
License: Mozilla Public License 2.0
Hello,
Where do I need to put the clone?
There is no "addons" folder inside "src" folder like mention in the README file.
Can you provide any more documentation on how the adapter is supposed to work?
I added the adapter and pluged in several usb micophones but I cant detect any claps. Is there a way to test whether the adapter isnt working or the microphone isn´t compatible?
How many claps are required to toggle the adapter?
Thanks
Getting this error:
2018-04-27 17:55:13.741 API mismatch for package: clap-sensor-adapter
Current: 2 Supported: 1-1
I'm no coder so I just searched through ~/.mozilla-iot/addons/clap-sensor-adapter/ to see where there could be some conflict.
in package.json i changed the max value:
"moziot": {
"api": {
"min": 1,
"max": 2 // this was previously set to 1.
},
I haven't a clue if this is the appropriate way to solve the issue but I'm now seeing the adapter.
Hope this maybe helps someone out!
TC
Firslty, thank you for sharing the code example. I have followed it in order to implement my own adapter, but there are some questions related to the code that, from my point of vew, doesn't look that will be ever executed.
Here are the lines I'm talking about:
clap-sensor-adapter/clap-sensor-adapter.js
Line 138 in 792e516
clap-sensor-adapter/clap-sensor-adapter.js
Line 143 in 792e516
clap-sensor-adapter/clap-sensor-adapter.js
Line 151 in 792e516
clap-sensor-adapter/clap-sensor-adapter.js
Line 173 in 792e516
Is there any other updated version which works fully and correctly?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.