Open B0IIE opened 5 years ago
Sorry for the delay in responding, this got lost in my inbox for a while.
Upon adding the adapter it should add a Thing named Clap Sensor to the new thing list that you can then add to the main page of the things gateway. Once added, this thing should switch from on/off after every clap it senses. The actual detection is at https://github.com/hobinjk/clap-sensor-adapter/blob/master/clap-sensor-adapter.js#L39 and it should console.log('clap!');
every time it detects one. I believe that clap-detector (https://github.com/tom-s/clap-detector) also has some debugging capabilities of its own if detection isn't working.
Ideally this would instead be sending an Event as that's the more WoT API-style way to do things
Thanks for the answer. But what should I use as a microphone on the pi? I tried different usb and 3.5mm microphones. But I can't seem to get it to work.
Am 14. Februar 2019 18:59:41 MEZ schrieb James Hobin notifications@github.com:
Sorry for the delay in responding, this got lost in my inbox for a while.
Upon adding the adapter it should add a Thing named Clap Sensor to the new thing list that you can then add to the main page of the things gateway. Once added, this thing should switch from on/off after every clap it senses. The actual detection is at https://github.com/hobinjk/clap-sensor-adapter/blob/master/clap-sensor-adapter.js#L39 and it should
console.log('clap!');
every time it detects one. I believe that clap-detector (https://github.com/tom-s/clap-detector) also has some debugging capabilities of its own if detection isn't working.Ideally this would instead be sending an Event as that's the more WoT API-style way to do things
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/hobinjk/clap-sensor-adapter/issues/3#issuecomment-463727262
-- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
I normally use my Blue Yeti USB mic but anything from https://elinux.org/RPi_VerifiedPeripherals#USB_Sound_Cards should work. I'd make sure the device shows up after running arecord -l
in the Pi's console.
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