Noise

Noise

Description:Noise uses a recording device, such as your PC's microphone input, and generates xPL messages when it detects sound exceeding a user specified threshold. Your automation system can use this to notify you that your baby is crying, your dog is barking or ...
Usage:This is a complete re-write of version 1.0 and uses v.1.3.5 of NAudio.  It no longer has the GUI that required .NET 3.5.  It runs just fine on a HP T5700 thin client running XPe.

You select your input device via the drop down menu.  Enter the sample rate (bits per second), the xPL Interval (seconds) and the Threshold.  Don't forget to click Save after making your changes.

The threshold level you will need to figure out by trial and error.  You don't want the app triggering on every little sound. The xPL interval is how long the app samples before sending out a sensor.basic message if any noise exceeds the threshold.  When you are experimenting with sound levels, you can set this to a low value so you can see the result of your experiments in a resonable amount of time.  Make sure you set it back to a higher value when done.

If a sound exceeds the specified threshold and a no xPL message was sent in the previous sampling interval, the app will immediately send out a message.

The output format of Noise is a sensor.basic message:

source = doghouse-noise.xyz
dest = *
type = xpl-trig

sensor.basic
{
   device=noise
   current=15-5-10
}

The current field is comprised of 3 items separated by dashes.  The first field in the sample above, represents the maximum noise level (15) encountered during the sampling interval.  The next field represents the number of samples exceeding the user specified threshold.  The last field is the average noise level for those samples.  That should be enough information for you to process a response by your home automation system.
Screenshots:
Revisions:01/08/09 - 1.1: Complete rewrite removing .NET 3.5 and revamping GUI
12/27/09 - 1.0: Initial release

Download:/downloads/Noise.zip

Back to xpl Software